PHP Class WoohooLabs\Yin\JsonApi\Schema\Relationship\ToManyRelationship

Inheritance: extends AbstractRelationship, use trait WoohooLabs\Yin\JsonApi\Schema\Relationship\RelationshipFactoryTrait
Afficher le fichier Open project: woohoolabs/yin

Méthodes publiques

Méthode Description
__construct ( array $meta = [], WoohooLabs\Yin\JsonApi\Schema\Links $links = null, array $data = [], WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer = null )

Méthodes protégées

Méthode Description
transformData ( Transformation $transformation, $relationshipName, array $defaultRelationships )

Method Details

__construct() public méthode

public __construct ( array $meta = [], WoohooLabs\Yin\JsonApi\Schema\Links $links = null, array $data = [], WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $resourceTransformer = null )
$meta array
$links WoohooLabs\Yin\JsonApi\Schema\Links
$data array
$resourceTransformer WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface

transformData() protected méthode

protected transformData ( Transformation $transformation, $relationshipName, array $defaultRelationships )
$transformation WoohooLabs\Yin\JsonApi\Transformer\Transformation
$defaultRelationships array