| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait RouteManagement |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Method responsible for |
||
| 11 | * instantiating a new route. |
||
| 12 | * |
||
| 13 | * @param string $uri |
||
| 14 | * @param \Closure|array|string $callback |
||
| 15 | * |
||
| 16 | * @return \MinasRouter\Router\RouteManager |
||
| 17 | */ |
||
| 18 | protected function addRouter(String $uri, $callback) |
||
| 19 | { |
||
| 20 | return $this->newRouter($uri, $callback); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * |
||
| 25 | */ |
||
| 26 | protected function redirectRouterData(String $redirect, Int $http) |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Method responsible for starting a new |
||
| 37 | * RouteManager instance. |
||
| 38 | * |
||
| 39 | * @param string $uri |
||
| 40 | * @param \Closure|array|string $callback |
||
| 41 | * |
||
| 42 | * @return \MinasRouter\Router\RouteManager |
||
| 43 | */ |
||
| 44 | protected function newRouter(String $uri, $callback) |
||
| 47 | } |
||
| 48 | } |