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 
17 {
22  private $date;
27  private $username;
32  private $scope;
37  private $type;
38 
43  private $addedLicenses;
49 
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 
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 }
setRemovedLicenses(array $removedLicenses)
__construct($date, $username, $scope, $type, $addedLicenses, $removedLicenses)