array[$cellName] = $cellValue; return $this; } /** * @inheritDoc */ public function push ($cellValue): self { return $this->set($this->count(), $cellValue); } /** * @inheritDoc */ public function del ($cellName, ?bool $throwsForNonExistentElement = null): self { if ($throwsForNonExistentElement ?? $this->throwsForNonExistentElement() && !$this->has($cellName)) { throw new OutOfRangeException(); } unset($this->array[$cellName]); return $this; } /** * @inheritDoc */ public function offsetSet ($offset, $value): void { $this->set($offset, $value); } /** * @inheritDoc */ public function offsetUnset ($offset): void { $this->del($offset); } }