Doctrine\ORM\Query\Parser::QuantifiedExpression PHP Method

QuantifiedExpression() public method

QuantifiedExpression ::= ("ALL" | "ANY" | "SOME") "(" Subselect ")"
public QuantifiedExpression ( ) : Doctrine\ORM\Query\AST\QuantifiedExpression
return Doctrine\ORM\Query\AST\QuantifiedExpression
    public function QuantifiedExpression()
    {
        $type = '';

        if ($this->_lexer->isNextToken(Lexer::T_ALL)) {
            $this->match(Lexer::T_ALL);
            $type = 'ALL';
        } else if ($this->_lexer->isNextToken(Lexer::T_ANY)) {
            $this->match(Lexer::T_ANY);
             $type = 'ANY';
        } else if ($this->_lexer->isNextToken(Lexer::T_SOME)) {
            $this->match(Lexer::T_SOME);
             $type = 'SOME';
        } else {
            $this->syntaxError('ALL, ANY or SOME');
        }

        $this->match(Lexer::T_OPEN_PARENTHESIS);
        $qExpr = new AST\QuantifiedExpression($this->Subselect());
        $qExpr->type = $type;
        $this->match(Lexer::T_CLOSE_PARENTHESIS);

        return $qExpr;
    }
Parser