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