public function setVariableLocal($name, $value)
    {
        if (!$this->isScope()) {
            return $this->getScope()->setVariableLocal($name, $value);
        }
        
        if ($value === null) {
            unset($this->variables[(string) $name]);
        } else {
            $this->variables[(string) $name] = $value;
        }
        
        $this->markModified();
    }