"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormStorage = exports.IFormStorage = exports.NameDescriptionAndId = void 0;
class NameDescriptionAndId {
    id;
    name;
    description;
    constructor(id, name, description) {
        this.id = id;
        this.name = name;
        this.description = description ?? "";
    }
}
exports.NameDescriptionAndId = NameDescriptionAndId;
class IFormStorage {
}
exports.IFormStorage = IFormStorage;
class FormStorage {
    storageService;
    hasFormStorageService() {
        return this.storageService !== null;
    }
    getStorageService() {
        if (!this.storageService)
            throw new Error("No storage service configured");
        return this.storageService;
    }
    setStorageService(storageService) {
        this.storageService = storageService;
    }
}
exports.FormStorage = FormStorage;
//# sourceMappingURL=IFormStorage.js.map