Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject::offsetSet PHP Method

offsetSet() public method

(PHP 5 >= 5.0.0)
Offset to set
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed

The offset to assign the value to.

$value mixed

The value to set.

return void
    public function offsetSet($offset, $value)
    {
        if ($this->isNull($offset)) {
            $this->value[] = $value;
        } else {
            $this->value[$offset] = $value;
        }
    }