| Total Complexity | 4 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class BannedListValidator extends AValidator |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Validates an email address against the banned domains list |
||
| 20 | * |
||
| 21 | * @param EmailAddress $email The email address to validate |
||
| 22 | * @return bool True if the domain is not banned or validation is disabled, false if the domain is banned |
||
| 23 | */ |
||
| 24 | public function validate(EmailAddress $email): bool |
||
| 37 |