Final Class Yiisoft\Hydrator\TypeCaster\TypeCastContext
| Inheritance | Yiisoft\ |
|---|
Holds type casting context data.
Public Methods
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $hydrator | Yiisoft\ |
|
| $reflection | ReflectionParameter|ReflectionProperty | |
public function __construct(
private HydratorInterface $hydrator,
private ReflectionParameter|ReflectionProperty $reflection,
) {}
| public Yiisoft\ |
public function getHydrator(): HydratorInterface
{
return $this->hydrator;
}
| public \ |
public function getReflection(): ReflectionParameter|ReflectionProperty
{
return $this->reflection;
}
| public ?\ |
public function getReflectionType(): ?ReflectionType
{
return $this->reflection->getType();
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.