function offsetSet($offset, $value) { return is_null($offset) ? $this->packets[] = $value : ($this->packets[$offset] = $value); }