Interface Yiisoft\Hydrator\TypeCaster\TypeCasterInterface
Casts value to a type obtained from {@see ReflectionType} passed.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| cast() | Yiisoft\ |
Method Details
| public abstract Yiisoft\ | ||
| $value | mixed |
Value to cast. |
| $context | Yiisoft\ |
Type cast context. |
| return | Yiisoft\ |
The result object. |
|---|---|---|
public function cast(mixed $value, TypeCastContext $context): Result;
User Contributed Notes
Leave a comment
Join the conversation to share a note.