Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList::getReflProperty PHP Method

getReflProperty() private method

Returns the \ReflectionProperty instance for a property of the underlying class
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];
    }