| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class RouteBase |
||
| 23 | { |
||
| 24 | /** @var AbstractRoutesConfig */ |
||
| 25 | protected $config_handler; |
||
| 26 | /** @var string */ |
||
| 27 | protected $ex404 = '\Veles\Routing\Exceptions\NotFoundException'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return AbstractRoutesConfig |
||
| 31 | */ |
||
| 32 | 24 | public function getConfigHandler() |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param AbstractRoutesConfig $handler |
||
| 39 | * |
||
| 40 | * @return static |
||
| 41 | */ |
||
| 42 | 29 | public function setConfigHandler(AbstractRoutesConfig $handler) |
|
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Set custom 404 exception class name |
||
| 51 | * |
||
| 52 | * @param string $ex404 Not Found exception class name |
||
| 53 | * |
||
| 54 | * @return static |
||
| 55 | */ |
||
| 56 | 1 | public function setNotFoundException($ex404) |
|
| 63 |