private function addItemWhereClauses(QueryBuilder $queryBuilderForDeletingItems, array $rootPageIds, string $indexQueueConfigurationList, string $itemTypeList, array $itemUids, array $uids): QueryBuilder
    {

        if (!empty($rootPageIds)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('root', $rootPageIds));
        };

        if (!empty($indexQueueConfigurationList)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('indexing_configuration', $queryBuilderForDeletingItems->createNamedParameter($indexQueueConfigurationList)));
        }

        if (!empty($itemTypeList)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('item_type', $queryBuilderForDeletingItems->createNamedParameter($itemTypeList)));
        }

        if (!empty($itemUids)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('item_uid', $itemUids));
        }

        if (!empty($uids)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('uid', $uids));
        }

        return $queryBuilderForDeletingItems;
    }
private function addItemWhereClauses(QueryBuilder $queryBuilderForDeletingItems, array $rootPageIds, string $indexQueueConfigurationList, string $itemTypeList, array $itemUids, array $uids): QueryBuilder
    {

        if (!empty($rootPageIds)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('root', $rootPageIds));
        };

        if (!empty($indexQueueConfigurationList)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('indexing_configuration', $queryBuilderForDeletingItems->createNamedParameter($indexQueueConfigurationList)));
        }

        if (!empty($itemTypeList)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('item_type', $queryBuilderForDeletingItems->createNamedParameter($itemTypeList)));
        }

        if (!empty($itemUids)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('item_uid', $itemUids));
        }

        if (!empty($uids)) {
            $queryBuilderForDeletingItems->andWhere($queryBuilderForDeletingItems->expr()->in('uid', $uids));
        }

        return $queryBuilderForDeletingItems;
    }
private function addItemWhereClauses ( QueryBuilder $ queryBuilderForDeletingItems , array $ rootPageIds , string $ indexQueueConfigurationList , string $ itemTypeList , array $ itemUids , array $ uids ) : QueryBuilder { if ( ! empty ( $ rootPageIds ) ) { $ queryBuilderForDeletingItems -> andWhere ( $ queryBuilderForDeletingItems -> expr ( ) -> in ( 'root' , $ rootPageIds ) ) ; } ; if ( ! empty ( $ indexQueueConfigurationList ) ) { $ queryBuilderForDeletingItems -> andWhere ( $ queryBuilderForDeletingItems -> expr ( ) -> in ( 'indexing_configuration' , $ queryBuilderForDeletingItems -> createNamedParameter ( $ indexQueueConfigurationList ) ) ) ; } if ( ! empty ( $ itemTypeList ) ) { $ queryBuilderForDeletingItems -> andWhere ( $ queryBuilderForDeletingItems -> expr ( ) -> in ( 'item_type' , $ queryBuilderForDeletingItems -> createNamedParameter ( $ itemTypeList ) ) ) ; } if ( ! empty ( $ itemUids ) ) { $ queryBuilderForDeletingItems -> andWhere ( $ queryBuilderForDeletingItems -> expr ( ) -> in ( 'item_uid' , $ itemUids ) ) ; } if ( ! empty ( $ uids ) ) { $ queryBuilderForDeletingItems -> andWhere ( $ queryBuilderForDeletingItems -> expr ( ) -> in ( 'uid' , $ uids ) ) ; } return $ queryBuilderForDeletingItems ; }
Initializes the query builder to delete items in the index queue filtered by the passed arguments.

@param array $rootPageIds filter on a set of rootPageUids.
@param string $indexQueueConfigurationList
@param string $itemTypeList
@param array $itemUids filter on a set of item uids
@param array $uids filter on a set of queue item uids
@return QueryBuilder
Initializes the query builder to delete items in the index queue filtered by the passed arguments .