1 | <?php |
||
11 | class Responses implements Arrayable, \Iterator { |
||
12 | |||
13 | use ExtensionPart; |
||
14 | |||
15 | /** @var Map */ |
||
16 | private $responses; |
||
17 | |||
18 | 12 | public function __construct($contents = []) { |
|
21 | |||
22 | 12 | private function parse($contents) { |
|
36 | |||
37 | 7 | public function toArray() { |
|
42 | |||
43 | 1 | public function size() { |
|
46 | |||
47 | /** |
||
48 | * Returns whether the given response exists |
||
49 | * |
||
50 | * @param string $code |
||
51 | * @return boolean |
||
52 | */ |
||
53 | 1 | public function has($code) { |
|
56 | |||
57 | /** |
||
58 | * Returns whether the given response exists |
||
59 | * |
||
60 | * @param Response $response |
||
61 | * @return boolean |
||
62 | */ |
||
63 | 1 | public function contains(Response $response) { |
|
66 | |||
67 | /** |
||
68 | * Returns the reponse info for the given code |
||
69 | * |
||
70 | * @param string $code |
||
71 | * @return Response |
||
72 | */ |
||
73 | 8 | public function get($code) { |
|
80 | |||
81 | /** |
||
82 | * Sets the response |
||
83 | * |
||
84 | * @param Response $code |
||
|
|||
85 | */ |
||
86 | 1 | public function add(Response $response) { |
|
89 | |||
90 | /** |
||
91 | * Removes the given repsonse |
||
92 | * |
||
93 | * @param string $code |
||
94 | */ |
||
95 | 1 | public function remove($code) { |
|
98 | |||
99 | public function current() { |
||
102 | |||
103 | public function key() { |
||
106 | |||
107 | public function next() { |
||
110 | |||
111 | public function rewind() { |
||
114 | |||
115 | public function valid() { |
||
118 | } |
||
119 |
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.