You are here

public function EmailLexer::find in Zircon Profile 8

Same name and namespace in other branches
  1. 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

EmailLexer

Namespace

Egulias\EmailValidator

Code

public function find($type) {
  $search = clone $this;
  $search
    ->skipUntil($type);
  if (!$search->lookahead) {
    throw new \UnexpectedValueException($type . ' not found');
  }
  return true;
}