trait JsonApiLinkTrait

Class JsonApiLinkTrait

Properties

$links The links array.

Methods

array
getLinks()

Get the links.

$this
setLinks(array $links)

Set the links.

$this
addLink(string $key, string $value)

Add a link.

Details

Get the links.

Return Value

array

Set the links.

Parameters

array $links

Return Value

$this

Add a link.

Parameters

string $key
string $value

Return Value

$this