src/Core/Utilities/Classes/ArrayAccessTrait.php
public function offsetSet($offset, $value)
    {
        $field = $this->dataField;

        if ($offset !== null) {
            $this->{$field}[$offset] = $value;
        } else {
            array_push($this->{$field}, $value);
        }
    }
public function offsetSet($offset, $value)
    {
        $field = $this->dataField;

        if ($offset !== null) {
            $this->{$field}[$offset] = $value;
        } else {
            array_push($this->{$field}, $value);
        }
    }
public function offsetSet ( $ offset , $ value ) { $ field = $ this -> dataField ; if ( $ offset !== null ) { $ this -> { $ field } [ $ offset ] = $ value ; } else { array_push ( $ this -> { $ field } , $ value ) ; } }
Set value to property

@param mixed $offset Property key.
@param mixed $value  Property value to set.

@return  void
Set value to property