@@ -67,11 +67,6 @@ class DbalMessage implements Message
6767 */
6868 private $ publishedAt ;
6969
70- /**
71- * @param string $body
72- * @param array $properties
73- * @param array $headers
74- */
7570 public function __construct (string $ body = '' , array $ properties = [], array $ headers = [])
7671 {
7772 $ this ->body = $ body ;
@@ -144,7 +139,7 @@ public function setRedelivered(bool $redelivered): void
144139 $ this ->redelivered = $ redelivered ;
145140 }
146141
147- public function setReplyTo (string $ replyTo = null ): void
142+ public function setReplyTo (? string $ replyTo = null ): void
148143 {
149144 $ this ->setHeader ('reply_to ' , $ replyTo );
150145 }
@@ -159,7 +154,7 @@ public function getPriority(): ?int
159154 return $ this ->priority ;
160155 }
161156
162- public function setPriority (int $ priority = null ): void
157+ public function setPriority (? int $ priority = null ): void
163158 {
164159 $ this ->priority = $ priority ;
165160 }
@@ -172,14 +167,11 @@ public function getDeliveryDelay(): ?int
172167 /**
173168 * Set delay in milliseconds.
174169 */
175- public function setDeliveryDelay (int $ deliveryDelay = null ): void
170+ public function setDeliveryDelay (? int $ deliveryDelay = null ): void
176171 {
177172 $ this ->deliveryDelay = $ deliveryDelay ;
178173 }
179174
180- /**
181- * @return int
182- */
183175 public function getTimeToLive (): ?int
184176 {
185177 return $ this ->timeToLive ;
@@ -188,12 +180,12 @@ public function getTimeToLive(): ?int
188180 /**
189181 * Set time to live in milliseconds.
190182 */
191- public function setTimeToLive (int $ timeToLive = null ): void
183+ public function setTimeToLive (? int $ timeToLive = null ): void
192184 {
193185 $ this ->timeToLive = $ timeToLive ;
194186 }
195187
196- public function setCorrelationId (string $ correlationId = null ): void
188+ public function setCorrelationId (? string $ correlationId = null ): void
197189 {
198190 $ this ->setHeader ('correlation_id ' , $ correlationId );
199191 }
@@ -203,7 +195,7 @@ public function getCorrelationId(): ?string
203195 return $ this ->getHeader ('correlation_id ' , null );
204196 }
205197
206- public function setMessageId (string $ messageId = null ): void
198+ public function setMessageId (? string $ messageId = null ): void
207199 {
208200 $ this ->setHeader ('message_id ' , $ messageId );
209201 }
@@ -220,7 +212,7 @@ public function getTimestamp(): ?int
220212 return null === $ value ? null : $ value ;
221213 }
222214
223- public function setTimestamp (int $ timestamp = null ): void
215+ public function setTimestamp (? int $ timestamp = null ): void
224216 {
225217 $ this ->setHeader ('timestamp ' , $ timestamp );
226218 }
@@ -240,7 +232,7 @@ public function getRedeliverAfter(): int
240232 return $ this ->redeliverAfter ;
241233 }
242234
243- public function setRedeliverAfter (int $ redeliverAfter = null ): void
235+ public function setRedeliverAfter (? int $ redeliverAfter = null ): void
244236 {
245237 $ this ->redeliverAfter = $ redeliverAfter ;
246238 }
@@ -250,7 +242,7 @@ public function getPublishedAt(): ?int
250242 return $ this ->publishedAt ;
251243 }
252244
253- public function setPublishedAt (int $ publishedAt = null ): void
245+ public function setPublishedAt (? int $ publishedAt = null ): void
254246 {
255247 $ this ->publishedAt = $ publishedAt ;
256248 }
0 commit comments