update($attributes); } /** * Update the attributes. * * @param array $attributes * @return $this */ public function update($attributes = []) { $attributes = array_filter($attributes); foreach ($attributes as $key => $attribute) { $this->$key = $attribute; } return $this; } /** * Whether the given offset exists. * * @param mixed $offset * @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->$offset); } /** * Fetch the offset. * * @param mixed $offset * @return mixed */ #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->$offset; } /** * Assign the offset. * * @param mixed $offset * @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->$offset = $value; } /** * Unset the offset. * * @param mixed $offset * @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { // } }