1 | <?php |
||
7 | class Message |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $body; |
||
11 | |||
12 | /** @var string */ |
||
13 | private $routingKey; |
||
14 | |||
15 | /** @var string[] */ |
||
16 | private $headers; |
||
17 | |||
18 | /** @var string */ |
||
19 | private $correlationId; |
||
20 | |||
21 | /** @var string */ |
||
22 | private $replyTo; |
||
23 | |||
24 | /** @var string */ |
||
25 | private $queue; |
||
26 | |||
27 | /** @var string */ |
||
28 | private $deliveryTag; |
||
29 | |||
30 | /** |
||
31 | * Message constructor. |
||
32 | * |
||
33 | * @param string $body |
||
34 | * @param string $routingKey |
||
35 | * @param \string[] $headers |
||
36 | * @param string $correlationId |
||
37 | * @param string $replyTo |
||
38 | */ |
||
39 | public function __construct($body, $routingKey = '', array $headers = [], $correlationId = '', $replyTo = '') |
||
54 | |||
55 | /** |
||
56 | * @param string $deliveryTag |
||
57 | */ |
||
58 | public function setDeliveryTag($deliveryTag) |
||
62 | |||
63 | /** |
||
64 | * @param string $queue |
||
65 | */ |
||
66 | public function setQueue($queue) |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getBody() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getRoutingKey() |
||
86 | |||
87 | /** |
||
88 | * @return array |
||
89 | */ |
||
90 | public function getHeaders() |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getCorrelationId() |
||
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getReplyTo() |
||
110 | |||
111 | /** |
||
112 | * @return string |
||
113 | */ |
||
114 | public function getDeliveryTag() |
||
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getQueue() |
||
126 | |||
127 | /** |
||
128 | * @param string[] $headers |
||
129 | */ |
||
130 | private function checkHeaders(array $headers) |
||
145 | } |
||
146 |
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..