Skip to content
PHP Ecosystem
Explore

CastValueInterface

API reference › Model › CastValueInterface

interfaceUIAwesome\Model\CastValueInterface
Sourcesrc/CastValueInterface.php

Contract for custom value casters used by #[Cast].

MethodDescriptionDefined by
cast() abstractCasts the incoming value into a target representation.CastValueInterface
abstract public function cast(mixed $value): mixed

Casts the incoming value into a target representation.

Parameters

ParameterTypeDescription
$valuemixed

Returns

mixed