export class Permission {
    constructor(name, create = false, read = true, update = false, del = false) {
        this.name = name;
        this.create = create;
        this.read = read;
        this.update = update;
        this.delete = del;
    }
    set(create, read, update, del) {
        this.create = create;
        this.read = read;
        this.update = update;
        this.delete = del;
    }
    get() {
        return [this.create, this.read, this.update, this.delete];
    }
}
//# sourceMappingURL=permission.js.map