Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
WoohooLabs
Yin
JsonApi
Transformer
ResourceTransformerInterface
getRelationships
WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface::getRelationships PHP Method
ResourceTransformerInterface Interface Documentation
Mostra file
Open project: woohoolabs/yin
getRelationships()
public
method
The method returns an array where the keys signify the relationship names, while the values are callables receiving the domain object as an argument, and they should return a new relationship instance (to-one or to-many).
public
getRelationships
(
mixed
$domainObject
) :
callable[]
$domainObject
mixed
return
callable[]
public function getRelationships($domainObject);
ResourceTransformerInterface
getAttributes
getDefaultIncludedRelationships
getId
getLinks
getMeta
getRelationships
getType
transformRelationship
transformToResource
transformToResourceIdentifier