Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
27 | 12 | public function compose($payload, array $properties = [], $id = null, $routingKey = null) |
|
28 | { |
||
29 | $defaults = [ |
||
30 | 12 | 'content_type' => MessageProperties::CONTENT_TYPE_TEXT_PLAIN, |
|
31 | 'delivery_mode' => MessageProperties::DELIVERY_MODE_PERSISTENT, |
||
32 | ]; |
||
33 | |||
34 | 12 | $properties = new MessageProperties(array_merge($defaults, $properties)); |
|
35 | |||
36 | 12 | return new Message($this->serialize($payload), $properties, $id, $routingKey); |
|
37 | } |
||
38 | |||
49 |