Zephir\SymbolTable::registerTempVariable PHP 메소드

registerTempVariable() 보호된 메소드

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