ElggData::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)
    {
        if (array_key_exists($key, $this->attributes)) {
            return $this->attributes[$key];
        }
        return null;
    }