1 | <?php |
||
35 | class MigrationEvent extends AbstractDomainEvent |
||
36 | { |
||
37 | /** @var OptionsInterface */ |
||
38 | private $options; |
||
39 | |||
40 | /** @var VersionInterface */ |
||
41 | private $target; |
||
42 | |||
43 | /** @var CollectionContextInterface */ |
||
44 | private $context; |
||
45 | |||
46 | /** |
||
47 | * MigrationEvent constructor. |
||
48 | * |
||
49 | * @param VersionInterface $target |
||
50 | * @param OptionsInterface $options |
||
51 | * @param CollectionContextInterface $context |
||
|
|||
52 | * @param DateTime $occurredOn |
||
53 | */ |
||
54 | 19 | public function __construct( |
|
70 | |||
71 | /** |
||
72 | * @return OptionsInterface |
||
73 | */ |
||
74 | 2 | public function getOptions() |
|
78 | |||
79 | /** |
||
80 | * Returns the Version that's being migrated. |
||
81 | * |
||
82 | * NOTE: Do not confuse this method with version() |
||
83 | * |
||
84 | * @return VersionInterface |
||
85 | */ |
||
86 | 2 | public function getTarget() |
|
90 | |||
91 | /** |
||
92 | * @return CollectionContextInterface |
||
93 | */ |
||
94 | 15 | public function getContext() |
|
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | */ |
||
102 | 1 | protected function getAdditionalPayload() |
|
110 | } |
||
111 |
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.