public function getTree($hash) { if (!isset($this->objects[$hash])) { $this->objects[$hash] = new Tree($this, $hash); } return $this->objects[$hash]; }