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

_isSubselect() private method

Checks whether the next 2 tokens start a subselect.
private _isSubselect ( ) : boolean
return boolean TRUE if the next 2 tokens start a subselect, FALSE otherwise.
    private function _isSubselect()
    {
        $la = $this->_lexer->lookahead;
        $next = $this->_lexer->glimpse();

        return ($la['value'] === '(' && $next['type'] === Lexer::T_SELECT);
    }
Parser