9 namespace Fossology\Lib\Data\Clearing;
19 private $uploadTreeId;
37 private $acknowledgement;
39 public function __construct()
42 $this->uploadTreeId = 0;
43 $this->timeStamp =
null;
46 $this->eventType = ClearingEventTypes::USER;
47 $this->licenseRef =
null;
48 $this->removed =
false;
49 $this->reportinfo =
"";
51 $this->acknowledgement =
"";
54 public static function create()
64 $clearingLicense =
new ClearingLicense($this->licenseRef, $this->removed, $this->eventType, $this->reportinfo, $this->comment, $this->acknowledgement);
65 return new ClearingEvent($this->eventId, $this->uploadTreeId, $this->timeStamp?: time(), $this->userId, $this->groupId, $this->eventType, $clearingLicense);
74 $this->comment = $comment;
84 $this->timeStamp = $timestamp;
94 $this->eventId = intval($eventId);
104 $this->eventType = $eventType;
114 $this->groupId = intval($groupId);
124 $this->licenseRef = $licenseRef;
134 $this->removed = $removed;
144 $this->reportinfo = $reportinfo;
154 $this->acknowledgement = $acknowledgement;
163 $this->uploadTreeId = intval($uploadTreeId);
173 $this->userId = intval($userId);
setAcknowledgement($acknowledgement)
setReportinfo($reportinfo)
setLicenseRef(LicenseRef $licenseRef)
setUploadTreeId($uploadTreeId)