| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 1 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 23 | 2 | public function __invoke(Message $message, string $routingKey = null): ProducerInterface | |
| 24 |     { | ||
| 25 | $this | ||
| 26 | 2 | ->client | |
| 27 | 2 | ->channel() | |
| 28 | 2 | ->basic() | |
| 29 | 2 | ->publish( | |
| 30 | 2 | (new Publish($message)) | |
| 31 | 2 | ->to($this->exchange) | |
| 32 | 2 | ->withRoutingKey($routingKey ?? '') | |
| 33 | ); | ||
| 34 | |||
| 35 | 2 | return $this; | |
| 36 | } | ||
| 38 |