Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
SmtpSetting | n/a |
0 / 0 |
n/a |
0 / 0 |
2 | n/a |
0 / 0 |
|||
__construct | n/a |
0 / 0 |
n/a |
0 / 0 |
1 | |||||
mode | n/a |
0 / 0 |
n/a |
0 / 0 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Mail; |
6 | |
7 | use PeServer\Core\Mail\Mailer; |
8 | use PeServer\Core\Mail\SendMode; |
9 | |
10 | /** |
11 | * SMTP送信設定。 |
12 | * |
13 | * @codeCoverageIgnore |
14 | */ |
15 | readonly class SmtpSetting implements IMailSetting |
16 | { |
17 | public function __construct( |
18 | public string $host, |
19 | public int $port, |
20 | public string $secure, |
21 | public bool $authentication, |
22 | public string $userName, |
23 | public string $password |
24 | ) { |
25 | } |
26 | |
27 | #region IMailSetting |
28 | |
29 | public function mode(): SendMode |
30 | { |
31 | return SendMode::Smtp; |
32 | } |
33 | |
34 | #endregion |
35 | } |