PHP Trait WoohooLabs\Yin\JsonApi\Schema\Pagination\OffsetBasedPaginationLinkProviderTrait

Exibir arquivo Open project: woohoolabs/yin

Public Methods

Method Description
getFirstLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getLastLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getNextLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getPrevLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getSelfLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null

Protected Methods

Method Description
appendQueryStringToUrl ( string $url, string $queryString ) : string
createPaginatedLink ( string $url, integer $page, integer $size ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getLimit ( ) : integer
getOffset ( ) : integer
getTotalItems ( ) : integer

Method Details

appendQueryStringToUrl() protected method

protected appendQueryStringToUrl ( string $url, string $queryString ) : string
$url string
$queryString string
return string

getLimit() abstract protected method

abstract protected getLimit ( ) : integer
return integer

getOffset() abstract protected method

abstract protected getOffset ( ) : integer
return integer

getTotalItems() abstract protected method

abstract protected getTotalItems ( ) : integer
return integer