{$offset} = $value; } public function offsetExists($offset): bool { return isset($this->{$offset}); } public function offsetUnset($offset): void { unset($this->{$offset}); } public function offsetGet(mixed $offset): mixed { if (property_exists($this, $offset)) { return $this->{$offset}; } return null; } }