Method | Description | |
---|---|---|
transformRelationship ( string $relationshipName, |
Transforms a relationship with a name of $relationshipName of the original resource to a JSON API relationship. | |
transformToResource ( |
Transforms the original resource to a JSON API resource. | |
transformToResourceIdentifier ( mixed $domainObject ) : array | null | Transforms the original resource to a JSON API resource identifier. |
Method | Description | |
---|---|---|
transformAttributes ( |
||
transformAttributesObject ( array &$array, |
||
transformLinksObject ( array &$array, mixed $domainObject ) | ||
transformRelationshipObject ( |
||
transformRelationships ( |
||
transformRelationshipsObject ( array &$array, |
||
validateRelationships ( |
protected transformAttributesObject ( array &$array, |
||
$array | array | |
$transformation | ||
$domainObject | mixed |
protected transformLinksObject ( array &$array, mixed $domainObject ) | ||
$array | array | |
$domainObject | mixed |
protected transformRelationshipObject ( |
||
$transformation | ||
$domainObject | mixed | |
$relationshipName | string | |
$relationships | array | |
$defaultRelationships | array | |
$additionalMeta | array | |
return | array | null |
protected transformRelationshipsObject ( array &$array, |
||
$array | array | |
$transformation | ||
$domainObject | mixed |
public transformToResource ( |
||
$transformation | ||
$domainObject | mixed | |
return | array |
protected validateRelationships ( |
||
$transformation | ||
$relationships | array |