Total Complexity | 2 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class OAuthAuthenticator implements SMTPAuthenticator |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $user; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $host; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $port; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $token; |
||
36 | |||
37 | public function __construct(string $user, string $host, string $port, string $token) |
||
38 | { |
||
39 | $this->user = $user; |
||
40 | $this->host = $host; |
||
41 | $this->port = $port; |
||
42 | $this->token = $token; |
||
43 | } |
||
44 | |||
45 | public function authenticate(SMTPClient $client): void |
||
64 | } |
||
65 | } |
||
66 |