1 | <?php |
||
21 | class MethodNotSupported extends ClientError implements Exception |
||
22 | { |
||
23 | use AccessorTrait; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $method; |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | protected function get_method() |
||
37 | |||
38 | /** |
||
39 | * @param string $method The unsupported HTTP method. |
||
40 | * @param int $code |
||
41 | * @param \Exception $previous |
||
42 | */ |
||
43 | public function __construct($method, $code = Status::INTERNAL_SERVER_ERROR, \Exception $previous = null) |
||
49 | } |
||
50 |