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 | 2 | public function __construct(QueueInterface $backend) |
|
27 | |||
28 | /** |
||
29 | * @param EmailAddress $mailbox |
||
30 | * @return bool |
||
31 | */ |
||
32 | 1 | public function contains(EmailAddress $mailbox): bool |
|
36 | |||
37 | /** |
||
38 | * @param EmailAddress $mailbox |
||
39 | * @param MessageInterface $message |
||
40 | * @param string $folder |
||
41 | */ |
||
42 | 1 | public function store(EmailAddress $mailbox, MessageInterface $message, string $folder): void |
|
46 | } |