Total Complexity | 4 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | final class RouteMatch implements RouteMatchInterface |
||
8 | { |
||
9 | 9 | public function __construct( |
|
10 | private ControllerInterface $controller, |
||
11 | private array $attributes = [] |
||
12 | ) |
||
13 | { |
||
14 | 9 | } |
|
15 | |||
16 | 9 | public function isMatch(): bool |
|
17 | { |
||
18 | 9 | return true; |
|
19 | } |
||
20 | |||
21 | 9 | public function getController(): ControllerInterface |
|
22 | { |
||
23 | 9 | return $this->controller; |
|
24 | } |
||
25 | |||
26 | 2 | public function getAttributes(): array |
|
29 | } |
||
30 | } |
||
31 |