$value) $this->offsetSet($key, $value); } } public function offsetGet($index) { if (!parent::offsetExists($index)) return null; return parent::offsetGet($index); } }