| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Router |
||
| 15 | { |
||
| 16 | protected RouteCollection $collection; |
||
| 17 | protected Matcher $matcher; |
||
| 18 | |||
| 19 | 2 | public function __construct() |
|
| 20 | { |
||
| 21 | 2 | $this->collection = new RouteCollection(); |
|
| 22 | 2 | $this->matcher = new Matcher($this->collection); |
|
| 23 | 2 | } |
|
| 24 | |||
| 25 | 2 | public function match(string $route_path): Route |
|
| 28 | } |
||
| 29 | |||
| 30 | 2 | public function addRoute(Route $route): self |
|
| 37 |