Crummy\Phlack\Bridge\Guzzle\Model\ListFilesIterator::sendRequest PHP Method

sendRequest() protected method

Send a request to retrieve the next page of results. Hook for subclasses to implement.
protected sendRequest ( ) : array
return array Returns the newly loaded resources
    protected function sendRequest()
    {
        if ($this->nextToken) {
            $this->command->set('page', $this->nextToken);
        }
        $result = $this->command->execute();
        $currentToken = $result['paging']['page'];
        $this->nextToken = $result['paging']['pages'] > $currentToken ? ++$currentToken : false;
        return $result['files'];
    }
ListFilesIterator