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

ResultVariable() public method

ResultVariable ::= identifier
public ResultVariable ( ) : string
return string
    public function ResultVariable()
    {
        $this->match(Lexer::T_IDENTIFIER);

        $resultVariable = $this->_lexer->token['value'];

        // Defer ResultVariable validation
        $this->_deferredResultVariables[] = array(
            'expression'   => $resultVariable,
            'nestingLevel' => $this->_nestingLevel,
            'token'        => $this->_lexer->token,
        );

        return $resultVariable;
    }
Parser