| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 90.91% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class SocketConnector implements SMTPConnector |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string SMTP hostname |
||
| 13 | */ |
||
| 14 | protected $host; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int SMTP server port-number |
||
| 18 | */ |
||
| 19 | protected $port; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $host SMTP host-name |
||
| 23 | * @param int $port SMTP port-number |
||
| 24 | */ |
||
| 25 | 2 | public function __construct(string $host, int $port = 25) |
|
| 29 | 2 | } |
|
| 30 | |||
| 31 | 2 | public function connect(string $client_domain): SMTPClient |
|
| 46 |