1 | <?php |
||
12 | class Responses extends AbstractModel implements Arrayable, \Iterator { |
||
13 | |||
14 | use ExtensionPart; |
||
15 | |||
16 | /** @var Map */ |
||
17 | private $responses; |
||
18 | |||
19 | 13 | public function __construct($contents = []) { |
|
22 | |||
23 | 13 | private function parse($contents) { |
|
37 | |||
38 | 9 | public function toArray() { |
|
44 | |||
45 | 1 | public function size() { |
|
48 | |||
49 | /** |
||
50 | * Returns whether the given response exists |
||
51 | * |
||
52 | * @param string $code |
||
53 | * @return bool |
||
54 | */ |
||
55 | 1 | public function has($code) { |
|
58 | |||
59 | /** |
||
60 | * Returns whether the given response exists |
||
61 | * |
||
62 | * @param Response $response |
||
63 | * @return bool |
||
64 | */ |
||
65 | 1 | public function contains(Response $response) { |
|
68 | |||
69 | /** |
||
70 | * Returns the reponse info for the given code |
||
71 | * |
||
72 | * @param string $code |
||
73 | * @return Response |
||
74 | */ |
||
75 | 2 | public function get($code) { |
|
82 | |||
83 | /** |
||
84 | * Sets the response |
||
85 | * |
||
86 | * @param Response $code |
||
|
|||
87 | */ |
||
88 | 9 | public function add(Response $response) { |
|
91 | |||
92 | /** |
||
93 | * Adds all responses from another responses collection. Will overwrite existing ones. |
||
94 | * |
||
95 | * @param Responses $responses |
||
96 | */ |
||
97 | public function addAll(Responses $responses) { |
||
102 | |||
103 | /** |
||
104 | * Removes the given repsonse |
||
105 | * |
||
106 | * @param string $code |
||
107 | */ |
||
108 | 1 | public function remove($code) { |
|
111 | |||
112 | public function current() { |
||
115 | |||
116 | public function key() { |
||
119 | |||
120 | public function next() { |
||
123 | |||
124 | public function rewind() { |
||
127 | |||
128 | public function valid() { |
||
131 | } |
||
132 |
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.