public function offsetGet($offset) { if (parent::offsetExists($offset)) { return parent::offsetGet($offset); } if ($this->wrapped_object instanceof ArrayAccess) { return $this->wrapped_object->offsetGet($offset); } }
public function offsetGet($offset) { if ($this->missing) { $intermediate_helper = new UpdateEntityAdminHelper($this->context, array_merge($this->parameter, [$offset])); return $this->initChild($offset, $intermediate_helper); } if ($this->offsetExists($offset) && array_key_exists($offset, $this->elements)) { return $this->initChild($offset, $this->elements[$offset]); } return parent::offsetGet($offset); }