public function removeVariable(Variable $variable) { unset($this->variables[$variable->getHash()]); return $this; }