EmailValidator
in package
Table of Contents
Properties
- $error : InvalidEmail|null
- $lexer : EmailLexer
- $warnings : array<string|int, Warning>
Methods
- __construct() : mixed
- getError() : InvalidEmail|null
- getWarnings() : array<string|int, mixed>
- hasWarnings() : bool
- isValid() : bool
Properties
$error
private
InvalidEmail|null
$error
$lexer
private
EmailLexer
$lexer
$warnings
private
array<string|int, Warning>
$warnings
= []
Methods
__construct()
public
__construct() : mixed
getError()
public
getError() : InvalidEmail|null
Return values
InvalidEmail|nullgetWarnings()
public
getWarnings() : array<string|int, mixed>
Return values
array<string|int, mixed>hasWarnings()
public
hasWarnings() : bool
Return values
boolisValid()
public
isValid(string $email, EmailValidation $emailValidation) : bool
Parameters
- $email : string
- $emailValidation : EmailValidation