function EmailLexer::moveNext
moveNext
Return value
boolean
Overrides AbstractLexer::moveNext
File
-
vendor/
egulias/ email-validator/ src/ EmailLexer.php, line 198
Class
- EmailLexer
- @extends AbstractLexer<int, string>
Namespace
Egulias\EmailValidatorCode
public function moveNext() : bool {
if ($this->hasToRecord && $this->previous === $this->nullToken) {
$this->accumulator .= $this->current->value;
}
$this->previous = $this->current;
if ($this->lookahead === null) {
$this->lookahead = $this->nullToken;
}
$hasNext = parent::moveNext();
$this->current = $this->token ?? $this->nullToken;
if ($this->hasToRecord) {
$this->accumulator .= $this->current->value;
}
return $hasNext;
}