UNPKG

@rr0/cms

Version:

RR0 Content Management System (CMS)

17 lines (16 loc) 538 B
import { CmsOrganization } from "../../../CmsOrganization.js"; import { OrganizationKind } from "@rr0/data"; export class Department extends CmsOrganization { /** * * @param code The unique code. * @param parent The above hierarchu. * @param places The geographical place of the department. */ constructor(code, parent, places) { super(code, places, OrganizationKind.department, parent); } static create(code, parent, place) { return new Department(code, parent, [place]); } }