1 | <?php |
||
12 | class Responses implements Arrayable, \Iterator |
||
13 | { |
||
14 | use ExtensionPart; |
||
15 | |||
16 | /** @var Map */ |
||
17 | private $responses; |
||
18 | |||
19 | 12 | public function __construct($contents = []) |
|
23 | |||
24 | 12 | private function parse($contents) |
|
39 | |||
40 | 7 | public function toArray() |
|
47 | |||
48 | 1 | public function size() |
|
52 | |||
53 | /** |
||
54 | * Returns whether the given response exists. |
||
55 | * |
||
56 | * @param string $code |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | 1 | public function has($code) |
|
64 | |||
65 | /** |
||
66 | * Returns whether the given response exists. |
||
67 | * |
||
68 | * @param Response $response |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | 8 | public function contains(Response $response) |
|
76 | |||
77 | /** |
||
78 | * Returns the reponse info for the given code. |
||
79 | * |
||
80 | * @param string $code |
||
81 | * |
||
82 | * @return Response |
||
83 | */ |
||
84 | 2 | public function get($code) |
|
92 | |||
93 | /** |
||
94 | * Sets the response. |
||
95 | * |
||
96 | * @param Response $code |
||
|
|||
97 | */ |
||
98 | 1 | public function add(Response $response) |
|
102 | |||
103 | /** |
||
104 | * Removes the given repsonse. |
||
105 | * |
||
106 | * @param string $code |
||
107 | */ |
||
108 | 1 | public function remove($code) |
|
112 | |||
113 | public function current() |
||
117 | |||
118 | public function key() |
||
122 | |||
123 | public function next() |
||
127 | |||
128 | public function rewind() |
||
132 | |||
133 | public function valid() |
||
137 | } |
||
138 |
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.