1 | <?php |
||
11 | final class QueueBackend implements BackendInterface |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @var QueueInterface |
||
16 | */ |
||
17 | private $queue; |
||
18 | |||
19 | /** |
||
20 | * QueueBackend constructor. |
||
21 | * @param QueueInterface $backend |
||
22 | */ |
||
23 | public function __construct(QueueInterface $backend) |
||
27 | |||
28 | /** |
||
29 | * @param EmailAddress $mailbox |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function contains(EmailAddress $mailbox): bool |
||
36 | |||
37 | /** |
||
38 | * @param EmailAddress $mailbox |
||
39 | * @param MessageInterface $message |
||
40 | */ |
||
41 | public function store(EmailAddress $mailbox, MessageInterface $message): void |
||
45 | } |