PHP Class WoohooLabs\Yin\JsonApi\Request\Pagination\FixedPageBasedPagination

Show file Open project: woohoolabs/yin Class Usage Examples

Protected Properties

Property Type Description
$page integer | null

Public Methods

Method Description
__construct ( integer | null $page )
fromPaginationQueryParams ( array $paginationQueryParams, mixed $defaultPage = null )
getPage ( ) : integer | null
getPaginationQueryString ( integer $page ) : string

Method Details

__construct() public method

public __construct ( integer | null $page )
$page integer | null

fromPaginationQueryParams() public static method

public static fromPaginationQueryParams ( array $paginationQueryParams, mixed $defaultPage = null )
$paginationQueryParams array
$defaultPage mixed

getPage() public method

public getPage ( ) : integer | null
return integer | null

getPaginationQueryString() public static method

public static getPaginationQueryString ( integer $page ) : string
$page integer
return string

Property Details

$page protected property

protected int|null $page
return integer | null