for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Moip\Helper;
/**
* Class Pagination.
*/
class Pagination
{
* @var int
**/
private $offset = 0;
private $limit = 100;
* Pagination constructor.
*
* @param int $limit
* @param int $offset
public function __construct($limit = null, $offset = null)
if (!empty($limit)) {
$this->limit = $limit;
}
if (!empty($offset)) {
$this->offset = $offset;
* Get offset.
* @return int
public function getOffset()
return $this->offset;
* Set offset.
public function setOffset($offset)
* Get limit.
public function getLimit()
return $this->limit;
* Set limit.
public function setLimit($limit)