class MailSettingsSerializer extends AbstractSerializer
Properties
protected | $request | from AbstractSerializer | ||
protected | $actor | from AbstractSerializer | ||
static protected | $container | from AbstractSerializer | ||
static protected array<string,callable[]> | $attributeMutators | from AbstractSerializer | ||
static protected array<string,array<string,callable>> | $customRelations | from AbstractSerializer | ||
protected | $type |
Methods
Relationship|null
getCustomRelationship(object|array $model, string $name)
<p>Get a custom relationship.</p>
from AbstractSerializer
Relationship|null
hasOne(object|array $model, SerializerInterface|Closure|string $serializer, string $relation = null)
<p>Get a relationship builder for a has-one relationship.</p>
from AbstractSerializer
Relationship|null
hasMany(object|array $model, SerializerInterface|Closure|string $serializer, string $relation = null)
<p>Get a relationship builder for a has-many relationship.</p>
from AbstractSerializer
Relationship|null
buildRelationship(object|array $model, SerializerInterface|Closure|string $serializer, string $relation = null, bool $many = false)
No description
from AbstractSerializer
mixed
getRelationshipData(object|array $model, string $relation)
No description
from AbstractSerializer
SerializerInterface
resolveSerializer(SerializerInterface|Closure|string $serializer, object|array $model, mixed $data)
No description
from AbstractSerializer
static void
addAttributeMutator(string $serializerClass, callable $callback)
No description
from AbstractSerializer
static void
setRelationship(string $serializerClass, string $relation, callable $callback)
No description
from AbstractSerializer
Details
in AbstractSerializer
at
line 43
ServerRequestInterface
getRequest()
in AbstractSerializer
at
line 48
void
setRequest(ServerRequestInterface $request)
in AbstractSerializer
at
line 54
User
getActor()
in AbstractSerializer
at
line 59
array
getAttributes(mixed $model, array $fields = null)
at
line 22
protected array
getDefaultAttributes(object|array $model)
in AbstractSerializer
at
line 86
string|null
formatDate(DateTime $date = null)
in AbstractSerializer
at
line 91
getRelationship($model, $name)
in AbstractSerializer
at
line 103
protected Relationship|null
getCustomRelationship(object|array $model, string $name)
<p>Get a custom relationship.</p>
in AbstractSerializer
at
line 127
Relationship|null
hasOne(object|array $model, SerializerInterface|Closure|string $serializer, string $relation = null)
<p>Get a relationship builder for a has-one relationship.</p>
in AbstractSerializer
at
line 135
Relationship|null
hasMany(object|array $model, SerializerInterface|Closure|string $serializer, string $relation = null)
<p>Get a relationship builder for a has-many relationship.</p>