Commit d3c70373 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

update contructor/getter/setter

parent 19846ed8
......@@ -15,6 +15,9 @@ class User {
}
// getter
getEmail() {
return this.email
}
getFullName() {
return this.firstName+' '+this.lastName
}
......@@ -24,6 +27,9 @@ class User {
getGitlabUserId() {
return this.gitlabUserId
}
getVerificationStatus() {
return this.verificationStatus
}
// setter
setEmail(email) {
this.email = email
......
const Project = require("./project");
class Website extends Project {
constructor(ownerGitlabId, id, name, desc, logo, settingUrl, kontaktUrl) {
constructor(ownerGitlabId, id, name, desc, logo, settingUrl, kontaktUrl, isPublished) {
super(ownerGitlabId, id, name, desc, logo)
this.settingUrl = settingUrl
this.kontaktUrl = kontaktUrl
this.isPublished = isPublished
}
// getter
getSettingUrl() {
......@@ -13,6 +14,9 @@ class Website extends Project {
getKontaktUrl() {
return this.kontaktUrl
}
getIsPublished() {
return this.isPublished
}
// setter
setSettingUrl(newSettingUrl) {
this.settingUrl = newSettingUrl
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment