ImageSerializer
class ImageSerializer extends JsonApiSerializerAbstract
Properties
| protected | $type |
Methods
mixed
getDeserializationClass()
No description
string
getId(mixed $model)
Get the id.
array
getAttributes(Image $image, array $fields = null)
No description
JsonApiRelationship|null
getRelationship(mixed $model, string $name)
Get a relationship.
string
getRelationshipMethodName(string $name)
Get the serializer method name for the given relationship.
Details
at line 33
mixed
getDeserializationClass()
in JsonApiSerializerAbstract at line 22
string
getType(mixed $model = null)
Get the type.
at line 12
string
getId(mixed $model)
Get the id.
at line 24
array
getAttributes(Image $image, array $fields = null)
in JsonApiSerializerAbstract at line 43
array
getLinks(mixed $model)
Get the links array.
in JsonApiSerializerAbstract at line 51
array
getMeta(mixed $model)
Get the meta.
in JsonApiSerializerAbstract at line 60
mixed
setType(string $type)
in JsonApiSerializerAbstract at line 72
JsonApiRelationship|null
getRelationship(mixed $model, string $name)
Get a relationship.
in JsonApiSerializerAbstract at line 95
protected string
getRelationshipMethodName(string $name)
Get the serializer method name for the given relationship.
kebab-case is converted into camelCase.