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(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

string|int
getStorableEnumValue(mixed $enum)

No description

Details

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

No description

Parameters

array $arguments

at line 34
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 55
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 70
array serialize(mixed $model, string $key, mixed $value, array $attributes)

No description

Parameters

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

Return Value

array

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

No description

Parameters

mixed $enum

Return Value

string|int