PHP Интерфейс Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getFieldSet ( string $type ) : string[] | null Get field names that should be in result.
getFieldSets ( ) : array | null Get field names that should be in result.
getFilteringParameters ( ) : array | null Get filtering parameters.
getIncludePaths ( ) : array | null Get requested include paths.
getPaginationParameters ( ) : array | null Get pagination parameters.
getSortParameters ( ) : Neomerx\JsonApi\Contracts\Encoder\Parameters\SortParameterInterface[] | null Get sort parameters.
getUnrecognizedParameters ( ) : array | null Get top level parameters that have not been recognized by parser.
isEmpty ( ) : boolean Returns true if inclusion, field set, sorting, paging, and filtering parameters are empty.

Описание методов

getFieldSet() публичный Метод

Get field names that should be in result.
public getFieldSet ( string $type ) : string[] | null
$type string
Результат string[] | null

getFieldSets() публичный Метод

Get field names that should be in result.
public getFieldSets ( ) : array | null
Результат array | null

getFilteringParameters() публичный Метод

Filtering parameters are not detailed in the specification however a keyword 'filter' is reserved for filtering. This method returns key and value pairs from input 'filter' parameter.
public getFilteringParameters ( ) : array | null
Результат array | null

getIncludePaths() публичный Метод

Get requested include paths.
public getIncludePaths ( ) : array | null
Результат array | null

getPaginationParameters() публичный Метод

Pagination parameters are not detailed in the specification however a keyword 'page' is reserved for pagination. This method returns key and value pairs from input 'page' parameter.
public getPaginationParameters ( ) : array | null
Результат array | null

getSortParameters() публичный Метод

Get sort parameters.
public getSortParameters ( ) : Neomerx\JsonApi\Contracts\Encoder\Parameters\SortParameterInterface[] | null
Результат Neomerx\JsonApi\Contracts\Encoder\Parameters\SortParameterInterface[] | null

getUnrecognizedParameters() публичный Метод

Get top level parameters that have not been recognized by parser.
public getUnrecognizedParameters ( ) : array | null
Результат array | null

isEmpty() публичный Метод

Returns true if inclusion, field set, sorting, paging, and filtering parameters are empty.
public isEmpty ( ) : boolean
Результат boolean