phprs\util\IoCFactory::getPropertyValue PHP Méthode

getPropertyValue() static public méthode

取属性值
static public getPropertyValue ( $refl, object $ins, string $name ) : mixed
$refl
$ins object
$name string
Résultat mixed
    static function getPropertyValue($refl, $ins, $name)
    {
        Verify::isTrue($m = $refl->getProperty($name));
        $m->setAccessible(true);
        return $m->getValue($ins);
    }