| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 39 | public function send(MessageInterface $message): MessageSendInterface | ||
| 40 |     { | ||
| 41 |         try { | ||
| 42 | $this->redis->rpush($this->list, [$message->toJson()]); | ||
| 43 |         } catch (\Exception $e) { | ||
| 44 | throw new MessageSendException( | ||
| 45 |                 MessageSendException::MESSAGE_SEND_FAILED.'('.$e->getMessage().')', | ||
| 46 | MessageSendException::CODE_SEND_FAILED, | ||
| 47 | $e | ||
| 48 | ); | ||
| 49 | } | ||
| 50 | |||
| 51 | return $this; | ||
| 52 | } | ||
| 53 | } | ||
| 54 |