30 private $uploadTreeId;
48 private $acknowledgement;
50 public function __construct()
53 $this->uploadTreeId = 0;
54 $this->timeStamp = null;
57 $this->eventType = ClearingEventTypes::USER;
58 $this->licenseRef = null;
59 $this->removed =
false;
60 $this->reportinfo =
"";
62 $this->acknowledgement =
"";
65 public static function create()
75 $clearingLicense =
new ClearingLicense($this->licenseRef, $this->removed, $this->eventType, $this->reportinfo, $this->comment, $this->acknowledgement);
76 return new ClearingEvent($this->eventId, $this->uploadTreeId, $this->timeStamp?: time(), $this->userId, $this->groupId, $this->eventType, $clearingLicense);
85 $this->comment = $comment;
95 $this->timeStamp = $timestamp;
105 $this->eventId = intval($eventId);
115 $this->eventType = $eventType;
125 $this->groupId = intval($groupId);
135 $this->licenseRef = $licenseRef;
145 $this->removed = $removed;
155 $this->reportinfo = $reportinfo;
165 $this->acknowledgement = $acknowledgement;
174 $this->uploadTreeId = intval($uploadTreeId);
184 $this->userId = intval($userId);
setReportinfo($reportinfo)
setUploadTreeId($uploadTreeId)
setLicenseRef(LicenseRef $licenseRef)
setAcknowledgement($acknowledgement)