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