Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | class RouteFactory implements RouteFactoryInterface |
||
26 | { |
||
27 | /** |
||
28 | * {@inheritDoc} |
||
29 | */ |
||
30 | 43 | public function createCollection(RouteInterface ...$routes): RouteCollectionInterface |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | 32 | public function createRoute(string $name, array $methods, string $path, $handler): RouteInterface |
|
39 | { |
||
40 | 32 | return new Route($name, $methods, $path, $handler); |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | 72 | public function createMatcher(): RouteMatcherInterface |
|
49 | } |
||
50 | } |
||
51 |