Total Complexity | 5 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | class WebRoute |
||
9 | { |
||
10 | private $router; |
||
11 | |||
12 | public function __construct(Router $router) |
||
13 | { |
||
14 | $this->router = $router; |
||
15 | } |
||
16 | |||
17 | public function get(string $route, string $target, ?string $name = null): self |
||
|
|||
18 | { |
||
19 | $this->router->maping('GET', $route, $target); |
||
20 | |||
21 | return $this; |
||
22 | } |
||
23 | |||
24 | public function post(string $route, string $target, ?string $name = null): Router |
||
27 | } |
||
28 | |||
29 | public function run() : void |
||
30 | { |
||
31 | return ; |
||
32 | } |
||
33 | |||
34 | public function matching() |
||
37 | } |
||
38 | } |
||
39 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.