1 | <?php |
||
9 | final class Route |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $name; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $controller; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $method; |
||
26 | |||
27 | /** |
||
28 | * @param string $name |
||
29 | * @param string $controller |
||
30 | * @param string $method |
||
31 | */ |
||
32 | public function __construct($name, $controller, $method) |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getName() |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getController() |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | public function getMethod() |
||
62 | |||
63 | /** |
||
64 | * @param string $action |
||
|
|||
65 | * |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function match($route){ |
||
71 | |||
72 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.