class MethodNotAllowedException extends RequestException

Method not allowed exception.

Properties

protected array $allowedMethods Allowed methods.

Methods

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

Constructor.

array
getAllowedMethods()

Returns the allowed methods.

Details

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

Constructor.

Parameters

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

at line 45
array getAllowedMethods()

Returns the allowed methods.

Return Value

array