1 | <?php |
||
19 | class EntityService implements AdapterInterface |
||
20 | { |
||
21 | /** |
||
22 | * EntityService used to fetch adapter |
||
23 | * |
||
24 | * @var EntityServiceInterface |
||
25 | */ |
||
26 | private $entityService; |
||
27 | |||
28 | /** |
||
29 | * Criteria used to fetch entities |
||
30 | * |
||
31 | * @var array|Criteria |
||
32 | */ |
||
33 | private $criteria; |
||
34 | |||
35 | /** |
||
36 | * Creates a new instance of this class |
||
37 | * |
||
38 | * @param EntityServiceInterface $entityService |
||
39 | * @param Criteria $criteria The criteria to match. |
||
40 | * @param array $order |
||
|
|||
41 | */ |
||
42 | 6 | public function __construct(EntityServiceInterface $entityService, Criteria $criteria = null) |
|
47 | |||
48 | /** |
||
49 | * {@inhericDoc} |
||
50 | * |
||
51 | * @return int |
||
52 | */ |
||
53 | 3 | public function count() |
|
57 | |||
58 | /** |
||
59 | * {@inhericDoc} |
||
60 | * |
||
61 | * @param int $offset Page offset |
||
62 | * @param int $itemCountPerPage Number of items per page |
||
63 | * @return array |
||
64 | */ |
||
65 | 3 | public function getItems($offset, $itemCountPerPage) |
|
72 | } |
||
73 |
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.