Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
28 | 23 | public function createRoute( |
|
29 | string $name, |
||
30 | string $path, |
||
31 | array $methods, |
||
32 | RequestHandlerInterface $requestHandler, |
||
33 | array $middlewares = [], |
||
34 | array $attributes = [] |
||
35 | ) : RouteInterface { |
||
36 | 23 | return new Route( |
|
37 | 23 | $name, |
|
38 | 23 | $path, |
|
39 | 23 | $methods, |
|
40 | 23 | $requestHandler, |
|
41 | 23 | $middlewares, |
|
42 | 23 | $attributes |
|
43 | ); |
||
46 |