0 follower

Final Class Yiisoft\Hydrator\TypeCaster\TypeCastContext

InheritanceYiisoft\Hydrator\TypeCaster\TypeCastContext

Holds type casting context data.

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Hydrator\HydratorInterface $hydrator, ReflectionParameter|ReflectionProperty $reflection )
$hydrator Yiisoft\Hydrator\HydratorInterface
$reflection ReflectionParameter|ReflectionProperty

                public function __construct(
    private HydratorInterface $hydrator,
    private ReflectionParameter|ReflectionProperty $reflection,
) {
}

            
getHydrator() public method

public Yiisoft\Hydrator\HydratorInterface getHydrator ( )

                public function getHydrator(): HydratorInterface
{
    return $this->hydrator;
}

            
getReflection() public method

public ReflectionParameter|ReflectionProperty getReflection ( )

                public function getReflection(): ReflectionParameter|ReflectionProperty
{
    return $this->reflection;
}

            
getReflectionType() public method

public ReflectionType|null getReflectionType ( )

                public function getReflectionType(): ?ReflectionType
{
    return $this->reflection->getType();
}