public function offsetSet($offset, $value) { $offset === null ? $this->add($value) : ($this->items[$offset] = $value); }