2017-02-20 13:21:55 -06:00
|
|
|
<?php
|
|
|
|
|
2019-01-09 20:32:09 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2017-02-20 13:21:55 -06:00
|
|
|
/*
|
2017-11-22 00:37:04 -08:00
|
|
|
* Copyright (C) 2013 Mailgun
|
2017-02-20 13:21:55 -06:00
|
|
|
*
|
|
|
|
* This software may be modified and distributed under the terms
|
|
|
|
* of the MIT license. See the LICENSE file for details.
|
|
|
|
*/
|
|
|
|
|
2017-02-23 19:56:30 +00:00
|
|
|
namespace Mailgun\Model;
|
2017-02-20 13:21:55 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Sean Johnson <sean@mailgun.com>
|
|
|
|
*/
|
|
|
|
interface PagingProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns the `$paging->next` URL.
|
|
|
|
*/
|
2019-01-18 06:19:39 +01:00
|
|
|
public function getNextUrl(): ?string;
|
2017-02-20 13:21:55 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the `$paging->prev` URL.
|
|
|
|
*/
|
2019-01-18 06:19:39 +01:00
|
|
|
public function getPreviousUrl(): ?string;
|
2017-02-20 13:21:55 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the `$paging->first` URL.
|
|
|
|
*/
|
2019-01-18 06:19:39 +01:00
|
|
|
public function getFirstUrl(): ?string;
|
2017-02-20 13:21:55 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the `$paging->last` URL.
|
|
|
|
*/
|
2019-01-18 06:19:39 +01:00
|
|
|
public function getLastUrl(): ?string;
|
2017-02-20 13:21:55 -06:00
|
|
|
}
|