PHP Interface Tobscure\JsonApi\ElementInterface

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

Méthodes publiques

Méthode Description
fields ( array | null $fields ) Request a restricted set of fields.
getResources ( ) : array Get the resources array.
toArray ( ) : array Map to a "resource object" array.
toIdentifier ( ) : array Map to a "resource object identifier" array.
with ( string | array $relationships ) Request a relationship to be included.

Method Details

fields() public méthode

Request a restricted set of fields.
public fields ( array | null $fields )
$fields array | null

getResources() public méthode

Get the resources array.
public getResources ( ) : array
Résultat array

toArray() public méthode

Map to a "resource object" array.
public toArray ( ) : array
Résultat array

toIdentifier() public méthode

Map to a "resource object identifier" array.
public toIdentifier ( ) : array
Résultat array

with() public méthode

Request a relationship to be included.
public with ( string | array $relationships )
$relationships string | array