1 | <?php |
||
7 | class Message |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $body; |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $routingKey; |
||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | protected $deliveryTag; |
||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $deliveryMode; |
||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $exchangeName; |
||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | protected $redelivered = false; |
||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $contentType; |
||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $contentEncoding; |
||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $type; |
||
45 | /** |
||
46 | * @var DateTime |
||
47 | */ |
||
48 | protected $dateTime; |
||
49 | /** |
||
50 | * @var int |
||
51 | */ |
||
52 | protected $priority; |
||
53 | /** |
||
54 | * @var DateTime |
||
55 | */ |
||
56 | protected $expiration; |
||
57 | /** |
||
58 | * @var string |
||
59 | */ |
||
60 | protected $userId; |
||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $appId; |
||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | protected $messageId; |
||
69 | /** |
||
70 | * @var string |
||
71 | */ |
||
72 | protected $replyTo; |
||
73 | /** |
||
74 | * @var string |
||
75 | */ |
||
76 | protected $correlationId; |
||
77 | /** |
||
78 | * @var array |
||
79 | */ |
||
80 | protected $headers = []; |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | 5 | public function getBody() |
|
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | 1 | public function getRoutingKey() |
|
97 | |||
98 | /** |
||
99 | * @return int |
||
100 | */ |
||
101 | 5 | public function getDeliveryTag() |
|
105 | |||
106 | /** |
||
107 | * @return int |
||
108 | */ |
||
109 | 1 | public function getDeliveryMode() |
|
113 | |||
114 | /** |
||
115 | * @return string |
||
116 | */ |
||
117 | 1 | public function getExchangeName() |
|
121 | |||
122 | /** |
||
123 | * @return boolean |
||
124 | */ |
||
125 | 1 | public function isRedelivered() |
|
129 | |||
130 | /** |
||
131 | * @return string |
||
132 | */ |
||
133 | 1 | public function getContentType() |
|
137 | |||
138 | /** |
||
139 | * @return string |
||
140 | */ |
||
141 | 1 | public function getContentEncoding() |
|
145 | |||
146 | /** |
||
147 | * @return string |
||
148 | */ |
||
149 | 1 | public function getType() |
|
153 | |||
154 | /** |
||
155 | * @return DateTime |
||
156 | */ |
||
157 | 1 | public function getDateTime() |
|
161 | |||
162 | /** |
||
163 | * @return int |
||
164 | */ |
||
165 | 1 | public function getPriority() |
|
169 | |||
170 | /** |
||
171 | * @return DateTime |
||
172 | */ |
||
173 | 1 | public function getExpiration() |
|
177 | |||
178 | /** |
||
179 | * @return string |
||
180 | */ |
||
181 | 1 | public function getUserId() |
|
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | 1 | public function getAppId() |
|
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | 1 | public function getMessageId() |
|
201 | |||
202 | /** |
||
203 | * @return string |
||
204 | */ |
||
205 | 1 | public function getReplyTo() |
|
209 | |||
210 | /** |
||
211 | * @return string |
||
212 | */ |
||
213 | 1 | public function getCorrelationId() |
|
217 | |||
218 | /** |
||
219 | * @return array |
||
220 | */ |
||
221 | 1 | public function getHeaders() |
|
225 | |||
226 | /** |
||
227 | * @param string $body |
||
228 | * @return $this |
||
229 | */ |
||
230 | 11 | public function setBody($body) |
|
235 | |||
236 | /** |
||
237 | * @param string $routingKey |
||
238 | * @return $this |
||
239 | */ |
||
240 | 11 | public function setRoutingKey($routingKey) |
|
245 | |||
246 | /** |
||
247 | * @param int $deliveryTag |
||
248 | * @return $this |
||
249 | */ |
||
250 | 11 | public function setDeliveryTag($deliveryTag) |
|
255 | |||
256 | /** |
||
257 | * @param int $deliveryMode |
||
258 | * @return $this |
||
259 | */ |
||
260 | 11 | public function setDeliveryMode($deliveryMode) |
|
265 | |||
266 | /** |
||
267 | * @param string $exchangeName |
||
268 | * @return $this |
||
269 | */ |
||
270 | 11 | public function setExchangeName($exchangeName) |
|
275 | |||
276 | /** |
||
277 | * @param boolean $redelivered |
||
278 | * @return $this |
||
279 | */ |
||
280 | 11 | public function setRedelivered($redelivered) |
|
285 | |||
286 | /** |
||
287 | * @param string $contentType |
||
288 | * @return $this |
||
289 | */ |
||
290 | 11 | public function setContentType($contentType) |
|
295 | |||
296 | /** |
||
297 | * @param string $contentEncoding |
||
298 | * @return $this |
||
299 | */ |
||
300 | 11 | public function setContentEncoding($contentEncoding) |
|
305 | |||
306 | /** |
||
307 | * @param string $type |
||
308 | * @return $this |
||
309 | */ |
||
310 | 11 | public function setType($type) |
|
315 | |||
316 | /** |
||
317 | * @param DateTime $dateTime |
||
318 | * @return $this |
||
319 | */ |
||
320 | 11 | public function setDateTime(DateTime $dateTime = null) |
|
325 | |||
326 | /** |
||
327 | * @param int $priority |
||
328 | * @return $this |
||
329 | */ |
||
330 | 11 | public function setPriority($priority) |
|
335 | |||
336 | /** |
||
337 | * @param DateTime $expiration |
||
338 | * @return $this |
||
339 | */ |
||
340 | 11 | public function setExpiration(DateTime $expiration = null) |
|
345 | |||
346 | /** |
||
347 | * @param string $userId |
||
348 | * @return $this |
||
349 | */ |
||
350 | 11 | public function setUserId($userId) |
|
355 | |||
356 | /** |
||
357 | * @param string $appId |
||
358 | * @return $this |
||
359 | */ |
||
360 | 11 | public function setAppId($appId) |
|
365 | |||
366 | /** |
||
367 | * @param string $messageId |
||
368 | * @return $this |
||
369 | */ |
||
370 | 11 | public function setMessageId($messageId) |
|
375 | |||
376 | /** |
||
377 | * @param string $replyTo |
||
378 | * @return $this |
||
379 | */ |
||
380 | 11 | public function setReplyTo($replyTo) |
|
385 | |||
386 | /** |
||
387 | * @param string $correlationId |
||
388 | * @return $this |
||
389 | */ |
||
390 | 11 | public function setCorrelationId($correlationId) |
|
395 | |||
396 | /** |
||
397 | * @param array $headers |
||
398 | * @return $this |
||
399 | */ |
||
400 | 11 | public function setHeaders(array $headers) |
|
405 | } |
||
406 |