Parser
in package
Table of Contents
- $lexer : EmailLexer
- $openedParenthesis : int
- $warnings : array<string|int, mixed>
- __construct() : mixed
- getOpenedParenthesis() : int
- getWarnings() : array<string|int, Warning>
- parse() : mixed
- checkConsecutiveDots() : mixed
- checkCRLFInFWS() : mixed
- checkDQUOTE() : bool
- escaped() : bool
- isFWS() : bool
- isUnclosedComment() : bool
- parseComments() : mixed
- parseFWS() : mixed
- validateQuotedPair() : mixed
- validateQuotedPair
- warnEscaping() : bool
Properties
$lexer
protected
EmailLexer
$lexer
$openedParenthesis
protected
int
$openedParenthesis
= 0
$warnings
protected
array<string|int, mixed>
$warnings
= []
Methods
__construct()
public
__construct(EmailLexer $lexer) : mixed
Parameters
- $lexer : EmailLexer
Return values
mixed —getOpenedParenthesis()
public
getOpenedParenthesis() : int
Return values
int —getWarnings()
public
getWarnings() : array<string|int, Warning>
Return values
array<string|int, Warning> —parse()
public
abstract parse(string $str) : mixed
Parameters
- $str : string
Return values
mixed —checkConsecutiveDots()
protected
checkConsecutiveDots() : mixed
Return values
mixed —checkCRLFInFWS()
protected
checkCRLFInFWS() : mixed
Return values
mixed —checkDQUOTE()
protected
checkDQUOTE(bool $hasClosingQuote) : bool
Parameters
- $hasClosingQuote : bool
Return values
bool —escaped()
protected
escaped() : bool
Return values
bool —isFWS()
protected
isFWS() : bool
Return values
bool —isUnclosedComment()
protected
isUnclosedComment() : bool
Return values
bool —parseComments()
protected
parseComments() : mixed
Return values
mixed —parseFWS()
protected
parseFWS() : mixed
Return values
mixed —validateQuotedPair()
validateQuotedPair
protected
validateQuotedPair() : mixed
Return values
mixed —warnEscaping()
protected
warnEscaping() : bool