Property | Type | Description | |
---|---|---|---|
$isCallableData | boolean | ||
$omitDataWhenNotIncluded | boolean | ||
$resourceTransformer | WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface |
Method | Description | |
---|---|---|
__construct ( array $meta = [], WoohooLabs\Yin\JsonApi\Schema\Links $links = null, mixed $data = null, WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer = null ) | ||
omitWhenNotIncluded ( ) | ||
setData ( mixed $data, WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer ) | ||
setDataAsCallable ( callable $data, WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer ) | ||
transform ( |
Method | Description | |
---|---|---|
retrieveData ( ) : mixed | ||
transformData ( |
||
transformResource ( |
public __construct ( array $meta = [], WoohooLabs\Yin\JsonApi\Schema\Links $links = null, mixed $data = null, WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer = null ) | ||
$meta | array | |
$links | WoohooLabs\Yin\JsonApi\Schema\Links | |
$data | mixed | |
$resourceTransformer | WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface |
public setDataAsCallable ( callable $data, WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer ) | ||
$data | callable | |
$resourceTransformer | WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface |
public transform ( |
||
$transformation | ||
$resourceType | string | |
$relationshipName | string | |
$defaultRelationships | array | |
$additionalMeta | array | |
return | array | null |
protected bool $omitDataWhenNotIncluded | ||
return | boolean |