0 follower

Final Class Yiisoft\Hydrator\TypeCaster\NoTypeCaster

InheritanceYiisoft\Hydrator\TypeCaster\NoTypeCaster
ImplementsYiisoft\Hydrator\TypeCaster\TypeCasterInterface

Doesn't cast value at all leaving it as is.

Public Methods

Hide inherited methods

Method Description Defined By
cast() Yiisoft\Hydrator\TypeCaster\NoTypeCaster

Method Details

Hide inherited methods

cast() public method

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);
}