FOSSology
4.4.0
Open Source License Compliance by Open Source Software
ClearingHistory.php
Go to the documentation of this file.
1
<?php
2
/*
3
SPDX-FileCopyrightText: © 2023 Samuel Dushimimana <dushsam100@gmail.com>
4
SPDX-License-Identifier: GPL-2.0-only
5
*/
10
namespace
Fossology\UI\Api\Models;
11
16
class
ClearingHistory
17
{
22
private
$date
;
27
private
$username
;
32
private
$scope
;
37
private
$type
;
38
43
private
$addedLicenses
;
48
private
$removedLicenses
;
49
58
public
function
__construct
(
$date
,
$username
,
$scope
,
$type
,
$addedLicenses
,
$removedLicenses
)
59
{
60
$this->date =
$date
;
61
$this->username =
$username
;
62
$this->scope =
$scope
;
63
$this->type =
$type
;
64
$this->addedLicenses =
$addedLicenses
;
65
$this->removedLicenses =
$removedLicenses
;
66
}
67
69
73
public
function
getArray
()
74
{
75
return
[
76
'date'
=>
$this->date
,
77
'username'
=>
$this->username
,
78
'scope'
=>
$this->scope
,
79
'type'
=>
$this->type
,
80
'addedLicenses'
=>
$this->addedLicenses
,
81
'removedLicenses'
=>
$this->removedLicenses
82
];
83
}
84
88
public
function
getDate
()
89
{
90
return
$this->date
;
91
}
92
96
public
function
setDate
(
string
$date
)
97
{
98
$this->date =
$date
;
99
}
100
104
public
function
getUsername
()
105
{
106
return
$this->username
;
107
}
108
112
public
function
setUsername
(
string
$username
)
113
{
114
$this->username =
$username
;
115
}
116
120
public
function
getScope
()
121
{
122
return
$this->scope
;
123
}
124
128
public
function
setScope
(
$scope
)
129
{
130
$this->scope =
$scope
;
131
}
132
136
public
function
getType
()
137
{
138
return
$this->type
;
139
}
140
144
public
function
setType
(
$type
)
145
{
146
$this->type =
$type
;
147
}
148
152
public
function
getAddedLicenses
()
153
{
154
return
$this->addedLicenses
;
155
}
156
160
public
function
setAddedLicenses
(
$addedLicenses
)
161
{
162
$this->addedLicenses =
$addedLicenses
;
163
}
164
168
public
function
getRemovedLicenses
()
169
{
170
return
$this->removedLicenses
;
171
}
172
176
public
function
setRemovedLicenses
(array
$removedLicenses
)
177
{
178
$this->removedLicenses =
$removedLicenses
;
179
}
180
}
Fossology\UI\Api\Models\ClearingHistory
Definition:
ClearingHistory.php:17
Fossology\UI\Api\Models\ClearingHistory\$date
$date
Definition:
ClearingHistory.php:22
Fossology\UI\Api\Models\ClearingHistory\getDate
getDate()
Definition:
ClearingHistory.php:88
Fossology\UI\Api\Models\ClearingHistory\$scope
$scope
Definition:
ClearingHistory.php:32
Fossology\UI\Api\Models\ClearingHistory\setRemovedLicenses
setRemovedLicenses(array $removedLicenses)
Definition:
ClearingHistory.php:176
Fossology\UI\Api\Models\ClearingHistory\getRemovedLicenses
getRemovedLicenses()
Definition:
ClearingHistory.php:168
Fossology\UI\Api\Models\ClearingHistory\getUsername
getUsername()
Definition:
ClearingHistory.php:104
Fossology\UI\Api\Models\ClearingHistory\$addedLicenses
$addedLicenses
Definition:
ClearingHistory.php:43
Fossology\UI\Api\Models\ClearingHistory\__construct
__construct($date, $username, $scope, $type, $addedLicenses, $removedLicenses)
Definition:
ClearingHistory.php:58
Fossology\UI\Api\Models\ClearingHistory\$type
$type
Definition:
ClearingHistory.php:37
Fossology\UI\Api\Models\ClearingHistory\setAddedLicenses
setAddedLicenses($addedLicenses)
Definition:
ClearingHistory.php:160
Fossology\UI\Api\Models\ClearingHistory\setScope
setScope($scope)
Definition:
ClearingHistory.php:128
Fossology\UI\Api\Models\ClearingHistory\setType
setType($type)
Definition:
ClearingHistory.php:144
Fossology\UI\Api\Models\ClearingHistory\getScope
getScope()
Definition:
ClearingHistory.php:120
Fossology\UI\Api\Models\ClearingHistory\$username
$username
Definition:
ClearingHistory.php:27
Fossology\UI\Api\Models\ClearingHistory\getAddedLicenses
getAddedLicenses()
Definition:
ClearingHistory.php:152
Fossology\UI\Api\Models\ClearingHistory\$removedLicenses
$removedLicenses
Definition:
ClearingHistory.php:48
Fossology\UI\Api\Models\ClearingHistory\getArray
getArray()
Definition:
ClearingHistory.php:73
Fossology\UI\Api\Models\ClearingHistory\setUsername
setUsername(string $username)
Definition:
ClearingHistory.php:112
Fossology\UI\Api\Models\ClearingHistory\getType
getType()
Definition:
ClearingHistory.php:136
Fossology\UI\Api\Models\ClearingHistory\setDate
setDate(string $date)
Definition:
ClearingHistory.php:96
src
www
ui
api
Models
ClearingHistory.php
Generated on Mon Nov 18 2024 07:37:14 for FOSSology by
1.9.1