Magic::offsetget PHP Method

offsetget() public method

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