File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
require __DIR__ . '/vendor/autoload.php ' ;
6
6
7
- $ validator = EmailValidatorFactory::create ($ _REQUEST ['email ' ] ?: '' );
7
+ $ validator = EmailValidatorFactory::create ($ _REQUEST ['email ' ] ?? '' );
8
8
9
9
header ('Content-Type: application/json ' );
10
10
echo $ validator ->getValidationResults ()->asJson ();
Original file line number Diff line number Diff line change 5
5
namespace EmailValidation \Validations ;
6
6
7
7
use EmailValidation \EmailAddress ;
8
- use EmailValidation \EmailDataProvider ;
9
8
use EmailValidation \EmailDataProviderInterface ;
10
9
11
10
abstract class Validator
12
11
{
13
12
private ?EmailAddress $ emailAddress ;
14
13
15
- private ?EmailDataProvider $ emailDataProvider ;
14
+ private ?EmailDataProviderInterface $ emailDataProvider ;
16
15
17
16
public function __construct (EmailAddress $ emailAddress = null , EmailDataProviderInterface $ emailDataProvider = null )
18
17
{
You can’t perform that action at this time.
0 commit comments