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

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