class AsEnumArrayObject implements Castable

Properties

protected array $arguments

Methods

castUsing(array $arguments)

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

__construct(array $arguments)

No description

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

No description

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

No description

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

No description

string|int
getStorableEnumValue(mixed $enum)

No description

Details

at line 28
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 33
__construct(array $arguments)

No description

Parameters

array $arguments

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

No description

Parameters

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

Return Value

ArrayObject|null

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

No description

Parameters

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

Return Value

array

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

No description

Parameters

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

Return Value

array

at line 87
protected string|int getStorableEnumValue(mixed $enum)

No description

Parameters

mixed $enum

Return Value

string|int