Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function save( |
||
30 | string $method, |
||
31 | string $path, |
||
32 | $controller, |
||
33 | ?string $name, |
||
34 | array $middleware, |
||
35 | ?string $domain |
||
36 | ): void |
||
37 | { |
||
38 | $route = new Route($method, $path, $controller, $name, $middleware, $domain); |
||
39 | |||
40 | $this->routes['method'][$method][] = $route; |
||
41 | |||
42 | if ($name !== null) { |
||
43 | $this->routes['name'][$name] = $route; |
||
44 | } |
||
93 |