| 1 | <?php |
||
| 11 | final class Router implements RouterInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Dispatcher |
||
| 15 | */ |
||
| 16 | private $dispatcher; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var RouteInterface[] |
||
| 20 | */ |
||
| 21 | private $routes; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param RouteInterface[] A collection of routes |
||
| 25 | */ |
||
| 26 | 15 | public function __construct(array $routes) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritdoc} |
||
| 47 | */ |
||
| 48 | 12 | public function match($method, $uri) |
|
| 61 | } |
||
| 62 |