for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (C) 2013-2016 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Resource\Api;
/**
* @author Tobias Nyholm <[email protected]>
trait PaginationResponse
{
* @var array
protected $paging;
* @return string
public function getNextUrl()
if (!isset($this->paging['next'])) {
return;
}
return $this->paging['next'];
public function getPreviousUrl()
if (!isset($this->paging['previous'])) {
return $this->paging['previous'];
public function getFirstUrl()
if (!isset($this->paging['first'])) {
return $this->paging['first'];
public function getLastUrl()
if (!isset($this->paging['last'])) {
return $this->paging['last'];