| Total Complexity | 1 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Email implements ValidateRuleInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Validates that the value is an email address |
||
| 9 | * |
||
| 10 | * @param object $subject The subject to be filtered |
||
| 11 | * @param string $field The subject field name |
||
| 12 | * |
||
| 13 | * @return bool True if valid, false if not |
||
| 14 | */ |
||
| 15 | public function __invoke($subject, string $field): bool |
||
| 20 |