Comment
extends PartParser
in package
Table of Contents
Properties
- $lexer : EmailLexer
- $warnings : array<string|int, mixed>
- $commentStrategy : CommentStrategy
- $openedParenthesis : int
Methods
- __construct() : mixed
- getWarnings() : array<string|int, Warning>
- parse() : Result
- checkConsecutiveDots() : Result
- escaped() : bool
- parseFWS() : Result
- noClosingParenthesis() : bool
- warnEscaping() : bool
Properties
$lexer
protected
EmailLexer
$lexer
$warnings
protected
array<string|int, mixed>
$warnings
= []
$commentStrategy
private
CommentStrategy
$commentStrategy
$openedParenthesis
private
int
$openedParenthesis
= 0
Methods
__construct()
public
__construct(EmailLexer $lexer, CommentStrategy $commentStrategy) : mixed
Parameters
- $lexer : EmailLexer
- $commentStrategy : CommentStrategy
getWarnings()
public
getWarnings() : array<string|int, Warning>
Return values
array<string|int, Warning>parse()
public
parse() : Result
Return values
ResultcheckConsecutiveDots()
protected
checkConsecutiveDots() : Result
Return values
Resultescaped()
protected
escaped() : bool
Return values
boolparseFWS()
protected
parseFWS() : Result
Return values
ResultnoClosingParenthesis()
private
noClosingParenthesis() : bool
Return values
boolwarnEscaping()
private
warnEscaping() : bool