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