| 1 | <?php  | 
            ||
| 9 | class DefaultMessageComposer implements MessageComposerInterface  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * @var SerializerInterface  | 
            ||
| 13 | */  | 
            ||
| 14 | protected $serializer;  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @param SerializerInterface $serializer  | 
            ||
| 18 | */  | 
            ||
| 19 | 14 | public function __construct(SerializerInterface $serializer)  | 
            |
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * @inheritdoc  | 
            ||
| 26 | */  | 
            ||
| 27 | 12 | public function compose($payload, array $properties = [], $id = null, $routingKey = null)  | 
            |
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * @param mixed $payload  | 
            ||
| 41 | *  | 
            ||
| 42 | * @return string  | 
            ||
| 43 | */  | 
            ||
| 44 | 9 | protected function serialize($payload)  | 
            |
| 48 | }  | 
            ||
| 49 |