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

Afficher le fichier Open project: woohoolabs/yin Class Usage Examples

Protected Properties

Свойство Type Description
$limit integer | null
$offset integer | null

Méthodes publiques

Méthode Description
__construct ( integer | null $offset, integer | null $limit )
fromPaginationQueryParams ( array $paginationQueryParams, mixed $defaultOffset = null, mixed $defaultLimit = null )
getLimit ( ) : integer | null
getOffset ( ) : integer | null
getPaginationQueryString ( integer $offset, integer $limit ) : string

Method Details

__construct() public méthode

public __construct ( integer | null $offset, integer | null $limit )
$offset integer | null
$limit integer | null

fromPaginationQueryParams() public static méthode

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

getLimit() public méthode

public getLimit ( ) : integer | null
Résultat integer | null

getOffset() public méthode

public getOffset ( ) : integer | null
Résultat integer | null

getPaginationQueryString() public static méthode

public static getPaginationQueryString ( integer $offset, integer $limit ) : string
$offset integer
$limit integer
Résultat string

Property Details

$limit protected_oe property

protected int|null $limit
Résultat integer | null

$offset protected_oe property

protected int|null $offset
Résultat integer | null