| 1 | <?php |
||
| 9 | final class ArrayBackend implements BackendInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | private $addresses; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * ArrayBackend constructor. |
||
| 18 | * @param array $addresses |
||
| 19 | */ |
||
| 20 | public function __construct(array $addresses) |
||
| 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 | * @param string $folder |
||
| 41 | */ |
||
| 42 | public function store(EmailAddress $mailbox, MessageInterface $message, string $folder): void |
||
| 46 | } |