public function EmailLexer::find in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/egulias/email-validator/src/Egulias/EmailValidator/EmailLexer.php \Egulias\EmailValidator\EmailLexer::find()
Parameters
$type:
Return value
boolean
Throws
\UnexpectedValueException
File
- vendor/egulias/ email-validator/ src/ Egulias/ EmailValidator/ EmailLexer.php, line 98 
Class
Namespace
Egulias\EmailValidatorCode
public function find($type) {
  $search = clone $this;
  $search
    ->skipUntil($type);
  if (!$search->lookahead) {
    throw new \UnexpectedValueException($type . ' not found');
  }
  return true;
}