Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Ddeboer\Imap; |
| 6 | |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 7 | use Ddeboer\Imap\Exception\InvalidResourceException; |
| 8 | |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 9 | interface ImapResourceInterface |
| 10 | { |
| 11 | /** |
| 12 | * Get IMAP resource stream. |
| 13 | * |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 14 | * @throws InvalidResourceException |
| 15 | * |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 16 | * @return resource |
| 17 | */ |
| 18 | public function getStream(); |
| 19 | |
| 20 | /** |
| 21 | * Clear last mailbox used cache. |
| 22 | */ |
| 23 | public function clearLastMailboxUsedCache(): void; |
| 24 | } |