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

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

Méthodes publiques

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

Method Details

getIncludeRelationships() public méthode

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
Résultat string[]

getParameters() public méthode

Get parameters.
public getParameters ( ) : EncodingParametersInterface
Résultat EncodingParametersInterface

hasSomeFields() public méthode

If field-sets allows any fields to be in output (field-set filter is not empty array).
public hasSomeFields ( string $type ) : boolean
$type string
Résultat boolean

isPathIncluded() public méthode

If path is included.
public isPathIncluded ( string $path, string $type ) : boolean
$path string
$type string
Résultat boolean