1 | <?php |
||
17 | abstract class AbstractHandle implements HandleInterface |
||
18 | { |
||
19 | /** |
||
20 | * Last execution details |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $infos = []; |
||
24 | |||
25 | /** |
||
26 | * cURL option to be used to execute current handle |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $options = []; |
||
30 | |||
31 | /** |
||
32 | * Check if execution details contain requested info |
||
33 | * @param string $name |
||
34 | * @return boolean |
||
35 | */ |
||
36 | 11 | public function hasInfo($name) |
|
40 | |||
41 | /** |
||
42 | * Return last execution detail |
||
43 | * @param string $name |
||
44 | * @return int|string|double |
||
45 | */ |
||
46 | 11 | public function getInfo($name) |
|
54 | |||
55 | /** |
||
56 | * Retrieve all infos |
||
57 | * @return array |
||
58 | */ |
||
59 | 1 | public function getInfos() |
|
63 | |||
64 | /** |
||
65 | * Add an option to the handle |
||
66 | * @param int $name |
||
67 | * @param mixed $value |
||
|
|||
68 | * @return Handle |
||
69 | */ |
||
70 | 1 | public function hasOption($name) |
|
74 | |||
75 | /** |
||
76 | * Add an option to the handle |
||
77 | * @param int $name |
||
78 | * @param mixed $value |
||
79 | * @return Handle |
||
80 | */ |
||
81 | 13 | public function addOption($name, $value) |
|
86 | |||
87 | /** |
||
88 | * Add multiple option at once |
||
89 | * @param string[] $options |
||
90 | * @return Handle |
||
91 | */ |
||
92 | 12 | public function addOptions(array $options) |
|
99 | } |
||
100 |
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.