Elgg\DeprecationWrapper::offsetGet PHP Method

offsetGet() public method

Array access interface
See also: ArrayAccess::offsetGet()
public offsetGet ( mixed $key ) : mixed
$key mixed Name
return mixed
    public function offsetGet($key)
    {
        $this->displayWarning();
        if (is_object($this->object) && !$this->object instanceof \ArrayAccess) {
            return $this->object->{$key};
        } else {
            return $this->object[$key];
        }
    }