WoohooLabs\Yin\JsonApi\Transformer\ResourceTransformerInterface::getAttributes PHP Method

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);