Library/SymbolTable.php
public function getTempVariable($type, CompilationContext $compilationContext)
    {
        $compilationContext = $compilationContext ?: $this->compilationContext;

        $tempVar = $this->getNextTempVar();
        $variable = $this->addVariable($type, '_'.$tempVar, $compilationContext);
        $variable->setTemporal(true);

        return $variable;
    }
public function getTempVariable($type, CompilationContext $compilationContext)
    {
        $compilationContext = $compilationContext ?: $this->compilationContext;

        $tempVar = $this->getNextTempVar();
        $variable = $this->addVariable($type, '_'.$tempVar, $compilationContext);
        $variable->setTemporal(true);

        return $variable;
    }
public function getTempVariable ( $ type , CompilationContext $ compilationContext ) { $ compilationContext = $ compilationContext ? : $ this -> compilationContext ; $ tempVar = $ this -> getNextTempVar ( ) ; $ variable = $ this -> addVariable ( $ type , '_' . $ tempVar , $ compilationContext ) ; $ variable -> setTemporal ( true ) ; return $ variable ; }
Returns a temporal variable.

@param string             $type
@param CompilationContext $compilationContext

@return Variable
Returns a temporal variable .