class Price implements CastsAttributes (View source)

Methods

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

Cast the given value.

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

Prepare the given value for storage.

Details

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

Cast the given value.

Parameters

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

Return Value

Price

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

Prepare the given value for storage.

Parameters

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

Return Value

array