| 1 | <?php |
||
| 4 | class RoutingResult |
||
| 5 | { |
||
| 6 | protected $successful = false; |
||
| 7 | protected $methodNotAllowed = false; |
||
| 8 | protected $resourceNotFound = false; |
||
| 9 | protected $allowedMethods = []; |
||
| 10 | protected $target = []; |
||
| 11 | protected $parameters = []; |
||
| 12 | |||
| 13 | public function __construct($successful, $methodNotAllowed, $resourceNotFound, array $allowedMethods, array $target, array $parameters) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function isSuccessful() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function isMethodNotAllowed() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return bool |
||
| 41 | */ |
||
| 42 | public function isResourceNotFound() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function getAllowedMethods() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | public function getTarget() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return array |
||
| 65 | */ |
||
| 66 | public function getParameters() |
||
| 70 | } |
||
| 71 |