Table of Contents
Constants
-
INVALID_TOKENS
= [\Egulias\EmailValidator\EmailLexer::S_COMMA => \Egulias\EmailValidator\EmailLexer::S_COMMA, \Egulias\EmailValidator\EmailLexer::S_CLOSEBRACKET => \Egulias\EmailValidator\EmailLexer::S_CLOSEBRACKET, \Egulias\EmailValidator\EmailLexer::S_OPENBRACKET => \Egulias\EmailValidator\EmailLexer::S_OPENBRACKET, \Egulias\EmailValidator\EmailLexer::S_GREATERTHAN => \Egulias\EmailValidator\EmailLexer::S_GREATERTHAN, \Egulias\EmailValidator\EmailLexer::S_LOWERTHAN => \Egulias\EmailValidator\EmailLexer::S_LOWERTHAN, \Egulias\EmailValidator\EmailLexer::S_COLON => \Egulias\EmailValidator\EmailLexer::S_COLON, \Egulias\EmailValidator\EmailLexer::S_SEMICOLON => \Egulias\EmailValidator\EmailLexer::S_SEMICOLON, \Egulias\EmailValidator\EmailLexer::INVALID => \Egulias\EmailValidator\EmailLexer::INVALID]
Properties
-
$lexer
: EmailLexer
-
$warnings
: array<string|int, mixed>
-
$localPart
: string
Methods
-
__construct()
: mixed
-
getWarnings()
: array<string|int, Warning>
-
localPart()
: string
-
parse()
: Result
-
checkConsecutiveDots()
: Result
-
escaped()
: bool
-
parseComments()
: Result
-
parseFWS()
: Result
-
validateTokens()
: Result
-
hasDotAtStart()
: bool
-
parseDoubleQuote()
: Result
-
parseLocalFWS()
: Result
-
validateEscaping()
: Result
INVALID_TOKENS
public
mixed
INVALID_TOKENS
= [\Egulias\EmailValidator\EmailLexer::S_COMMA => \Egulias\EmailValidator\EmailLexer::S_COMMA, \Egulias\EmailValidator\EmailLexer::S_CLOSEBRACKET => \Egulias\EmailValidator\EmailLexer::S_CLOSEBRACKET, \Egulias\EmailValidator\EmailLexer::S_OPENBRACKET => \Egulias\EmailValidator\EmailLexer::S_OPENBRACKET, \Egulias\EmailValidator\EmailLexer::S_GREATERTHAN => \Egulias\EmailValidator\EmailLexer::S_GREATERTHAN, \Egulias\EmailValidator\EmailLexer::S_LOWERTHAN => \Egulias\EmailValidator\EmailLexer::S_LOWERTHAN, \Egulias\EmailValidator\EmailLexer::S_COLON => \Egulias\EmailValidator\EmailLexer::S_COLON, \Egulias\EmailValidator\EmailLexer::S_SEMICOLON => \Egulias\EmailValidator\EmailLexer::S_SEMICOLON, \Egulias\EmailValidator\EmailLexer::INVALID => \Egulias\EmailValidator\EmailLexer::INVALID]
$lexer
protected
EmailLexer
$lexer
$warnings
protected
array<string|int, mixed>
$warnings
= []
$localPart
private
string
$localPart
= ''
__construct()
public
__construct(EmailLexer $lexer) : mixed
Parameters
-
$lexer
: EmailLexer
-
getWarnings()
public
getWarnings() : array<string|int, Warning>
Return values
array<string|int, Warning>
localPart()
public
localPart() : string
parse()
public
parse() : Result
checkConsecutiveDots()
protected
checkConsecutiveDots() : Result
escaped()
protected
escaped() : bool
protected
parseComments() : Result
parseFWS()
protected
parseFWS() : Result
validateTokens()
protected
validateTokens(bool $hasComments) : Result
Parameters
-
$hasComments
: bool
-
hasDotAtStart()
private
hasDotAtStart() : bool
parseDoubleQuote()
private
parseDoubleQuote() : Result
parseLocalFWS()
private
parseLocalFWS() : Result
validateEscaping()
private
validateEscaping() : Result