Robbo\Presenter\Presenter::offsetSet PHP Method

offsetSet() public method

Set variable or key value using array access.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed
$value mixed
return void
    public function offsetSet($offset, $value)
    {
        if (is_array($this->object)) {
            $this->object[$offset] = $value;
            return;
        }
        $this->object->{$offset} = $value;
    }