protected function getQueueItemObjectsByRecords(array $indexQueueItemRecords, array $tableRecords) : array
    {
        $indexQueueItems = [];
        foreach ($indexQueueItemRecords as $indexQueueItemRecord) {
            if (isset($tableRecords[$indexQueueItemRecord['item_type']][$indexQueueItemRecord['item_uid']])) {
                $indexQueueItems[] = GeneralUtility::makeInstance(
                    Item::class,
                    /** @scrutinizer ignore-type */ $indexQueueItemRecord,
                    /** @scrutinizer ignore-type */ $tableRecords[$indexQueueItemRecord['item_type']][$indexQueueItemRecord['item_uid']]
                );
            } else {
                $this->logger->log(
                    SolrLogManager::ERROR,
                    'Record missing for Index Queue item. Item removed.',
                    [
                        $indexQueueItemRecord
                    ]
                );
                $this->deleteItem($indexQueueItemRecord['item_type'],
                    $indexQueueItemRecord['item_uid']);
            }
        }

        return $indexQueueItems;
    }
protected function getQueueItemObjectsByRecords(array $indexQueueItemRecords, array $tableRecords) : array
    {
        $indexQueueItems = [];
        foreach ($indexQueueItemRecords as $indexQueueItemRecord) {
            if (isset($tableRecords[$indexQueueItemRecord['item_type']][$indexQueueItemRecord['item_uid']])) {
                $indexQueueItems[] = GeneralUtility::makeInstance(
                    Item::class,
                    /** @scrutinizer ignore-type */ $indexQueueItemRecord,
                    /** @scrutinizer ignore-type */ $tableRecords[$indexQueueItemRecord['item_type']][$indexQueueItemRecord['item_uid']]
                );
            } else {
                $this->logger->log(
                    SolrLogManager::ERROR,
                    'Record missing for Index Queue item. Item removed.',
                    [
                        $indexQueueItemRecord
                    ]
                );
                $this->deleteItem($indexQueueItemRecord['item_type'],
                    $indexQueueItemRecord['item_uid']);
            }
        }

        return $indexQueueItems;
    }
protected function getQueueItemObjectsByRecords ( array $ indexQueueItemRecords , array $ tableRecords ) : array { $ indexQueueItems = [ ] ; foreach ( $ indexQueueItemRecords as $ indexQueueItemRecord ) { if ( isset ( $ tableRecords [ $ indexQueueItemRecord [ 'item_type' ] ] [ $ indexQueueItemRecord [ 'item_uid' ] ] ) ) { $ indexQueueItems [ ] = GeneralUtility :: makeInstance ( Item :: class , /** @scrutinizer ignore-type */ $ indexQueueItemRecord , /** @scrutinizer ignore-type */ $ tableRecords [ $ indexQueueItemRecord [ 'item_type' ] ] [ $ indexQueueItemRecord [ 'item_uid' ] ] ) ; } else { $ this -> logger -> log ( SolrLogManager :: ERROR , 'Record missing for Index Queue item. Item removed.' , [ $ indexQueueItemRecord ] ) ; $ this -> deleteItem ( $ indexQueueItemRecord [ 'item_type' ] , $ indexQueueItemRecord [ 'item_uid' ] ) ; } } return $ indexQueueItems ; }
Instantiates a list of Item objects from database records.

@param array $indexQueueItemRecords records from database
@param array $tableRecords
@return array
Instantiates a list of Item objects from database records .