| 1 | <?php |
||
| 14 | class Mail |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string $id |
||
| 18 | */ |
||
| 19 | private $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var Address |
||
| 23 | */ |
||
| 24 | private $sender; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Content |
||
| 28 | */ |
||
| 29 | private $content; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var AddressContainer |
||
| 33 | */ |
||
| 34 | private $recipients; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var AddressContainer |
||
| 38 | */ |
||
| 39 | private $ccs; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var AddressContainer |
||
| 43 | */ |
||
| 44 | private $bccs; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var AttachmentContainer |
||
| 48 | */ |
||
| 49 | private $attachments; |
||
| 50 | |||
| 51 | public function __construct(Address $sender) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return Content |
||
| 63 | */ |
||
| 64 | public function content(): Content |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return AddressContainer |
||
| 71 | */ |
||
| 72 | public function recipients(): AddressContainer |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return Address |
||
| 79 | */ |
||
| 80 | public function sender(): Address |
||
| 84 | |||
| 85 | /** |
||
| 86 | * @return AddressContainer |
||
| 87 | */ |
||
| 88 | public function ccs(): AddressContainer |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @return AddressContainer |
||
| 95 | */ |
||
| 96 | public function bccs(): AddressContainer |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @return AttachmentContainer |
||
| 103 | */ |
||
| 104 | public function attachments(): AttachmentContainer |
||
| 108 | |||
| 109 | /** |
||
| 110 | * @return string |
||
| 111 | */ |
||
| 112 | public function getId(): string |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @param string $id |
||
| 119 | */ |
||
| 120 | public function setId(string $id) |
||
| 124 | |||
| 125 | } |