interface JsonApiElementInterface

Methods

array
getResources()

Get the resources array.

array
toArray()

Map to a "resource object" array.

array
toIdentifier()

Map to a "resource object identifier" array.

$this
relations(string|array $relationships)

Request a relationship to be included.

$this
attributes(array|null $fields)

Request a restricted set of fields.

getSerializer()

No description

mixed
getDenormalizedData($relationShips, $included, $name)

No description

Details

at line 12
array getResources()

Get the resources array.

Return Value

array

at line 19
array toArray()

Map to a "resource object" array.

Return Value

array

at line 26
array toIdentifier()

Map to a "resource object identifier" array.

Return Value

array

at line 35
$this relations(string|array $relationships)

Request a relationship to be included.

Parameters

string|array $relationships

Return Value

$this

at line 44
$this attributes(array|null $fields)

Request a restricted set of fields.

Parameters

array|null $fields

Return Value

$this

at line 47
getSerializer()

at line 55
mixed getDenormalizedData($relationShips, $included, $name)

Parameters

$relationShips
$included
$name

Return Value

mixed