1 | <?php |
||
13 | class RouteMethodNotAllowedException extends \Exception |
||
14 | { |
||
15 | /** |
||
16 | * @var RequestInterface |
||
17 | */ |
||
18 | protected $request; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $allowedMethods; |
||
24 | |||
25 | 3 | public function __construct(RequestInterface $request, array $allowedMethods = []) |
|
30 | |||
31 | /** |
||
32 | * @return RequestInterface |
||
33 | */ |
||
34 | 1 | public function getRequest() : RequestInterface |
|
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | 3 | public function getAllowedMethods() : array |
|
46 | } |
||
47 |