FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ClearingEvent.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014-2018 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 namespace Fossology\Lib\Data\Clearing;
9 
11 
13 {
15  private $eventId;
17  private $uploadTreeId;
19  private $timeStamp;
21  private $userId;
23  private $groupId;
25  private $eventType;
27  private $clearingLicense;
28 
38  public function __construct($eventId, $uploadTreeId, $timestamp, $userId, $groupId, $eventType, ClearingLicense $clearingLicense)
39  {
40  $this->eventId = $eventId;
41  $this->uploadTreeId = $uploadTreeId;
42  $this->timeStamp = $timestamp;
43  $this->userId = $userId;
44  $this->groupId = $groupId;
45  $this->eventType = $eventType;
46  $this->clearingLicense = $clearingLicense;
47  }
48 
52  public function getClearingLicense()
53  {
54  return $this->clearingLicense;
55  }
56 
60  public function getTimeStamp()
61  {
62  return $this->timeStamp;
63  }
64 
68  public function getEventId()
69  {
70  return $this->eventId;
71  }
72 
76  public function getEventType()
77  {
78  return $this->eventType;
79  }
80 
84  public function getGroupId()
85  {
86  return $this->groupId;
87  }
88 
93  public function getLicenseRef()
94  {
95  return $this->clearingLicense->getLicenseRef();
96  }
97 
101  public function isRemoved()
102  {
103  return $this->clearingLicense->isRemoved();
104  }
105 
111  public function getReportinfo()
112  {
113  return $this->clearingLicense->getReportinfo();
114  }
115 
121  public function getAcknowledgement()
122  {
123  return $this->clearingLicense->getAcknowledgement();
124  }
125 
130  public function getComment()
131  {
132  return $this->clearingLicense->getComment();
133  }
134 
138  public function getUploadTreeId()
139  {
140  return $this->uploadTreeId;
141  }
142 
146  public function getUserId()
147  {
148  return $this->userId;
149  }
150 
154  public function getLicenseId()
155  {
156  return $this->clearingLicense->getLicenseId();
157  }
158 
162  public function getLicenseShortName()
163  {
164  return $this->clearingLicense->getShortName();
165  }
166 
170  public function getLicenseFullName()
171  {
172  return $this->clearingLicense->getFullName();
173  }
174 }
__construct($eventId, $uploadTreeId, $timestamp, $userId, $groupId, $eventType, ClearingLicense $clearingLicense)