Magic::offsetset PHP Méthode

offsetset() public méthode

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