9 namespace Fossology\Lib\Data;
19 private $clearingEvents;
23 private $uploadTreeId;
37 private $acknowledgement;
43 function __construct()
45 $this->sameFolder =
false;
46 $this->clearingEvents = array();
47 $this->clearingId = -1;
48 $this->uploadTreeId = -1;
50 $this->userName =
"fossy";
53 $this->scope = DecisionScopes::ITEM;
54 $this->timeStamp = time();
63 $this->clearingId = intval($clearingId);
73 $this->timeStamp = $timestamp;
83 $this->clearingEvents = $events;
93 $this->pfileId = intval($pfileId);
103 $this->sameFolder = $sameFolder;
123 $this->scope = $scope;
133 $this->uploadTreeId = $uploadTreeId;
143 $this->userId = $userId;
153 $this->userName = $userName;
174 $this->pfileId = $clearingDecision->
getPfileId();
175 $this->userName = $clearingDecision->
getUserName();
176 $this->userId = $clearingDecision->
getUserId();
177 $this->type = $clearingDecision->
getType();
178 $this->comment = $clearingDecision->
getComment();
181 $this->scope = $clearingDecision->
getScope();
191 if ($this->type ===
null) {
192 throw new Exception(
"decision type should be set");
196 $this->uploadTreeId, $this->pfileId, $this->userName, $this->userId, $this->type, $this->scope,
197 $this->timeStamp, $this->clearingEvents, $this->reportinfo, $this->comment, $this->acknowledgement);
setClearingEvents($events)
setClearingId($clearingId)
copy(ClearingDecision $clearingDecision)
setSameFolder($sameFolder)
setUploadTreeId($uploadTreeId)