AgentSerializer
class AgentSerializer extends JsonApiSerializerAbstract
Properties
| protected | $type |
Methods
mixed
getDeserializationClass()
No description
string
getId(mixed $model)
Get the id.
array
getAttributes(mixed $agent, 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.
group(Agent $agent)
No description
superior(Agent $agent)
No description
image(Agent $agent)
No description
address(Agent $agent)
No description
Details
at line 85
mixed
getDeserializationClass()
in JsonApiSerializerAbstract at line 22
string
getType(mixed $model = null)
Get the type.
at line 16
string
getId(mixed $model)
Get the id.
at line 27
array
getAttributes(mixed $agent, 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.