public withRelationshipSelfLink ( object $resource, string $relationshipName, null | mixed $meta = null, boolean $treatAsHref = false ) : Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | ||
$resource | object | |
$relationshipName | string | |
$meta | null | mixed | |
$treatAsHref | boolean | |
return | Neomerx\JsonApi\Contracts\Encoder\EncoderInterface |