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

显示文件 Open project: woohoolabs/yin

Public Methods

Method Description
getCurrentItem ( ) : mixed
getFirstItem ( ) : mixed
getFirstLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link
getLastItem ( ) : mixed
getLastLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getNextItem ( ) : mixed
getNextLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getPrevLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link | null
getPreviousItem ( ) : mixed
getSelfLink ( string $url ) : WoohooLabs\Yin\JsonApi\Schema\Link

Protected Methods

Method Description
appendQueryStringToUrl ( string $url, string $queryString ) : string
createPaginatedLink ( string $url, mixed $cursor ) : WoohooLabs\Yin\JsonApi\Schema\Link | null

Method Details

appendQueryStringToUrl() protected method

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

getCurrentItem() abstract public method

abstract public getCurrentItem ( ) : mixed
return mixed

getFirstItem() abstract public method

abstract public getFirstItem ( ) : mixed
return mixed

getLastItem() abstract public method

abstract public getLastItem ( ) : mixed
return mixed

getNextItem() abstract public method

abstract public getNextItem ( ) : mixed
return mixed

getPreviousItem() abstract public method

abstract public getPreviousItem ( ) : mixed
return mixed