CodeExplorer hasAtToken example
public function parse(string
$str): Result
{ $result = parent::
parse($str);
$this->
addLongEmailWarning($this->localPart,
$this->domainPart
);
return $result;
} protected function preLeftParsing(): Result
{ if (!
$this->
hasAtToken()) { return new InvalidEmail(new NoLocalPart(),
$this->lexer->current->value
);
} return new ValidEmail();
} protected function parseLeftFromAt(): Result
{ return $this->
processLocalPart();
} protected function parseRightFromAt(): Result
{ public function parse(string
$str): Result
{ $result = parent::
parse($str);
$this->
addLongEmailWarning($this->idLeft,
$this->idRight
);
return $result;
} protected function preLeftParsing(): Result
{ if (!
$this->
hasAtToken()) { return new InvalidEmail(new NoLocalPart(),
$this->lexer->current->value
);
} return new ValidEmail();
} protected function parseLeftFromAt(): Result
{ return $this->
processIDLeft();
} protected function parseRightFromAt(): Result
{