FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
ClearingEvent.php
1 <?php
2 /*
3 Copyright (C) 2014-2018, Siemens AG
4 
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 version 2 as published by the Free Software Foundation.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18 
20 
22 
24 {
26  private $eventId;
28  private $uploadTreeId;
30  private $timeStamp;
32  private $userId;
34  private $groupId;
36  private $eventType;
38  private $clearingLicense;
39 
49  public function __construct($eventId, $uploadTreeId, $timestamp, $userId, $groupId, $eventType, ClearingLicense $clearingLicense)
50  {
51  $this->eventId = $eventId;
52  $this->uploadTreeId = $uploadTreeId;
53  $this->timeStamp = $timestamp;
54  $this->userId = $userId;
55  $this->groupId = $groupId;
56  $this->eventType = $eventType;
57  $this->clearingLicense = $clearingLicense;
58  }
59 
63  public function getClearingLicense()
64  {
65  return $this->clearingLicense;
66  }
67 
71  public function getTimeStamp()
72  {
73  return $this->timeStamp;
74  }
75 
79  public function getEventId()
80  {
81  return $this->eventId;
82  }
83 
87  public function getEventType()
88  {
89  return $this->eventType;
90  }
91 
95  public function getGroupId()
96  {
97  return $this->groupId;
98  }
99 
104  public function getLicenseRef()
105  {
106  return $this->clearingLicense->getLicenseRef();
107  }
108 
112  public function isRemoved()
113  {
114  return $this->clearingLicense->isRemoved();
115  }
116 
121  public function getReportinfo()
122  {
123  return $this->clearingLicense->getReportinfo();
124  }
125 
130  public function getAcknowledgement()
131  {
132  return $this->clearingLicense->getAcknowledgement();
133  }
134 
139  public function getComment()
140  {
141  return $this->clearingLicense->getComment();
142  }
143 
147  public function getUploadTreeId()
148  {
149  return $this->uploadTreeId;
150  }
151 
155  public function getUserId()
156  {
157  return $this->userId;
158  }
159 
163  public function getLicenseId()
164  {
165  return $this->clearingLicense->getLicenseId();
166  }
167 
171  public function getLicenseShortName()
172  {
173  return $this->clearingLicense->getShortName();
174  }
175 
179  public function getLicenseFullName()
180  {
181  return $this->clearingLicense->getFullName();
182  }
183 }
__construct($eventId, $uploadTreeId, $timestamp, $userId, $groupId, $eventType, ClearingLicense $clearingLicense)