Final Class Yiisoft\Hydrator\TypeCaster\TypeCastContext
| Inheritance | Yiisoft\Hydrator\TypeCaster\TypeCastContext |
|---|
Holds type casting context data.
Public Methods
Method Details
| public __construct( Yiisoft\Hydrator\HydratorInterface $hydrator, ReflectionParameter|ReflectionProperty $reflection ): mixed | ||
| $hydrator | Yiisoft\Hydrator\HydratorInterface | |
| $reflection | ReflectionParameter|ReflectionProperty | |
public function __construct(
private HydratorInterface $hydrator,
private ReflectionParameter|ReflectionProperty $reflection,
) {}
| public getHydrator( ): Yiisoft\Hydrator\HydratorInterface |
public function getHydrator(): HydratorInterface
{
return $this->hydrator;
}
| public getReflection( ): ReflectionParameter|ReflectionProperty |
public function getReflection(): ReflectionParameter|ReflectionProperty
{
return $this->reflection;
}
| public getReflectionType( ): ReflectionType|null |
public function getReflectionType(): ?ReflectionType
{
return $this->reflection->getType();
}
Signup or Login in order to comment.