Comment
extends PartParser
in package
Table of Contents
- $lexer : EmailLexer
- $warnings : array<string|int, mixed>
- $commentStrategy : CommentStrategy
- $openedParenthesis : int
- __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
Return values
mixed —getWarnings()
public
getWarnings() : array<string|int, Warning>
Return values
array<string|int, Warning> —parse()
public
parse() : Result
Return values
Result —checkConsecutiveDots()
protected
checkConsecutiveDots() : Result
Return values
Result —escaped()
protected
escaped() : bool
Return values
bool —parseFWS()
protected
parseFWS() : Result
Return values
Result —noClosingParenthesis()
private
noClosingParenthesis() : bool
Return values
bool —warnEscaping()
private
warnEscaping() : bool