for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ReenExeCubeTime\LightPaginator;
class Pager implements PagerInterface
{
/**
* @var int
*/
private $currentPage;
private $limit;
private $count;
private $pageCount;
* @var array|\Traversable
private $results;
* Pager constructor.
* @param $currentPage
* @param $limit
* @param $count
* @param $pageCount
* @param $results
public function __construct($currentPage, $limit, $count, $pageCount, $results)
$this->currentPage = $currentPage;
$this->limit = $limit;
$this->count = $count;
$this->pageCount = $pageCount;
$this->results = $results;
}
* @return int
public function getCurrentPage()
return $this->currentPage;
public function getPerPage()
return $this->limit;
public function getCount()
return $this->count;
public function getPageCount()
return $this->pageCount;
* @return array|\Traversable
public function getResults()
return $this->results;