Doctrine\Common\Annotations\DocParser::matchAny PHP Метод

matchAny() приватный Метод

If any of them matches, this method updates the lookahead token; otherwise a syntax error is raised.
private matchAny ( array $tokens ) : boolean
$tokens array
Результат boolean
    private function matchAny(array $tokens)
    {
        if (!$this->lexer->isNextTokenAny($tokens)) {
            $this->syntaxError(implode(' or ', array_map(array($this->lexer, 'getLiteral'), $tokens)));
        }
        return $this->lexer->moveNext();
    }