PHP Interface Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface

Afficher le fichier Open project: neomerx/json-api Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getFieldSet() public méthode

Get field names that should be in result.
public getFieldSet ( string $type ) : string[] | null
$type string
Résultat string[] | null

getFieldSets() public méthode

Get field names that should be in result.
public getFieldSets ( ) : array | null
Résultat array | null

getFilteringParameters() public méthode

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
Résultat array | null

getIncludePaths() public méthode

Get requested include paths.
public getIncludePaths ( ) : array | null
Résultat array | null

getPaginationParameters() public méthode

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
Résultat array | null

getSortParameters() public méthode

Get sort parameters.
public getSortParameters ( ) : Neomerx\JsonApi\Contracts\Encoder\Parameters\SortParameterInterface[] | null
Résultat Neomerx\JsonApi\Contracts\Encoder\Parameters\SortParameterInterface[] | null

getUnrecognizedParameters() public méthode

Get top level parameters that have not been recognized by parser.
public getUnrecognizedParameters ( ) : array | null
Résultat array | null

isEmpty() public méthode

Returns true if inclusion, field set, sorting, paging, and filtering parameters are empty.
public isEmpty ( ) : boolean
Résultat boolean