1 | <?php |
||
11 | class ResolverCache |
||
12 | { |
||
13 | use SingletonTrait; |
||
14 | |||
15 | /** |
||
16 | * @var DefinitionsCollection |
||
17 | */ |
||
18 | protected $definitions; |
||
19 | |||
20 | /** |
||
21 | * ResolverCache constructor. |
||
22 | * @param DefinitionsCollection $definitions |
||
23 | */ |
||
24 | 1 | protected function __construct(DefinitionsCollection $definitions = null) |
|
30 | |||
31 | /** |
||
32 | * @param array $action |
||
33 | * @return string |
||
34 | */ |
||
35 | 3 | public static function keyFromAction($action) |
|
41 | |||
42 | /** |
||
43 | * @param array $action |
||
44 | * @return mixed|null |
||
45 | */ |
||
46 | 3 | public static function resolveFromAction($action) |
|
51 | |||
52 | /** |
||
53 | * @param array $action |
||
54 | * @param $class |
||
55 | * @return mixed|null |
||
56 | */ |
||
57 | 3 | public static function setFromAction($action, $class) |
|
63 | |||
64 | /** |
||
65 | * @param array $action |
||
|
|||
66 | * @param $class |
||
67 | * @return mixed|null |
||
68 | */ |
||
69 | 2 | public static function save() |
|
74 | |||
75 | /** |
||
76 | * @param $key |
||
77 | * @return mixed|null |
||
78 | */ |
||
79 | 3 | public static function resolveFromKey($key) |
|
87 | |||
88 | 1 | protected function loadCache() |
|
94 | } |
||
95 |
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.