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