JsonApiSerializationInterface
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
JsonApiRelationship|null
getRelationship(mixed $model, string $name)
Get a relationship.
mixed
getDeserializationClass()
No description
Details
at line 14
string
getType(mixed $model = null)
Get the type.
at line 23
string
getId(mixed $model)
Get the id.
at line 33
array
getAttributes(mixed $model, array $fields = null)
Get the attributes array.
at line 42
array
getLinks(mixed $model)
Get the links array.
at line 51
array
getMeta(mixed $model)
Get the meta.
at line 58
mixed
setType(string $type)
at line 69
JsonApiRelationship|null
getRelationship(mixed $model, string $name)
Get a relationship.