| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class EmailChannel implements ChannelInterface |
||
| 14 | { |
||
| 15 | private const NO_REPLY_EMAIL = '[email protected]'; |
||
| 16 | |||
| 17 | private string $toAddress; |
||
| 18 | |||
| 19 | private MailerInterface $mailer; |
||
| 20 | |||
| 21 | private TemplateGeneratorInterface $templateGenerator; |
||
| 22 | |||
| 23 | 1 | public function __construct( |
|
| 31 | 1 | } |
|
| 32 | |||
| 33 | 1 | public function send(NotifyResult $notifyResult): void |
|
| 42 | 1 | } |
|
| 43 | |||
| 44 | 1 | private function generateSubject(NotifyResult $notifyResult): string |
|
| 51 |