*/ class DeliveryExecutionCounterService extends ConfigurableService implements DeliveryExecutionCounterInterface { /** * @param $statusUri * @return int * @throws \oat\oatbox\service\exception\InvalidServiceManagerException */ public function count($statusUri) { /** @var DeliveryMonitoringService $deliveryMonitoring */ $deliveryMonitoring = $this->getServiceManager()->get(DeliveryMonitoringService::SERVICE_ID); return $deliveryMonitoring->count([ [DeliveryMonitoringService::STATUS => $statusUri], ]); } /** * @param DeliveryExecutionState $event * @return mixed */ public function executionStateChanged(DeliveryExecutionState $event) { } /** * @param DeliveryExecutionCreated $event * @return mixed */ public function executionCreated(DeliveryExecutionCreated $event) { } /** * @param $statusUri */ public function refresh($statusUri) { } }