Library/SymbolTable.php
public function addTemp($type, CompilationContext $context)
    {
        $tempVar = $this->getNextTempVar();
        $variable = $this->addVariable($type, '_'.$tempVar, $context);
        $variable->setIsInitialized(true, $context);
        $variable->setTemporal(true);
        $variable->increaseUses();
        $variable->increaseMutates();

        return $variable;
    }
public function addTemp($type, CompilationContext $context)
    {
        $tempVar = $this->getNextTempVar();
        $variable = $this->addVariable($type, '_'.$tempVar, $context);
        $variable->setIsInitialized(true, $context);
        $variable->setTemporal(true);
        $variable->increaseUses();
        $variable->increaseMutates();

        return $variable;
    }
public function addTemp ( $ type , CompilationContext $ context ) { $ tempVar = $ this -> getNextTempVar ( ) ; $ variable = $ this -> addVariable ( $ type , '_' . $ tempVar , $ context ) ; $ variable -> setIsInitialized ( true , $ context ) ; $ variable -> setTemporal ( true ) ; $ variable -> increaseUses ( ) ; $ variable -> increaseMutates ( ) ; return $ variable ; }
Creates a temporary variable.

@param string             $type
@param CompilationContext $context

@return Variable
Creates a temporary variable .