final public function next()
    {
        if (!$this->hasNext()) {
            return null;
        }

        $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->next->href);

        $collection = new static($this->client, $result->count, $result->_links);

        foreach ($result->_embedded->{$collection->getCollectionResourceName()} as $dataResult) {
            $collection[] = ResourceFactory::createFromApiResult($dataResult, $this->createResourceObject());
        }

        return $collection;
    }
final public function next()
    {
        if (!$this->hasNext()) {
            return null;
        }

        $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->next->href);

        $collection = new static($this->client, $result->count, $result->_links);

        foreach ($result->_embedded->{$collection->getCollectionResourceName()} as $dataResult) {
            $collection[] = ResourceFactory::createFromApiResult($dataResult, $this->createResourceObject());
        }

        return $collection;
    }
final public function next ( ) { if ( ! $ this -> hasNext ( ) ) { return null ; } $ result = $ this -> client -> performHttpCallToFullUrl ( MollieApiClient :: HTTP_GET , $ this -> _links -> next -> href ) ; $ collection = new static ( $ this -> client , $ result -> count , $ result -> _links ) ; foreach ( $ result -> _embedded -> { $ collection -> getCollectionResourceName ( ) } as $ dataResult ) { $ collection [ ] = ResourceFactory :: createFromApiResult ( $ dataResult , $ this -> createResourceObject ( ) ) ; } return $ collection ; }
Return the next set of resources when available

@return CursorCollection|null
@throws \Mollie\Api\Exceptions\ApiException
Return the next set of resources when available