/** * Get the value for a given offset. * * @param mixed $offset * @return mixed */ publicfunctionoffsetGet($offset) { return$this->getAttribute($offset); }
/** * Set the value for a given offset. * * @param mixed $offset * @param mixed $value * @return void */ publicfunctionoffsetSet($offset, $value) { $this->setAttribute($offset, $value); }
/** * Unset the value for a given offset. * * @param mixed $offset * @return void */ publicfunctionoffsetUnset($offset) { unset($this->attributes[$offset], $this->relations[$offset]); }