8 namespace Fossology\Lib\Data\Clearing;
16 const AGENT_DECISION_TYPE =
'agent';
19 private $clearingEvent;
21 private $agentClearingEvents;
29 $agentDecisionEvents = array())
31 if (($licenseDecisionEvent ===
null) && (count($agentDecisionEvents) == 0)) {
33 "cannot create ClearingEvent without any event contained");
36 $this->clearingEvent = $licenseDecisionEvent;
37 $this->agentClearingEvents = $agentDecisionEvents;
78 return isset($this->clearingEvent) ? $this->clearingEvent->getComment() :
'';
94 return isset($this->clearingEvent) ? $this->clearingEvent->getReportinfo() :
'';
102 return isset($this->clearingEvent) ? $this->clearingEvent->getAcknowledgement() :
'';
119 if (isset($this->clearingEvent)) {
120 return $this->clearingEvent;
123 return $this->agentClearingEvents[0];
131 return !empty($this->agentClearingEvents);
139 return isset($this->clearingEvent);
147 return $this->agentClearingEvents;
155 return $this->clearingEvent;
__construct($licenseDecisionEvent, $agentDecisionEvents=array())