CastableCast
class CastableCast implements Cast
Properties
| protected Cast|null | $cast |
Methods
__construct(string $castableClass, array $arguments = [])
Create a cast backed by a Castable type.
mixed
cast(DataProperty $property, mixed $value, ConstructionState $state, CreationContext $context)
Cast a value through the declared Castable type.
Details
at line 21
__construct(string $castableClass, array $arguments = [])
Create a cast backed by a Castable type.
at line 30
mixed
cast(DataProperty $property, mixed $value, ConstructionState $state, CreationContext $context)
Cast a value through the declared Castable type.