private function isTheIdentifierILookingFor(Query\Lexer $lexer)
    {
        if ($lexer->token['type'] === Query\Lexer::T_IDENTIFIER && $lexer->isNextToken(Query\Lexer::T_IDENTIFIER)) {
            return true;
        }

        if ($lexer->token['type'] === Query\Lexer::T_IDENTIFIER && $lexer->isNextToken(Query\Lexer::T_AS)) {

            $lexer->moveNext();

            if ($lexer->lookahead['type'] === Query\Lexer::T_IDENTIFIER) {
                return true;
            }
        }

        return false;
    }
private function isTheIdentifierILookingFor(Query\Lexer $lexer)
    {
        if ($lexer->token['type'] === Query\Lexer::T_IDENTIFIER && $lexer->isNextToken(Query\Lexer::T_IDENTIFIER)) {
            return true;
        }

        if ($lexer->token['type'] === Query\Lexer::T_IDENTIFIER && $lexer->isNextToken(Query\Lexer::T_AS)) {

            $lexer->moveNext();

            if ($lexer->lookahead['type'] === Query\Lexer::T_IDENTIFIER) {
                return true;
            }
        }

        return false;
    }
private function isTheIdentifierILookingFor ( Query \ Lexer $ lexer ) { if ( $ lexer -> token [ 'type' ] === Query \ Lexer :: T_IDENTIFIER && $ lexer -> isNextToken ( Query \ Lexer :: T_IDENTIFIER ) ) { return true ; } if ( $ lexer -> token [ 'type' ] === Query \ Lexer :: T_IDENTIFIER && $ lexer -> isNextToken ( Query \ Lexer :: T_AS ) ) { $ lexer -> moveNext ( ) ; if ( $ lexer -> lookahead [ 'type' ] === Query \ Lexer :: T_IDENTIFIER ) { return true ; } } return false ; }
Check if it's the lexer part is the identifier I looking for

@param \Doctrine\ORM\Query\Lexer $lexer
@return boolean
Check if it s the lexer part is the identifier I looking for