public function offsetGet($offset) { return isset($this->grant->{$offset}) ? $this->grant->{$offset} : ($this->parent !== null ? $this->parent[$offset] : null); }