protected processResponse ( seregazhuk\PinterestBot\Api\Contracts\PaginatedResponse $response ) : array | ||
$response | seregazhuk\PinterestBot\Api\Contracts\PaginatedResponse | |
return | array |
protected function processResponse(PaginatedResponse $response)
{
if ($response->isEmpty()) {
return [];
}
$this->bookmarks = $response->getBookmarks();
return $response->getResponseData();
}