public function iteratePages()
    {
        $currentPage = $this;
        yield $this;
        while ($currentPage->hasNextPage()) {
            $currentPage = $currentPage->getNextPage();
            yield $currentPage;
        }
    }
public function iteratePages()
    {
        $currentPage = $this;
        yield $this;
        while ($currentPage->hasNextPage()) {
            $currentPage = $currentPage->getNextPage();
            yield $currentPage;
        }
    }
public function iteratePages ( ) { $ currentPage = $ this ; yield $ this ; while ( $ currentPage -> hasNextPage ( ) ) { $ currentPage = $ currentPage -> getNextPage ( ) ; yield $ currentPage ; } }
Return an iterator over Page objects, beginning with this object.
Additional Page objects are retrieved lazily via API calls until
all elements have been retrieved.

@return Generator|Page[]
@throws ValidationException
@throws ApiException
Return an iterator over Page objects beginning with this object . Additional Page objects are retrieved lazily via API calls until all elements have been retrieved .