FOSSology  4.4.0
Open Source License Compliance by Open Source Software
BulkHistory.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 
13 {
14 
18  private $bulkId;
19 
23  private $clearingEventId;
24 
28  private $text;
29 
33  private $matched;
34 
38  private $tried;
39 
43  private $addedLicenses;
44 
48  private $removedLicenses;
49 
61  public function __construct($bulkId, $clearingEventId, $text, $matched, $tried, $addedLicenses, $removedLicenses)
62  {
63  $this->bulkId = intval($bulkId);
64  $this->clearingEventId = intval($clearingEventId);
65  $this->text = $text;
66  $this->matched = $matched;
67  $this->tried = $tried;
68  $this->addedLicenses = $addedLicenses;
69  $this->removedLicenses = $removedLicenses;
70  }
71 
72  public function getBulkId()
73  {
74  return $this->bulkId;
75  }
76 
77  public function getClearingEventId()
78  {
79  return $this->clearingEventId;
80  }
81 
82  public function getText()
83  {
84  return $this->text;
85  }
86 
87  public function getMatched()
88  {
89  return $this->matched;
90  }
91 
92  public function getTried()
93  {
94  return $this->tried;
95  }
96 
97  public function getAddedLicenses()
98  {
99  return $this->addedLicenses;
100  }
101 
102  public function getRemovedLicenses()
103  {
104  return $this->removedLicenses;
105  }
106 
107  public function setBulkId($bulkId)
108  {
109  $this->bulkId = $bulkId;
110  }
111 
112  public function setClearingEventId($clearingEventId)
113  {
114  $this->clearingEventId = $clearingEventId;
115  }
116 
117  public function setText($text)
118  {
119  $this->text = $text;
120  }
121 
122  public function setMatched($matched)
123  {
124  $this->matched = $matched;
125  }
126 
127  public function setTried($tried)
128  {
129  $this->tried = $tried;
130  }
131 
132  public function setAddedLicenses($addedLicenses)
133  {
134  $this->addedLicenses = $addedLicenses;
135  }
136 
137  public function setRemovedLicenses($removedLicenses)
138  {
139  $this->removedLicenses = $removedLicenses;
140  }
141 
142  public function getArray()
143  {
144  return [
145  "bulkId" => $this->bulkId,
146  "clearingEventId" => $this->clearingEventId,
147  "text" => $this->text,
148  "matched" => $this->matched,
149  "tried" => $this->tried,
150  "addedLicenses" => $this->addedLicenses,
151  "removedLicenses" => $this->removedLicenses
152  ];
153  }
154 }
__construct($bulkId, $clearingEventId, $text, $matched, $tried, $addedLicenses, $removedLicenses)
Definition: BulkHistory.php:61