Magic::__get PHP Method

__get() public method

Alias for offsetget()
public __get ( $key ) : mixed
$key string
return mixed
    function &__get($key)
    {
        $val =& $this->offsetget($key);
        return $val;
    }