| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 2 | public function create(Dsn $dsn): TransportInterface |
|
| 26 | { |
||
| 27 | 2 | $stream = new SocketStream(); |
|
| 28 | 2 | $stream->disableTls(); |
|
| 29 | 2 | $stream->setPort($dsn->getPort(25)); |
|
| 30 | 2 | $stream->setHost($dsn->getHost()); |
|
| 31 | |||
| 32 | 2 | return new SmtpTransport($stream, $this->dispatcher, $this->logger); |
|
| 33 | } |
||
| 35 |