website.js 729 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
const Project = require("./project");

class Website extends Project {
4
    constructor(ownerGitlabId, id, name, desc, logo, settingUrl, kontaktUrl, isPublished) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
5
6
7
        super(ownerGitlabId, id, name, desc, logo)
        this.settingUrl = settingUrl
        this.kontaktUrl = kontaktUrl
8
        this.isPublished = isPublished
Rosanny Sihombing's avatar
Rosanny Sihombing committed
9
10
11
12
13
14
15
16
    }
    // getter
    getSettingUrl() {
        return this.settingUrl
    }
    getKontaktUrl() {
        return this.kontaktUrl
    }
17
18
19
    getIsPublished() {
        return this.isPublished
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
20
21
22
23
24
25
26
27
28
29
    // setter
    setSettingUrl(newSettingUrl) {
        this.settingUrl = newSettingUrl
    }
    setKontaktUrl(newKontaktUrl) {
        this.kontaktUrl = newKontaktUrl
    }
}

module.exports = Website