public function getObject($id) { if (null !== $this->objects) { $id = strtolower($id); return isset($this->objects[$id]) ? $this->objects[$id] : null; } }