protected function buildQueueStatisticFromResultSet(array $indexQueueStatisticResultSet): QueueStatistic
    {
        /* @var $statistic QueueStatistic */
        $statistic = GeneralUtility::makeInstance(QueueStatistic::class);
        foreach ($indexQueueStatisticResultSet as $row) {
            if ($row['failed'] == 1) {
                $statistic->setFailedCount((int)$row['count']);
            } elseif ($row['pending'] == 1) {
                $statistic->setPendingCount((int)$row['count']);
            } else {
                $statistic->setSuccessCount((int)$row['count']);
            }
        }

        return $statistic;
    }
protected function buildQueueStatisticFromResultSet(array $indexQueueStatisticResultSet): QueueStatistic
    {
        /* @var $statistic QueueStatistic */
        $statistic = GeneralUtility::makeInstance(QueueStatistic::class);
        foreach ($indexQueueStatisticResultSet as $row) {
            if ($row['failed'] == 1) {
                $statistic->setFailedCount((int)$row['count']);
            } elseif ($row['pending'] == 1) {
                $statistic->setPendingCount((int)$row['count']);
            } else {
                $statistic->setSuccessCount((int)$row['count']);
            }
        }

        return $statistic;
    }
protected function buildQueueStatisticFromResultSet ( array $ indexQueueStatisticResultSet ) : QueueStatistic { /* @var $statistic QueueStatistic */ $ statistic = GeneralUtility :: makeInstance ( QueueStatistic :: class ) ; foreach ( $ indexQueueStatisticResultSet as $ row ) { if ( $ row [ 'failed' ] == 1 ) { $ statistic -> setFailedCount ( ( int ) $ row [ 'count' ] ) ; } elseif ( $ row [ 'pending' ] == 1 ) { $ statistic -> setPendingCount ( ( int ) $ row [ 'count' ] ) ; } else { $ statistic -> setSuccessCount ( ( int ) $ row [ 'count' ] ) ; } } return $ statistic ; }
Instantiates and fills QueueStatistic with values

@param array $indexQueueStatisticResultSet
@return QueueStatistic
Instantiates and fills QueueStatistic with values