1 | <?php |
||
16 | class FindEvent extends AbstractEvent |
||
17 | { |
||
18 | use EventOptionsTrait; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $identifier; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $locale; |
||
29 | |||
30 | /** |
||
31 | * @var object |
||
32 | */ |
||
33 | private $document; |
||
34 | |||
35 | /** |
||
36 | * @param string $identifier |
||
37 | * @param string $locale |
||
38 | * @param array $options |
||
39 | */ |
||
40 | public function __construct($identifier, $locale, array $options = []) |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | public function getDebugMessage() |
||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getId() |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getLocale() |
||
75 | |||
76 | /** |
||
77 | * @return object |
||
78 | * |
||
79 | * @throws DocumentManagerException |
||
80 | */ |
||
81 | public function getDocument() |
||
92 | |||
93 | /** |
||
94 | * @param object $document |
||
95 | */ |
||
96 | public function setDocument($document) |
||
100 | } |
||
101 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..