class AsDataObject implements CastsAttributes

Methods

__construct(string $argument)

No description

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

Cast the given value.

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

Prepare the given value for storage.

static string
castUsing(string $class)

Specify a custom caster class for the data object.

Details

at line 14
__construct(string $argument)

No description

Parameters

string $argument

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

Cast the given value.

Parameters

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

Return Value

mixed

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

Prepare the given value for storage.

Parameters

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

Return Value

mixed

at line 64
static string castUsing(string $class)

Specify a custom caster class for the data object.

Parameters

string $class

Return Value

string