1 | <?php |
||
8 | class Dictionary extends Collection |
||
9 | { |
||
10 | /** |
||
11 | * Returns a new Dictionary object |
||
12 | * |
||
13 | * @param array $array |
||
|
|||
14 | * @return self |
||
15 | */ |
||
16 | 3 | public static function fromNative() |
|
37 | |||
38 | /** |
||
39 | * Returns a new Dictionary object |
||
40 | * |
||
41 | * @param \SplFixedArray $key_value_pairs |
||
42 | */ |
||
43 | 8 | public function __construct(\SplFixedArray $key_value_pairs) |
|
54 | |||
55 | /** |
||
56 | * Returns a Collection of the keys |
||
57 | * |
||
58 | * @return Collection |
||
59 | */ |
||
60 | 2 | public function keys() |
|
71 | |||
72 | /** |
||
73 | * Returns a Collection of the values |
||
74 | * |
||
75 | * @return Collection |
||
76 | */ |
||
77 | 2 | public function values() |
|
88 | |||
89 | /** |
||
90 | * Tells whether $object is one of the keys |
||
91 | * |
||
92 | * @param ValueObjectInterface $object |
||
93 | * @return bool |
||
94 | */ |
||
95 | 1 | public function containsKey(ValueObjectInterface $object) |
|
101 | |||
102 | /** |
||
103 | * Tells whether $object is one of the values |
||
104 | * |
||
105 | * @param ValueObjectInterface $object |
||
106 | * @return bool |
||
107 | */ |
||
108 | 1 | public function containsValue(ValueObjectInterface $object) |
|
114 | } |
||
115 |
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.