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