1 | <?php |
||
33 | class CollectionEvent extends AbstractDomainEvent |
||
34 | { |
||
35 | /** |
||
36 | * @var CollectionInterface |
||
37 | */ |
||
38 | private $collection; |
||
39 | |||
40 | /** |
||
41 | * @var OptionsInterface |
||
42 | */ |
||
43 | private $options; |
||
44 | |||
45 | /** |
||
46 | * @var VersionInterface |
||
47 | */ |
||
48 | private $target; |
||
49 | |||
50 | /** |
||
51 | * CollectionEvent constructor. |
||
52 | * |
||
53 | * @param VersionInterface $target |
||
54 | * @param OptionsInterface $options |
||
55 | * @param CollectionInterface $collection |
||
56 | * @param DateTime $createdOn |
||
|
|||
57 | */ |
||
58 | 22 | public function __construct( |
|
69 | |||
70 | /** |
||
71 | * @return OptionsInterface |
||
72 | */ |
||
73 | 2 | final public function getOptions() |
|
77 | |||
78 | /** |
||
79 | * @return CollectionInterface |
||
80 | */ |
||
81 | 2 | final public function getCollection() |
|
85 | |||
86 | /** |
||
87 | * @return VersionInterface |
||
88 | */ |
||
89 | 2 | final public function getTarget() |
|
93 | |||
94 | /** |
||
95 | * Returns the event getPayload |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | 1 | protected function getAdditionalPayload() |
|
107 | } |
||
108 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.