ProtobufTest\TestCase::getPropertyValue PHP Метод

getPropertyValue() защищенный Метод

protected getPropertyValue ( object $object, string $property ) : mixed
$object object
$property string
Результат mixed
    protected function getPropertyValue($object, $property)
    {
        $reflection = new \ReflectionProperty($object, $property);
        $reflection->setAccessible(true);
        return $reflection->getValue($object);
    }