| 1 | <?php |
||
| 8 | class MailOptions extends AbstractOptions |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var SmtpOptions |
||
| 12 | */ |
||
| 13 | protected $smtp = null; |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $from = ''; |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected $to = ''; |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $subject = 'Alejandro Celaya | Contact form'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | 2 | * @return string |
|
| 29 | */ |
||
| 30 | 2 | public function getSubject(): string |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $subject |
||
| 37 | 2 | * @return $this|MailOptions |
|
| 38 | */ |
||
| 39 | 2 | public function setSubject(string $subject): MailOptions |
|
| 44 | |||
| 45 | /** |
||
| 46 | 1 | * @return SmtpOptions|null |
|
| 47 | */ |
||
| 48 | 1 | public function getSmtp(): SmtpOptions |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @param SmtpOptions|array $smtp |
||
| 55 | 1 | * @return $this|MailOptions |
|
| 56 | */ |
||
| 57 | 1 | public function setSmtp($smtp): MailOptions |
|
| 62 | |||
| 63 | /** |
||
| 64 | 2 | * @return string |
|
| 65 | */ |
||
| 66 | 2 | public function getFrom(): string |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $from |
||
| 73 | 2 | * @return $this|MailOptions |
|
| 74 | */ |
||
| 75 | 2 | public function setFrom(string $from): MailOptions |
|
| 80 | |||
| 81 | /** |
||
| 82 | 2 | * @return string |
|
| 83 | */ |
||
| 84 | 2 | public function getTo(): string |
|
| 88 | |||
| 89 | /** |
||
| 90 | * @param string $to |
||
| 91 | 2 | * @return $this|MailOptions |
|
| 92 | */ |
||
| 93 | 2 | public function setTo(string $to): MailOptions |
|
| 98 | } |
||
| 99 |