class ShippingBreakdown implements CastsAttributes, SerializesCastableAttributes (View source)

Methods

Collection
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.

serialize(Model $model, string $key, Collection $value, array<string,mixed> $attributes)

Get the serialized representation of the value.

Details

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

Cast the given value.

Parameters

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

Return Value

Collection

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

serialize(Model $model, string $key, Collection $value, array<string,mixed> $attributes)

Get the serialized representation of the value.

Parameters

Model $model
string $key
Collection $value
array<string,mixed> $attributes