PHP Class WoohooLabs\Yin\JsonApi\Document\AbstractCollectionDocument

Inheritance: extends AbstractSuccessfulDocument
Mostrar archivo Open project: woohoolabs/yin

Protected Properties

Property Type Description
$transformer WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface

Public Methods

Method Description
__construct ( WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $transformer )

Protected Methods

Method Description
createData ( )
fillData ( Transformation $transformation )
getItems ( )
getRelationshipContent ( $relationshipName, Transformation $transformation, array $additionalMeta = [] )
hasItems ( )

Method Details

__construct() public method

public __construct ( WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface $transformer )
$transformer WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface

createData() protected method

protected createData ( )

fillData() protected method

protected fillData ( Transformation $transformation )
$transformation WoohooLabs\Yin\JsonApi\Transformer\Transformation

getItems() protected method

protected getItems ( )

getRelationshipContent() protected method

protected getRelationshipContent ( $relationshipName, Transformation $transformation, array $additionalMeta = [] )
$transformation WoohooLabs\Yin\JsonApi\Transformer\Transformation
$additionalMeta array

hasItems() protected method

protected hasItems ( )

Property Details

$transformer protected_oe property

protected ResourceTransformerInterface,WoohooLabs\Yin\JsonApi\Transformer $transformer
return WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface