blob: 0d20f446137ddb3d3546fbaddcc6f6f2af6e4952 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2
3declare(strict_types=1);
4
5namespace Ddeboer\Imap\Message;
6
7/**
8 * An e-mail attachment.
9 */
10interface 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}