1 | <?php |
||
13 | final class AnonymizerServiceFacade |
||
14 | { |
||
15 | /** |
||
16 | * @var \Netgen\InformationCollection\API\Persistence\Anonymizer\Anonymizer |
||
17 | */ |
||
18 | private $anonymizer; |
||
19 | |||
20 | /** |
||
21 | * @var \Netgen\InformationCollection\Core\Persistence\ContentTypeUtils |
||
22 | */ |
||
23 | private $contentTypeUtils; |
||
24 | |||
25 | /** |
||
26 | * @var \Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository |
||
27 | */ |
||
28 | private $ezInfoCollectionRepository; |
||
29 | |||
30 | /** |
||
31 | * AnonymizerServiceFacade constructor. |
||
32 | * |
||
33 | * @param \Netgen\InformationCollection\API\Persistence\Anonymizer\Anonymizer $anonymizer |
||
34 | * @param \Netgen\InformationCollection\Core\Persistence\ContentTypeUtils $contentTypeUtils |
||
35 | * @param \Netgen\InformationCollection\Doctrine\Repository\EzInfoCollectionRepository $ezInfoCollectionRepository |
||
36 | */ |
||
37 | public function __construct( |
||
46 | |||
47 | /** |
||
48 | * Anonymize collections by content id. |
||
49 | * |
||
50 | * @param int $contentId Content id |
||
51 | * @param array $fields Fields list |
||
52 | * @param DateTime|null $date Anonymize collections older that this date |
||
53 | * |
||
54 | * @return int |
||
55 | */ |
||
56 | public function anonymize($contentId, array $fields = [], \DateTimeImmutable $date = null) |
||
72 | |||
73 | /** |
||
74 | * Map field id's to list of field identifiers. |
||
75 | * |
||
76 | * @param int $content |
||
|
|||
77 | * @param array $fieldIdentifiers |
||
78 | * @param mixed $contentId |
||
79 | * |
||
80 | * @return array |
||
81 | */ |
||
82 | private function getFieldIds($contentId, array $fieldIdentifiers) |
||
95 | |||
96 | private function getCollections($contentId, \DateTimeImmutable $date = null) |
||
106 | } |
||
107 |
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.