public function __unset($objectId) { if ($this->getObject($objectId)) { unset($this->objects[$objectId]); } }