for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ElevenLabs\Api\Service\Pagination;
class Pagination
{
/** @var int */
private $page;
private $perPage;
private $totalItems;
private $totalPages;
/** @var null */
private $links;
/**
* @param int $page
* @param int $perPage
* @param int $totalItems
* @param int $totalPages
* @param $links
*/
public function __construct($page, $perPage, $totalItems, $totalPages, $links = null)
$this->page = $page;
$this->perPage = $perPage;
$this->totalItems = $totalItems;
$this->totalPages = $totalPages;
$this->links = $links;
}
* @return int
public function getPage()
return $this->page;
public function getPerPage()
return $this->perPage;
public function getTotalItems()
return $this->totalItems;
public function getTotalPages()
return $this->totalPages;
public function hasLinks()
return ($this->links !== null);
* @return PaginationLinks
public function getLinks()
return $this->links;