1 | <?php |
||
9 | class Bucket |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $items = []; |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $sourceKey; |
||
19 | |||
20 | /** |
||
21 | * Bucket constructor. |
||
22 | * |
||
23 | * @param string $sourceKey |
||
24 | */ |
||
25 | public function __construct($sourceKey) |
||
29 | |||
30 | /** |
||
31 | * @param $rows |
||
32 | * @param $sourceKey |
||
33 | * @return static |
||
34 | */ |
||
35 | public static function fromRows($rows, $sourceKey) |
||
42 | |||
43 | protected function initialize($rows) |
||
54 | |||
55 | public function getKeys() |
||
59 | |||
60 | /** |
||
61 | * @param EntityInterface[] $entities |
||
62 | * @param string $key the attribute name in $entity that represent this relation |
||
63 | * @param string $entityKey |
||
|
|||
64 | * @return $this |
||
65 | */ |
||
66 | public function fill($entities, $key, $entityIdKey) |
||
79 | |||
80 | public function pour(&$rows, $relationName) |
||
90 | } |
||
91 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.