interface JsonApiSerializationInterface

Methods

string
getType(mixed $model = null)

Get the type.

string
getId(mixed $model)

Get the id.

array
getAttributes(mixed $model, array $fields = null)

Get the attributes array.

array
getLinks(mixed $model)

Get the links array.

array
getMeta(mixed $model)

Get the meta.

mixed
setType(string $type)

No description

getRelationship(mixed $model, string $name)

Get a relationship.

mixed
getDeserializationClass()

No description

Details

at line 14
string getType(mixed $model = null)

Get the type.

Parameters

mixed $model

Return Value

string

at line 23
string getId(mixed $model)

Get the id.

Parameters

mixed $model

Return Value

string

at line 33
array getAttributes(mixed $model, array $fields = null)

Get the attributes array.

Parameters

mixed $model
array $fields

Return Value

array

Get the links array.

Parameters

mixed $model

Return Value

array

at line 51
array getMeta(mixed $model)

Get the meta.

Parameters

mixed $model

Return Value

array

at line 58
mixed setType(string $type)

Parameters

string $type

Return Value

mixed

at line 69
JsonApiRelationship|null getRelationship(mixed $model, string $name)

Get a relationship.

Parameters

mixed $model
string $name

Return Value

JsonApiRelationship|null

at line 75
mixed getDeserializationClass()

Return Value

mixed