Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | final class UserEnabledEmailFactory extends AbstractUserEmailFactory |
||
23 | { |
||
24 | public const MESSAGE_ID_PREFIX = 'uee'; |
||
25 | |||
26 | public function create(AbstractUser $user, array $context = []): ?RawMessage |
||
27 | { |
||
28 | if (!$this->enabled) { |
||
29 | return null; |
||
30 | } |
||
31 | $this->initUser($user); |
||
32 | |||
33 | return $this->createEmailMessage($context); |
||
34 | } |
||
35 | |||
36 | protected function getTemplate(): string |
||
39 | } |
||
40 | } |
||
41 |