class AsEnumCollection implements RequestCastable

Methods

static string
of(string $enum)

Get the caster declaration for the given enum.

static CastsRequestInput|string
castRequestUsing(array $arguments)

Get the request input caster.

__construct(string $enum)

Create an enum collection caster.

Collection|null
cast(string $key, mixed $value, array $input)

Cast the given value to a collection of enums.

Details

at line 23
static string of(string $enum)

Get the caster declaration for the given enum.

Parameters

string $enum

Return Value

string

at line 33
static CastsRequestInput|string castRequestUsing(array $arguments)

Get the request input caster.

Parameters

array $arguments

Return Value

CastsRequestInput|string

at line 45
__construct(string $enum)

Create an enum collection caster.

Parameters

string $enum

at line 52
Collection|null cast(string $key, mixed $value, array $input)

Cast the given value to a collection of enums.

Parameters

string $key
mixed $value
array $input

Return Value

Collection|null