$value) { $this->session[$key] = $value; unset($_SESSION[$key]); } } public function set(string $key, mixed $value): void { $this->session[$key] = $_SESSION[$key] = $value; } public function get(string $key, mixed $default = null): mixed { return $this->session[$key] ?? $default; } }