| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class UsernameChangedEmailFactory extends AbstractUserEmailFactory |
||
| 23 | { |
||
| 24 | public function create(AbstractUser $user, array $context = []): ?RawMessage |
||
| 25 | { |
||
| 26 | if (!$this->enabled) { |
||
| 27 | return null; |
||
| 28 | } |
||
| 29 | $this->initUser($user); |
||
| 30 | |||
| 31 | return $this->createEmailMessage($context); |
||
| 32 | } |
||
| 33 | |||
| 34 | protected function getTemplate(): string |
||
| 37 | } |
||
| 38 | } |
||
| 39 |