public function offsetSet($offset, $value) { $this->ensureValidItemType($value); parent::offsetSet($offset, $value); }