40 foreach ($events as $event) {
41 $clearingLicense = $event->getClearingLicense();
42 $licenseId = $clearingLicense->getLicenseId();
44 $result[$licenseId] = $clearingLicense->getLicenseRef();
57 $reducedEvents = array();
58 foreach ($events as $event) {
59 $licenseId = $event->getLicenseId();
60 $reducedEvents[$licenseId] = $event;
62 return $reducedEvents;
getClearingLicenseRefs($events)
Get license refs from clearing events.
Functions to process clearing events.
Contains business rules for FOSSology.
filterEffectiveEvents($events)
Filter events based on license id.