class AsArrayObject implements Castable

Methods

castUsing(array $arguments)

Get the caster class to use when casting from / to this cast target.

get(mixed $model, string $key, mixed $value, array $attributes)

No description

array
set(mixed $model, string $key, mixed $value, array $attributes)

No description

array
serialize(mixed $model, string $key, mixed $value, array $attributes)

No description

Details

at line 17
static CastsAttributes|CastsInboundAttributes|string castUsing(array $arguments)

Get the caster class to use when casting from / to this cast target.

Parameters

array $arguments

Return Value

CastsAttributes|CastsInboundAttributes|string

at line 20
ArrayObject|null get(mixed $model, string $key, mixed $value, array $attributes)

No description

Parameters

mixed $model
string $key
mixed $value
array $attributes

Return Value

ArrayObject|null

at line 31
array set(mixed $model, string $key, mixed $value, array $attributes)

No description

Parameters

mixed $model
string $key
mixed $value
array $attributes

Return Value

array

at line 36
array serialize(mixed $model, string $key, mixed $value, array $attributes)

No description

Parameters

mixed $model
string $key
mixed $value
array $attributes

Return Value

array