The offset to assign the value to.
The value to set.
public function offsetSet($index, $value) { if (null === $index) { $this->array[static::getElementKey($value)] = $value; } else { throw new \BadMethodCallException('Set does not support indexing'); } }