src/OrderVisitor.php
private function getNextOrderCollection(int $renderedArticleCount)
    {
        $count = $this->count();
        $logger = $this->getLogger();
        $orderCollection = null;
        $withPagination = $this->withPagination();

        $logger->debug(
            'Tries to load the next order collection',
            ['count' => $count, 'withPagination' => $withPagination]
        );

        if ((!$withPagination) || ($renderedArticleCount < $count)) {
            if ($withPagination) {
                $this->getOrderQuery()->offset($renderedArticleCount);
            }

            $this->loadOrderCollection();

            $orderCollection = $this->getOrderCollection();
        }

        return $orderCollection;
    }
private function getNextOrderCollection(int $renderedArticleCount)
    {
        $count = $this->count();
        $logger = $this->getLogger();
        $orderCollection = null;
        $withPagination = $this->withPagination();

        $logger->debug(
            'Tries to load the next order collection',
            ['count' => $count, 'withPagination' => $withPagination]
        );

        if ((!$withPagination) || ($renderedArticleCount < $count)) {
            if ($withPagination) {
                $this->getOrderQuery()->offset($renderedArticleCount);
            }

            $this->loadOrderCollection();

            $orderCollection = $this->getOrderCollection();
        }

        return $orderCollection;
    }
private function getNextOrderCollection ( int $ renderedArticleCount ) { $ count = $ this -> count ( ) ; $ logger = $ this -> getLogger ( ) ; $ orderCollection = null ; $ withPagination = $ this -> withPagination ( ) ; $ logger -> debug ( 'Tries to load the next order collection' , [ 'count' => $ count , 'withPagination' => $ withPagination ] ) ; if ( ( ! $ withPagination ) || ( $ renderedArticleCount < $ count ) ) { if ( $ withPagination ) { $ this -> getOrderQuery ( ) -> offset ( $ renderedArticleCount ) ; } $ this -> loadOrderCollection ( ) ; $ orderCollection = $ this -> getOrderCollection ( ) ; } return $ orderCollection ; }
Returns the next order collection or void.
@param int $renderedArticleCount How many articles are rendered allready.
@return OrderCollection|void
Returns the next order collection or void .