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
getAttributes
WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface::getAttributes PHP Method
ResourceTransformerInterface Interface Documentation
Mostra file
Open project: woohoolabs/yin
getAttributes()
public
method
The method returns an array where the keys signify the attribute names, while the values are callables receiving the domain object as an argument, and they should return the value of the corresponding attribute.
public
getAttributes
(
mixed
$domainObject
) :
callable[]
$domainObject
mixed
return
callable[]
public function getAttributes($domainObject);
ResourceTransformerInterface
getAttributes
getDefaultIncludedRelationships
getId
getLinks
getMeta
getRelationships
getType
transformRelationship
transformToResource
transformToResourceIdentifier