Total Complexity | 1 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
23 | class RouteFactory |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Creates a new route from the given parameters |
||
28 | * |
||
29 | * @param string $name |
||
30 | * @param string $path |
||
31 | * @param string[] $methods |
||
32 | * @param RequestHandlerInterface $requestHandler |
||
33 | * @param MiddlewareInterface[] $middlewares |
||
34 | * @param array $attributes |
||
35 | * |
||
36 | * @return RouteInterface |
||
37 | */ |
||
38 | public function createRoute( |
||
56 |