for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ReenExeCubeTime\LightPaginator;
use ReenExeCubeTime\LightPaginator\Adapter\AdapterInterface;
class Pager implements PagerInterface
{
/**
* @var int
*/
private $currentPage;
private $limit;
private $count;
* @var array|\Traversable
private $list;
public function __construct($currentPage, $limit, $count, $list)
$this->currentPage = $currentPage;
$this->limit = $limit;
$this->count = $count;
$this->list = $list;
}
* @return int
public function getCurrentPage()
return $this->currentPage;
public function getLimit()
return $this->limit;
public function getCount()
return $this->count;
* @return array|\Traversable
public function getList()
return $this->list;