| Total Complexity | 5 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 7 | class Router | ||
| 8 | { | ||
| 9 | /** | ||
| 10 | * @var Collection | ||
| 11 | */ | ||
| 12 | protected $routes; | ||
| 13 | |||
| 14 | /** | ||
| 15 | * @param Collection $routes | ||
| 16 | */ | ||
| 17 | 5 | public function __construct(Collection $routes) | |
| 18 |     { | ||
| 19 | 5 | $this->routes = $routes; | |
| 20 | } | ||
| 21 | |||
| 22 | /** | ||
| 23 | * @param ServerRequestInterface $request | ||
| 24 | * @return Route | ||
| 25 | * @throws NotFoundException | ||
| 26 | */ | ||
| 27 | 5 | public function resolve(ServerRequestInterface $request) | |
| 36 | } | ||
| 37 | |||
| 38 | /** | ||
| 39 | * @param ServerRequestInterface $request | ||
| 40 | * @return array | ||
| 41 | */ | ||
| 42 | 5 | protected function match(ServerRequestInterface $request) | |
| 48 | } | ||
| 49 | 5 | }); | |
| 52 |