project.js 838 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class Project {
    constructor(ownerGitlabId, id, name, desc, logo) {
        this.ownerGitlabId = ownerGitlabId
        this.id = id
        this.name = name
        this.desc = desc
        this.logo = logo
    }

    // getter
    getOwnerGitlabId() {
        return this.ownerGitlabId
    }
    getId() {
        return this.id
    }
    getName() {
        return this.name
    }
    getDesc() {
        return this.desc
    }
    getLogo() {
        return this.logo
    }
    // setter
    setOwnerGitlabId(newOwnerGitlabId){
        this.ownerGitlabId = newOwnerGitlabId
    }
    setId(newId) {
        this.id = newId
    }
    setName(newName) {
        this.name = newName
    }
    setDesc(newDesc) {
        this.desc = newDesc
    }
    setLogo(newLogoUrl){
        this.logo = newLogoUrl
    }
}

module.exports = Project