JsonApiRelationship
class JsonApiRelationship
Class JsonApiRelationship
Traits
Class JsonApiLinkTrait
Class JsonApiMetaTrait
Properties
| protected array | $links | The links array. | from JsonApiLinkTrait |
| protected array | $meta | The meta data array. | from JsonApiMetaTrait |
| protected JsonApiElementInterface|null | $data | The data object. | |
| protected | $name |
Methods
getData()
Get the data object.
$this
array
toArray()
Map everything to an array.
mixed
getName()
No description
mixed
getDenormalizedData($relationShips, $included)
No description
setName(mixed $name)
No description
Details
in JsonApiLinkTrait at line 23
array
getLinks()
Get the links.
in JsonApiLinkTrait at line 35
$this
setLinks(array $links)
Set the links.
in JsonApiLinkTrait at line 49
$this
addLink(string $key, string $value)
Add a link.
in JsonApiMetaTrait at line 23
array
getMeta()
Get the meta.
in JsonApiMetaTrait at line 35
$this
setMeta(array $meta)
Set the meta data array.
in JsonApiMetaTrait at line 49
$this
addMeta(string $key, string $value)
Add meta data.
at line 30
__construct(JsonApiElementInterface|null $data = null)
Create a new relationship.
at line 39
JsonApiElementInterface|null
getData()
Get the data object.
at line 51
$this
setData(JsonApiElementInterface|null $data)
Set the data object.
at line 62
array
toArray()
Map everything to an array.