Méthode |
Description |
|
getAttributes ( mixed $domainObject ) : callable[] |
Provides information about the "attributes" section of the current resource. |
|
getDefaultIncludedRelationships ( mixed $domainObject ) : array |
Returns an array of relationship names which are included in the response by default. |
|
getId ( mixed $domainObject ) : string |
Provides information about the "id" section of the current resource. |
|
getLinks ( mixed $domainObject ) : WoohooLabs\Yin\JsonApi\Schema\Links | null |
Provides information about the "links" section of the current resource. |
|
getMeta ( mixed $domainObject ) : array |
Provides information about the "meta" section of the current resource. |
|
getRelationships ( mixed $domainObject ) : callable[] |
Provides information about the "relationships" section of the current resource. |
|
getType ( mixed $domainObject ) : string |
Provides information about the "type" section of the current resource. |
|
transformRelationship ( string $relationshipName, Transformation $transformation, mixed $domainObject, array $additionalMeta = [] ) : array |
|
|
transformToResource ( Transformation $transformation, mixed $domainObject ) : array |
|
|
transformToResourceIdentifier ( mixed $domainObject ) : array | null |
|
|