| 1 | <?php |
||
| 21 | class MethodNotAllowedHttpException extends HttpException |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Valid HTTP methods. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $validMethods = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Method Not Allowed Exception constructor. |
||
| 32 | * |
||
| 33 | * @param string|null $message |
||
| 34 | * @param string|null $description |
||
| 35 | * @param int|null $code |
||
| 36 | * @param \Throwable|null $previous |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set valid HTTP methods. |
||
| 55 | * |
||
| 56 | * @param array $validMethods |
||
| 57 | * |
||
| 58 | * @return static |
||
| 59 | */ |
||
| 60 | public function setValidMethods(array $validMethods): self |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Get valid HTTP methods. |
||
| 69 | * |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | public function getValidMethods(): array |
||
| 76 | } |
||
| 77 |