Doctrine\Common\Annotations\DocParser::matchAny PHP Method

matchAny() private method

If any of them matches, this method updates the lookahead token; otherwise a syntax error is raised.
private matchAny ( array $tokens ) : boolean
$tokens array
return 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();
    }