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