| 1 | <?php |
||
| 7 | class Router |
||
| 8 | { |
||
| 9 | /* @var array<Routable> */ |
||
| 10 | private $routes; |
||
| 11 | |||
| 12 | public function addRoute(Routable $routable) : void |
||
| 16 | |||
| 17 | public function getRoutes() : array |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $httpVerb |
||
| 24 | * @param string $path |
||
| 25 | * @return mixed |
||
| 26 | * @throws RouteNotFoundException |
||
| 27 | */ |
||
| 28 | public function resolve(string $httpVerb, string $path) |
||
| 41 | } |
||
| 42 |