Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class Email |
||
11 | { |
||
12 | /** |
||
13 | * Filter an email |
||
14 | * |
||
15 | * The return value is the email, as expected by the \TraderInteractive\Filterer class. |
||
16 | * |
||
17 | * @param mixed $value The value to filter. |
||
18 | * |
||
19 | * @return string The passed in $value. |
||
20 | * |
||
21 | * @throws FilterException if the value did not pass validation. |
||
22 | */ |
||
23 | public static function filter($value) : string |
||
27 | } |
||
28 | |||
29 | private static function validateEmail(string $value) : string |
||
37 | } |
||
38 | |||
39 | private static function validateString($value) |
||
46 |