Library/SymbolTable.php
protected function registerTempVariable($type, $location, Variable $variable, CompilationContext $compilationContext = null)
    {
        $compilationContext = $compilationContext ?: $this->compilationContext;
        $branchId = $compilationContext->branchManager->getCurrentBranchId();

        if (!isset($this->branchTempVariables[$branchId][$location][$type])) {
            $this->branchTempVariables[$branchId][$location][$type] = [];
        }
        $this->branchTempVariables[$branchId][$location][$type][] = $variable;
    }
protected function registerTempVariable($type, $location, Variable $variable, CompilationContext $compilationContext = null)
    {
        $compilationContext = $compilationContext ?: $this->compilationContext;
        $branchId = $compilationContext->branchManager->getCurrentBranchId();

        if (!isset($this->branchTempVariables[$branchId][$location][$type])) {
            $this->branchTempVariables[$branchId][$location][$type] = [];
        }
        $this->branchTempVariables[$branchId][$location][$type][] = $variable;
    }
protected function registerTempVariable ( $ type , $ location , Variable $ variable , CompilationContext $ compilationContext = null ) { $ compilationContext = $ compilationContext ? : $ this -> compilationContext ; $ branchId = $ compilationContext -> branchManager -> getCurrentBranchId ( ) ; if ( ! isset ( $ this -> branchTempVariables [ $ branchId ] [ $ location ] [ $ type ] ) ) { $ this -> branchTempVariables [ $ branchId ] [ $ location ] [ $ type ] = [ ] ; } $ this -> branchTempVariables [ $ branchId ] [ $ location ] [ $ type ] [ ] = $ variable ; }
Register a variable as temporal.

@param string             $type
@param string             $location
@param Variable           $variable
@param CompilationContext $compilationContext
Register a variable as temporal .