Magic::offsetget PHP Méthode

offsetget() public méthode

Convenience method for retrieving property value
public offsetget ( $key ) : mixed
$key string
Résultat mixed
    function &offsetget($key)
    {
        if (Base::instance()->visible($this, $key)) {
            $val =& $this->{$key};
        } else {
            $val =& $this->get($key);
        }
        return $val;
    }