class AsEnumCollection 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

Collection|null
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
Collection|null get(mixed $model, string $key, mixed $value, array $attributes)

No description

Parameters

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

Return Value

Collection|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 66
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 73
protected string|int getStorableEnumValue(mixed $enum)

No description

Parameters

mixed $enum

Return Value

string|int