@@ -67,11 +67,6 @@ class DbalMessage implements Message
67
67
*/
68
68
private $ publishedAt ;
69
69
70
- /**
71
- * @param string $body
72
- * @param array $properties
73
- * @param array $headers
74
- */
75
70
public function __construct (string $ body = '' , array $ properties = [], array $ headers = [])
76
71
{
77
72
$ this ->body = $ body ;
@@ -144,7 +139,7 @@ public function setRedelivered(bool $redelivered): void
144
139
$ this ->redelivered = $ redelivered ;
145
140
}
146
141
147
- public function setReplyTo (string $ replyTo = null ): void
142
+ public function setReplyTo (? string $ replyTo = null ): void
148
143
{
149
144
$ this ->setHeader ('reply_to ' , $ replyTo );
150
145
}
@@ -159,7 +154,7 @@ public function getPriority(): ?int
159
154
return $ this ->priority ;
160
155
}
161
156
162
- public function setPriority (int $ priority = null ): void
157
+ public function setPriority (? int $ priority = null ): void
163
158
{
164
159
$ this ->priority = $ priority ;
165
160
}
@@ -172,14 +167,11 @@ public function getDeliveryDelay(): ?int
172
167
/**
173
168
* Set delay in milliseconds.
174
169
*/
175
- public function setDeliveryDelay (int $ deliveryDelay = null ): void
170
+ public function setDeliveryDelay (? int $ deliveryDelay = null ): void
176
171
{
177
172
$ this ->deliveryDelay = $ deliveryDelay ;
178
173
}
179
174
180
- /**
181
- * @return int
182
- */
183
175
public function getTimeToLive (): ?int
184
176
{
185
177
return $ this ->timeToLive ;
@@ -188,12 +180,12 @@ public function getTimeToLive(): ?int
188
180
/**
189
181
* Set time to live in milliseconds.
190
182
*/
191
- public function setTimeToLive (int $ timeToLive = null ): void
183
+ public function setTimeToLive (? int $ timeToLive = null ): void
192
184
{
193
185
$ this ->timeToLive = $ timeToLive ;
194
186
}
195
187
196
- public function setCorrelationId (string $ correlationId = null ): void
188
+ public function setCorrelationId (? string $ correlationId = null ): void
197
189
{
198
190
$ this ->setHeader ('correlation_id ' , $ correlationId );
199
191
}
@@ -203,7 +195,7 @@ public function getCorrelationId(): ?string
203
195
return $ this ->getHeader ('correlation_id ' , null );
204
196
}
205
197
206
- public function setMessageId (string $ messageId = null ): void
198
+ public function setMessageId (? string $ messageId = null ): void
207
199
{
208
200
$ this ->setHeader ('message_id ' , $ messageId );
209
201
}
@@ -220,7 +212,7 @@ public function getTimestamp(): ?int
220
212
return null === $ value ? null : $ value ;
221
213
}
222
214
223
- public function setTimestamp (int $ timestamp = null ): void
215
+ public function setTimestamp (? int $ timestamp = null ): void
224
216
{
225
217
$ this ->setHeader ('timestamp ' , $ timestamp );
226
218
}
@@ -240,7 +232,7 @@ public function getRedeliverAfter(): int
240
232
return $ this ->redeliverAfter ;
241
233
}
242
234
243
- public function setRedeliverAfter (int $ redeliverAfter = null ): void
235
+ public function setRedeliverAfter (? int $ redeliverAfter = null ): void
244
236
{
245
237
$ this ->redeliverAfter = $ redeliverAfter ;
246
238
}
@@ -250,7 +242,7 @@ public function getPublishedAt(): ?int
250
242
return $ this ->publishedAt ;
251
243
}
252
244
253
- public function setPublishedAt (int $ publishedAt = null ): void
245
+ public function setPublishedAt (? int $ publishedAt = null ): void
254
246
{
255
247
$ this ->publishedAt = $ publishedAt ;
256
248
}
0 commit comments