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