src/Form/ChoiceList/ModelChoiceList.php
private function getReflProperty(string $property): ReflectionProperty
    {
        if (!isset($this->reflProperties[$property])) {
            $this->reflProperties[$property] = new \ReflectionProperty($this->class, $property);
            $this->reflProperties[$property]->setAccessible(true);
        }

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

        return $this->reflProperties[$property];
    }
private function getReflProperty ( string $ property ) : ReflectionProperty { if ( ! isset ( $ this -> reflProperties [ $ property ] ) ) { $ this -> reflProperties [ $ property ] = new \ ReflectionProperty ( $ this -> class , $ property ) ; $ this -> reflProperties [ $ property ] -> setAccessible ( true ) ; } return $ this -> reflProperties [ $ property ] ; }
Returns the \ReflectionProperty instance for a property of the
underlying class.

@param string $property The name of the property

@return \ReflectionProperty The reflection instance
Returns the \ ReflectionProperty instance for a property of the underlying class .