| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function getInstance(): \Symfony\Component\Mailer\Transport\SendmailTransport |
||
| 28 | { |
||
| 29 | if ($this->instance === null) { |
||
| 30 | $sendMailFactory = new \Symfony\Component\Mailer\Transport\SendmailTransportFactory(); |
||
| 31 | 3 | $this->instance = $sendMailFactory->create(Dsn::fromString($this->dsn)); |
|
| 32 | } |
||
| 33 | 3 | ||
| 34 | 3 | return $this->instance; |
|
| 35 | 3 | } |
|
| 37 |