src/FixedSizeCollection.php
public function iterateCollections()
    {
        $currentCollection = $this;
        yield $this;
        while ($currentCollection->hasNextCollection()) {
            $currentCollection = $currentCollection->getNextCollection();
            yield $currentCollection;
        }
    }
public function iterateCollections()
    {
        $currentCollection = $this;
        yield $this;
        while ($currentCollection->hasNextCollection()) {
            $currentCollection = $currentCollection->getNextCollection();
            yield $currentCollection;
        }
    }
public function iterateCollections ( ) { $ currentCollection = $ this ; yield $ this ; while ( $ currentCollection -> hasNextCollection ( ) ) { $ currentCollection = $ currentCollection -> getNextCollection ( ) ; yield $ currentCollection ; } }
Returns an iterator over FixedSizeCollections, starting with this
and making API calls as required until all of the elements have
been retrieved.

@return Generator|FixedSizeCollection[]
Returns an iterator over FixedSizeCollections starting with this and making API calls as required until all of the elements have been retrieved .