1 | <?php |
||
10 | class PushMessageDTO |
||
11 | { |
||
12 | /** |
||
13 | * @Serializer\Type("array<string>") |
||
14 | * |
||
15 | * @var string[] |
||
16 | */ |
||
17 | private $attributes; |
||
18 | |||
19 | /** |
||
20 | * @Serializer\Type("string") |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private $data; |
||
25 | |||
26 | /** |
||
27 | * @Serializer\Type("string") |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | private $messageId; |
||
32 | |||
33 | /** |
||
34 | * @Serializer\Type("string") |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | private $publishTime; |
||
39 | |||
40 | /** |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function getAttributes() |
||
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | public function getData() |
||
55 | |||
56 | /** |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function getMessageId() |
||
63 | |||
64 | /** |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function getPublishTime() |
||
71 | |||
72 | /** |
||
73 | * @param \string[] $attributes |
||
74 | * @return PushMessageDTO |
||
75 | */ |
||
76 | public function setAttributes($attributes) |
||
82 | |||
83 | /** |
||
84 | * @param string $data |
||
85 | * @return PushMessageDTO |
||
86 | */ |
||
87 | public function setData($data) |
||
93 | |||
94 | /** |
||
95 | * @param string $messageId |
||
96 | * @return PushMessageDTO |
||
97 | */ |
||
98 | public function setMessageId($messageId) |
||
104 | |||
105 | /** |
||
106 | * @param string $publishTime |
||
107 | * @return PushMessageDTO |
||
108 | */ |
||
109 | public function setPublishTime($publishTime) |
||
115 | } |
||
116 |
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..