| 1 | <?php |
||
| 10 | final class RedisSend implements MessageSendInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ClientInterface |
||
| 14 | */ |
||
| 15 | private $redis; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $list; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param ClientInterface $redis |
||
| 24 | * @param string $list |
||
| 25 | */ |
||
| 26 | public function __construct(ClientInterface $redis, string $list) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param MessageInterface $message |
||
| 34 | * |
||
| 35 | * @return MessageSendInterface |
||
| 36 | * |
||
| 37 | * @throws MessageSendException |
||
| 38 | */ |
||
| 39 | public function send(MessageInterface $message): MessageSendInterface |
||
| 53 | } |
||
| 54 |