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