lib/Serializer/Normalizer/V1/CollectionResultSetNormalizer.php
private function getOverflowItems(ResultSet $resultSet): Generator
    {
        $includedPositions = [];
        foreach ($resultSet->getResults() as $result) {
            if ($result->getItem() instanceof ManualItem) {
                $includedPositions[] = $result->getItem()->getCollectionItem()->getPosition();
            }

            if ($result->getSubItem() instanceof ManualItem) {
                $includedPositions[] = $result->getSubItem()->getCollectionItem()->getPosition();
            }
        }

        foreach ($resultSet->getCollection()->getItems() as $item) {
            if (!in_array($item->getPosition(), $includedPositions, true)) {
                yield $item;
            }
        }
    }
private function getOverflowItems(ResultSet $resultSet): Generator
    {
        $includedPositions = [];
        foreach ($resultSet->getResults() as $result) {
            if ($result->getItem() instanceof ManualItem) {
                $includedPositions[] = $result->getItem()->getCollectionItem()->getPosition();
            }

            if ($result->getSubItem() instanceof ManualItem) {
                $includedPositions[] = $result->getSubItem()->getCollectionItem()->getPosition();
            }
        }

        foreach ($resultSet->getCollection()->getItems() as $item) {
            if (!in_array($item->getPosition(), $includedPositions, true)) {
                yield $item;
            }
        }
    }
private function getOverflowItems ( ResultSet $ resultSet ) : Generator { $ includedPositions = [ ] ; foreach ( $ resultSet -> getResults ( ) as $ result ) { if ( $ result -> getItem ( ) instanceof ManualItem ) { $ includedPositions [ ] = $ result -> getItem ( ) -> getCollectionItem ( ) -> getPosition ( ) ; } if ( $ result -> getSubItem ( ) instanceof ManualItem ) { $ includedPositions [ ] = $ result -> getSubItem ( ) -> getCollectionItem ( ) -> getPosition ( ) ; } } foreach ( $ resultSet -> getCollection ( ) -> getItems ( ) as $ item ) { if ( ! in_array ( $ item -> getPosition ( ) , $ includedPositions , true ) ) { yield $ item ; } } }
Returns all items from the collection which are overflown. Overflown items
are those NOT included in the provided result set, as defined by collection
offset and limit.
Returns all items from the collection which are overflown . Overflown items are those NOT included in the provided result set as defined by collection offset and limit .