1 | <?php |
||
13 | class ArraySet extends SetAbstract |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $array; |
||
19 | |||
20 | /** |
||
21 | * @param array $array |
||
22 | */ |
||
23 | public function __construct($array) |
||
31 | |||
32 | /** |
||
33 | * Ensures that this collection contains the specified element (optional operation). |
||
34 | * @param multitype $element |
||
35 | * @return boolean |
||
36 | */ |
||
37 | public function add($element) |
||
47 | |||
48 | /** |
||
49 | * Removes all of the elements from this collection (optional operation). |
||
50 | * @return void |
||
51 | */ |
||
52 | public function clear() |
||
56 | |||
57 | /** |
||
58 | * Returns an iterator over the elements in this collection. |
||
59 | * @return IteratorInterface |
||
60 | */ |
||
61 | public function iterator() |
||
65 | |||
66 | /** |
||
67 | * Removes a single instance of the specified element from this collection, if it is present (optional operation). |
||
68 | * @param boolean $changed |
||
|
|||
69 | */ |
||
70 | public function remove($element) |
||
84 | |||
85 | /** |
||
86 | * Returns the number of elements in this collection. |
||
87 | * @return int |
||
88 | */ |
||
89 | public function size() |
||
93 | |||
94 | /** |
||
95 | * Returns an array containing all of the elements in this collection. |
||
96 | * @return array |
||
97 | */ |
||
98 | public function toArray() |
||
102 | } |
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.