Create relationship object.
public createRelationshipObject ( string $name, object | array | null $data, \Neomerx\JsonApi\Contracts\Schema\LinkInterface>\array |
||
$name | string | |
$data | object | array | null | |
$links | \Neomerx\JsonApi\Contracts\Schema\LinkInterface>\array | |
$meta | mixed | |
$isShowData | boolean | |
$isRoot | boolean | |
return | Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface |