| 1234567891011121314151617181920212223242526272829 |
- import { type_manager } from "./functions.js";
- class project {
- #name;
- #description;
-
- constructor(name, description) {
- if (!type_manager.is_string(name)) {
- throw "Name of the project must be an string.";
- }
- if (!type_manager.is_string(description)) {
- throw "Description of the project must be an string.";
- }
- this.#name = name;
- this.#description = description;
- }
- get name() {
- return this.#name;
- }
- get description() {
- return this.#description;
- }
- }
- export { project };
|