project.js 594 B

1234567891011121314151617181920212223242526272829
  1. import { type_manager } from "./functions.js";
  2. class project {
  3. #name;
  4. #description;
  5. constructor(name, description) {
  6. if (!type_manager.is_string(name)) {
  7. throw "Name of the project must be an string.";
  8. }
  9. if (!type_manager.is_string(description)) {
  10. throw "Description of the project must be an string.";
  11. }
  12. this.#name = name;
  13. this.#description = description;
  14. }
  15. get name() {
  16. return this.#name;
  17. }
  18. get description() {
  19. return this.#description;
  20. }
  21. }
  22. export { project };