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

Inheritance: extends AbstractRelationship, use trait WoohooLabs\Yin\JsonApi\Schema\Relationship\RelationshipFactoryTrait
Datei anzeigen Open project: woohoolabs/yin

Public Methods

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

Protected Methods

Method Description
transformData ( Transformation $transformation, $relationshipName, array $defaultRelationships )

Method Details

__construct() public method

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 method

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