Final Class Yiisoft\Hydrator\TypeCaster\NoTypeCaster
| Inheritance | Yiisoft\Hydrator\TypeCaster\NoTypeCaster |
|---|---|
| Implements | Yiisoft\Hydrator\TypeCaster\TypeCasterInterface |
Doesn't cast value at all leaving it as is.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| cast() | Yiisoft\Hydrator\TypeCaster\NoTypeCaster |
Method Details
| public Yiisoft\Hydrator\Result cast ( mixed $value, Yiisoft\Hydrator\TypeCaster\TypeCastContext $context ) | ||
| $value | mixed | |
| $context | Yiisoft\Hydrator\TypeCaster\TypeCastContext | |
public function cast(mixed $value, TypeCastContext $context): Result
{
return Result::success($value);
}
Signup or Login in order to comment.