27 const AGENT_DECISION_TYPE =
'agent';
30 private $clearingEvent;
32 private $agentClearingEvents;
40 $agentDecisionEvents = array())
42 if (($licenseDecisionEvent === null) && (count($agentDecisionEvents) == 0)) {
44 "cannot create ClearingEvent without any event contained");
47 $this->clearingEvent = $licenseDecisionEvent;
48 $this->agentClearingEvents = $agentDecisionEvents;
89 return isset($this->clearingEvent) ? $this->clearingEvent->getComment() :
'';
105 return isset($this->clearingEvent) ? $this->clearingEvent->getReportinfo() :
'';
113 return isset($this->clearingEvent) ? $this->clearingEvent->getAcknowledgement() :
'';
130 if (isset($this->clearingEvent)) {
131 return $this->clearingEvent;
134 return $this->agentClearingEvents[0];
142 return !empty($this->agentClearingEvents);
150 return isset($this->clearingEvent);
158 return $this->agentClearingEvents;
166 return $this->clearingEvent;
__construct($licenseDecisionEvent, $agentDecisionEvents=array())