class MethodNotAllowedException extends HttpException

Method not allowed exception.

Properties

protected $defaultMessage {@inheritdoc}
protected array $allowedMethods Allowed methods.

Methods

__construct(array $allowedMethods = [], string $message = '', Throwable|null $previous = null)

Constructor.

array
getAllowedMethods()

Returns the allowed methods.

Details

at line 38
__construct(array $allowedMethods = [], string $message = '', Throwable|null $previous = null)

Constructor.

Parameters

array $allowedMethods Allowed methods
string $message Exception message
Throwable|null $previous Previous exception

at line 50
array getAllowedMethods()

Returns the allowed methods.

Return Value

array