Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
48 | 1 | public function send(CommandInterface $command) |
|
49 | { |
||
50 | 1 | $serialized = $this->serializer->serialize($command); |
|
51 | 1 | $this->producer->publish( |
|
52 | 1 | $serialized->getSerializedCommand(), |
|
53 | 1 | $serialized->getCommandClass(), |
|
54 | array( |
||
55 | 'application_headers' => array( |
||
56 | 'x-class-name' => array( |
||
57 | 1 | 'S', |
|
58 | 1 | $serialized->getCommandClass(), |
|
59 | 1 | ), |
|
60 | 1 | ), |
|
61 | ) |
||
62 | 1 | ); |
|
63 | 1 | } |
|
64 | } |
||
65 |