FOSSology
4.4.0
Open Source License Compliance by Open Source Software
AdminAcknowledgement.php
Go to the documentation of this file.
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2024 Divij Sharma <divijs75@gmail.com>
4
SPDX-License-Identifier: GPL-2.0-only
5
*/
10
namespace
Fossology\UI\Api\Models;
11
12
13
class
AdminAcknowledgement
14
{
19
private
$id
;
24
private
$name
;
29
private
$acknowledgement
;
34
private
$isEnabled
;
35
42
public
function
__construct
(
$id
,
$name
,
$acknowledgement
,
$isEnabled
)
43
{
44
$this->
id
=
$id
;
45
$this->name =
$name
;
46
$this->acknowledgement =
$acknowledgement
;
47
$this->isEnabled =
$isEnabled
;
48
}
49
53
public
function
getId
()
54
{
55
return
$this->id
;
56
}
57
61
public
function
getName
()
62
{
63
return
$this->name
;
64
}
65
69
public
function
getAcknowledgement
()
70
{
71
return
$this->acknowledgement
;
72
}
73
77
public
function
getIsEnabled
()
78
{
79
return
$this->isEnabled
;
80
}
81
82
83
89
public
function
getJSON
($version=ApiVersion::V1)
90
{
91
return
json_encode($this->
getArray
($version));
92
}
93
99
public
function
getArray
($version=ApiVersion::V1)
100
{
101
if
($version == ApiVersion::V2) {
102
return
[
103
'id'
=> $this->
getId
(),
104
'name'
=> $this->
getName
(),
105
'acknowledgement'
=> $this->
getAcknowledgement
(),
106
'isEnabled'
=> $this->
getIsEnabled
()
107
];
108
}
109
return
[
110
'id'
=> $this->
getId
(),
111
'name'
=> $this->
getName
(),
112
'acknowledgement'
=> $this->
getAcknowledgement
(),
113
'is_enabled'
=> $this->
getIsEnabled
()
114
];
115
}
116
120
public
function
setId
(
$id
)
121
{
122
$this->
id
=
$id
;
123
}
124
128
public
function
setName
(
$name
)
129
{
130
$this->name =
$name
;
131
}
132
136
public
function
setAcknowledgement
(
$acknowledgement
)
137
{
138
$this->acknowledgement =
$acknowledgement
;
139
}
140
144
public
function
setIsEnabled
(
$isEnabled
)
145
{
146
$this->isEnabled =
$isEnabled
;
147
}
148
}
Fossology\UI\Api\Models\AdminAcknowledgement
Definition:
AdminAcknowledgement.php:14
Fossology\UI\Api\Models\AdminAcknowledgement\setAcknowledgement
setAcknowledgement($acknowledgement)
Definition:
AdminAcknowledgement.php:136
Fossology\UI\Api\Models\AdminAcknowledgement\getIsEnabled
getIsEnabled()
Definition:
AdminAcknowledgement.php:77
Fossology\UI\Api\Models\AdminAcknowledgement\getId
getId()
Definition:
AdminAcknowledgement.php:53
Fossology\UI\Api\Models\AdminAcknowledgement\getJSON
getJSON($version=ApiVersion::V1)
Definition:
AdminAcknowledgement.php:89
Fossology\UI\Api\Models\AdminAcknowledgement\$isEnabled
$isEnabled
Definition:
AdminAcknowledgement.php:34
Fossology\UI\Api\Models\AdminAcknowledgement\__construct
__construct($id, $name, $acknowledgement, $isEnabled)
Definition:
AdminAcknowledgement.php:42
Fossology\UI\Api\Models\AdminAcknowledgement\getArray
getArray($version=ApiVersion::V1)
Definition:
AdminAcknowledgement.php:99
Fossology\UI\Api\Models\AdminAcknowledgement\$name
$name
Definition:
AdminAcknowledgement.php:24
Fossology\UI\Api\Models\AdminAcknowledgement\setId
setId($id)
Definition:
AdminAcknowledgement.php:120
Fossology\UI\Api\Models\AdminAcknowledgement\setName
setName($name)
Definition:
AdminAcknowledgement.php:128
Fossology\UI\Api\Models\AdminAcknowledgement\$acknowledgement
$acknowledgement
Definition:
AdminAcknowledgement.php:29
Fossology\UI\Api\Models\AdminAcknowledgement\$id
$id
Definition:
AdminAcknowledgement.php:19
Fossology\UI\Api\Models\AdminAcknowledgement\getName
getName()
Definition:
AdminAcknowledgement.php:61
Fossology\UI\Api\Models\AdminAcknowledgement\setIsEnabled
setIsEnabled($isEnabled)
Definition:
AdminAcknowledgement.php:144
Fossology\UI\Api\Models\AdminAcknowledgement\getAcknowledgement
getAcknowledgement()
Definition:
AdminAcknowledgement.php:69
src
www
ui
api
Models
AdminAcknowledgement.php
Generated on Mon Nov 18 2024 07:37:14 for FOSSology by
1.9.1