Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
d3c70373
Commit
d3c70373
authored
Feb 11, 2021
by
Rosanny Sihombing
Browse files
update contructor/getter/setter
parent
19846ed8
Changes
2
Hide whitespace changes
Inline
Side-by-side
classes/user.js
View file @
d3c70373
...
...
@@ -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
...
...
classes/website.js
View file @
d3c70373
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment