private getReflProperty ( string $property ) : ReflectionProperty | ||
$property | string | The name of the property |
return | ReflectionProperty | The reflection instance |
private function getReflProperty($property)
{
if (!isset($this->reflProperties[$property])) {
$this->reflProperties[$property] = new \ReflectionProperty($this->class, $property);
$this->reflProperties[$property]->setAccessible(true);
}
return $this->reflProperties[$property];
}