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\Message; |
| 6 | |
| 7 | /** |
| 8 | * An e-mail attachment. |
| 9 | */ |
| 10 | interface AttachmentInterface extends PartInterface |
| 11 | { |
| 12 | /** |
| 13 | * Get attachment filename. |
| 14 | */ |
| 15 | public function getFilename(): ?string; |
| 16 | |
| 17 | /** |
| 18 | * Get attachment file size. |
| 19 | * |
| 20 | * @return null|int Number of bytes |
| 21 | */ |
| 22 | public function getSize(); |
| 23 | |
| 24 | /** |
| 25 | * Is this attachment also an Embedded Message? |
| 26 | */ |
| 27 | public function isEmbeddedMessage(): bool; |
| 28 | |
| 29 | /** |
| 30 | * Return embedded message. |
| 31 | */ |
| 32 | public function getEmbeddedMessage(): EmbeddedMessageInterface; |
| 33 | } |