| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | public function send(EmailableInterface $to): int |
||
| 58 | { |
||
| 59 | $message = $this->messageFactory->createMessage($to->getEmail(), $this->templateName, ['receiver' => $to]); |
||
|
|
|||
| 60 | $message->setFrom($this->fromEmail); |
||
| 61 | if (null !== $this->replayToEmail) { |
||
| 62 | $message->setReplyTo($this->replayToEmail); |
||
| 63 | } |
||
| 64 | |||
| 65 | return $this->mailer->send($message); |
||
| 66 | } |
||
| 68 |