Magic::offsetset PHP Method

offsetset() public method

Convenience method for assigning property value
public offsetset ( $key, $val ) : mixed
$key string
$val scalar
return mixed
    function offsetset($key, $val)
    {
        return Base::instance()->visible($this, $key) ? $this->{$key} = $val : $this->set($key, $val);
    }