abstract class AbstractSerializer extends AbstractSerializer
Properties
protected Request | $request |
|
||
protected User | $actor |
|
||
static protected Dispatcher | $dispatcher |
|
||
static protected Container | $container |
|
Methods
array
getDefaultAttributes(object|array $model)
Get the default set of serialized attributes for a model.
Relationship
Relationship
Relationship
buildRelationship(mixed $model, string|Closure|SerializerInterface $serializer, string|null $relation = null, bool $many = false)
No description
Details
at
line 53
Request
getRequest()
at
line 61
setRequest(ServerRequestInterface $request)
at
line 70
User
getActor()
at
line 78
getAttributes($model, array $fields = null)
{@inheritdoc}
at
line 99
abstract protected array
getDefaultAttributes(object|array $model)
Get the default set of serialized attributes for a model.
at
line 115
getRelationship($model, $name)
{@inheritdoc}
at
line 131
protected Relationship|null
getCustomRelationship(mixed $model, string $name)
Get a custom relationship.
at
line 154
Relationship
hasOne(mixed $model, string|Closure|SerializerInterface $serializer, string|Closure|null $relation = null)
Get a relationship builder for a has-one relationship.
at
line 167
Relationship
hasMany(mixed $model, string|Closure|SerializerInterface $serializer, string|null $relation = null)
Get a relationship builder for a has-many relationship.