project.js 974 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
class Project {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
2
    constructor(ownerGitlabId, id, name, desc, logo, path) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
3
4
5
6
7
        this.ownerGitlabId = ownerGitlabId
        this.id = id
        this.name = name
        this.desc = desc
        this.logo = logo
Rosanny Sihombing's avatar
Rosanny Sihombing committed
8
        this.path = path
Rosanny Sihombing's avatar
Rosanny Sihombing committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    }

    // getter
    getOwnerGitlabId() {
        return this.ownerGitlabId
    }
    getId() {
        return this.id
    }
    getName() {
        return this.name
    }
    getDesc() {
        return this.desc
    }
    getLogo() {
        return this.logo
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
27
28
29
    getPath() {
        return this.path
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
30
31
32
33
34
35
36
37
38
39
40
41
42
    // setter
    setOwnerGitlabId(newOwnerGitlabId){
        this.ownerGitlabId = newOwnerGitlabId
    }
    setId(newId) {
        this.id = newId
    }
    setName(newName) {
        this.name = newName
    }
    setDesc(newDesc) {
        this.desc = newDesc
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
43
    setLogo(newLogoUrl) {
Rosanny Sihombing's avatar
Rosanny Sihombing committed
44
45
        this.logo = newLogoUrl
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
46
47
48
    setPath(newPath) {
        this.path = newPath
    }
Rosanny Sihombing's avatar
Rosanny Sihombing committed
49
50
51
}

module.exports = Project