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