| 1 | <?php |
||
| 8 | class SmtpOptions extends AbstractOptions |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | protected $server = 'smtp.gmail.com'; |
||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $ssl = 'tls'; |
||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | */ |
||
| 21 | protected $port = 587; |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | protected $username = ''; |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $password = ''; |
||
| 30 | |||
| 31 | /** |
||
| 32 | 1 | * @return string |
|
| 33 | */ |
||
| 34 | 1 | public function getServer(): string |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $server |
||
| 41 | 1 | * @return SmtpOptions |
|
| 42 | */ |
||
| 43 | 1 | public function setServer(string $server): SmtpOptions |
|
| 48 | |||
| 49 | /** |
||
| 50 | 1 | * @return string |
|
| 51 | */ |
||
| 52 | 1 | public function getSsl(): string |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $ssl |
||
| 59 | 1 | * @return SmtpOptions |
|
| 60 | */ |
||
| 61 | 1 | public function setSsl(string $ssl): SmtpOptions |
|
| 66 | |||
| 67 | /** |
||
| 68 | 1 | * @return int |
|
| 69 | */ |
||
| 70 | 1 | public function getPort(): int |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @param int $port |
||
| 77 | 1 | * @return SmtpOptions |
|
| 78 | */ |
||
| 79 | 1 | public function setPort(int $port): SmtpOptions |
|
| 84 | |||
| 85 | /** |
||
| 86 | 1 | * @return string |
|
| 87 | */ |
||
| 88 | 1 | public function getUsername(): string |
|
| 92 | |||
| 93 | /** |
||
| 94 | * @param string $username |
||
| 95 | 1 | * @return SmtpOptions |
|
| 96 | */ |
||
| 97 | 1 | public function setUsername(string $username): SmtpOptions |
|
| 102 | |||
| 103 | /** |
||
| 104 | 1 | * @return string |
|
| 105 | */ |
||
| 106 | 1 | public function getPassword(): string |
|
| 110 | |||
| 111 | /** |
||
| 112 | * @param string $password |
||
| 113 | 1 | * @return SmtpOptions |
|
| 114 | */ |
||
| 115 | 1 | public function setPassword(string $password): SmtpOptions |
|
| 120 | } |
||
| 121 |