for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FlexyProject\GitHub;
/**
* Pagination
* Requests that return multiple items will be paginated to 30 items by default.
*
* @link https://developer.github.com/v3/#pagination
* @package FlexyProject\GitHub
*/
class Pagination
{
* Specify further pages.
* @var int|null
protected $page = null;
* Set a custom page size up to 100.
protected $limit = null;
* Pagination constructor.
* @param int|null $page
* @param int|null $limit
public function __construct(int $page = null, int $limit = null)
$this->page = $page;
$this->limit = $limit;
}
* Get page
* @return int|null
public function getPage()
return $this->page;
* Set page
* @return Pagination
public function setPage($page): Pagination
return $this;
* Get limit
public function getLimit()
return $this->limit;
* Set limit
public function setLimit($limit): Pagination