moduleisconstructor2.js 431 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Describe the module here.
  3. * @module mymodule/config
  4. */
  5. /** Describe the class here. */
  6. export default class Config {
  7. /**
  8. * Create a new configuration.
  9. * @param {string} id
  10. */
  11. constructor(id) {
  12. /** Document me. */
  13. this.id = id;
  14. }
  15. /**
  16. * Get the configuration ID.
  17. *
  18. * @return {string} The configuration ID.
  19. */
  20. getId() {
  21. return this.id;
  22. }
  23. }