Magic::offsetget PHP 메소드

offsetget() 공개 메소드

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