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

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

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

Метод Описание
getIncludeRelationships ( string $path, string $type ) : string[] Get a list of relationship that should be included for $path of root type $type.
getParameters ( ) : EncodingParametersInterface Get parameters.
hasSomeFields ( string $type ) : boolean If field-sets allows any fields to be in output (field-set filter is not empty array).
isPathIncluded ( string $path, string $type ) : boolean If path is included.

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

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

Get a list of relationship that should be included for $path of root type $type.
public getIncludeRelationships ( string $path, string $type ) : string[]
$path string
$type string
Результат string[]

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

Get parameters.
public getParameters ( ) : EncodingParametersInterface
Результат EncodingParametersInterface

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

If field-sets allows any fields to be in output (field-set filter is not empty array).
public hasSomeFields ( string $type ) : boolean
$type string
Результат boolean

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

If path is included.
public isPathIncluded ( string $path, string $type ) : boolean
$path string
$type string
Результат boolean