Total Complexity | 6 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | trait HasEmailDomainChecker |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Check is email has public provider. |
||
13 | * |
||
14 | * @param string|null $email |
||
15 | * |
||
16 | * @return bool |
||
17 | */ |
||
18 | 1 | public function hasPublicEmailProviderDomain(?string $email = null): bool |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * Get email provider domain. |
||
27 | * |
||
28 | * @param string|null $email |
||
29 | * |
||
30 | * @return string |
||
31 | */ |
||
32 | 2 | public function getEmailProviderDomain(?string $email = null): string |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * Field key name. |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | 3 | public function emailKeyForDomainChecker(): string |
|
52 |