for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Nil Portugués Calderó <[email protected]>
* Date: 12/14/15
* Time: 7:52 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Api\JsonApi\Http\Request\Parameters;
* Class Page.
class Page
{
* @var string|int|null
protected $number;
protected $cursor;
protected $limit;
protected $offset;
protected $size;
* @param $number
* @param $cursor
* @param $limit
* @param $offset
* @param $size
public function __construct($number, $cursor, $limit, $offset, $size)
$this->number = $number;
$this->cursor = $cursor;
$this->limit = $limit;
$this->offset = $offset;
$this->size = $size;
}
public function setSize($size)
$this->size = (int) $size;
* @return int|string
public function cursor()
return $this->cursor;
public function limit()
return $this->limit;
public function number()
return $this->number;
public function offset()
return $this->offset;
public function size()
return $this->size;