29 foreach ($events as $event) {
30 $clearingLicense = $event->getClearingLicense();
31 $licenseId = $clearingLicense->getLicenseId();
33 $result[$licenseId] = $clearingLicense->getLicenseRef();
46 $reducedEvents = array();
47 foreach ($events as $event) {
48 $licenseId = $event->getLicenseId();
49 $reducedEvents[$licenseId] = $event;
51 return $reducedEvents;
Functions to process clearing events.
filterEffectiveEvents($events)
Filter events based on license id.
getClearingLicenseRefs($events)
Get license refs from clearing events.
Contains business rules for FOSSology.