1 | <?php |
||
21 | class EmailValidationService implements EmailValidatorInterface |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var EE_Registration_Config $registration_config |
||
26 | */ |
||
27 | protected $registration_config; |
||
28 | |||
29 | /** |
||
30 | * @var Loader $loader |
||
31 | */ |
||
32 | protected $loader; |
||
33 | |||
34 | |||
35 | |||
36 | /** |
||
37 | * EmailValidationService constructor. |
||
38 | * Accepts an \EE_Config as an argument. |
||
39 | * |
||
40 | * @param EE_Registration_Config $config |
||
41 | * @param Loader $loader |
||
42 | */ |
||
43 | public function __construct(EE_Registration_Config $config, Loader $loader) |
||
48 | |||
49 | |||
50 | |||
51 | /** |
||
52 | * Validates the email address. If it's invalid, an EmailValidationException |
||
53 | * is thrown that describes why its invalid. |
||
54 | * |
||
55 | * @param string $email_address |
||
56 | * @return boolean |
||
57 | * @throws EmailValidationException |
||
58 | */ |
||
59 | public function validate($email_address) |
||
87 | |||
88 | |||
89 | } |
||
90 | // End of file EmailValidator.php |
||
92 |