| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | class RFCValidation implements EmailValidation |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var EmailParser|null |
||
| 15 | */ |
||
| 16 | private $parser; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Warning[] |
||
| 20 | */ |
||
| 21 | private array $warnings = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var ?InvalidEmail |
||
| 25 | */ |
||
| 26 | private $error; |
||
| 27 | 178 | ||
| 28 | public function isValid(string $email, EmailLexer $emailLexer): bool |
||
| 45 | } |
||
| 46 | 37 | ||
| 47 | public function getError(): ?InvalidEmail |
||
| 50 | } |
||
| 51 | 24 | ||
| 52 | /** |
||
| 53 | 24 | * @return Warning[] |
|
| 54 | */ |
||
| 55 | public function getWarnings(): array |
||
| 60 |