data[$key] ?? $default; } public function set($key, $value) { $this->data[$key] = $value; } public function has($key): bool { return isset($this->data[$key]); } }