src/Reflection/ReflectionObject.php
private function createPropertyNodeFromReflection(CoreReflectionProperty $property, $instance) : PropertyNode
    {
        $builder = new PropertyNodeBuilder($property->getName());
        $builder->setDefault($property->getValue($instance));

        if ($property->isPublic()) {
            $builder->makePublic();
        }

        return $builder->getNode();
    }
private function createPropertyNodeFromReflection(CoreReflectionProperty $property, $instance) : PropertyNode
    {
        $builder = new PropertyNodeBuilder($property->getName());
        $builder->setDefault($property->getValue($instance));

        if ($property->isPublic()) {
            $builder->makePublic();
        }

        return $builder->getNode();
    }
Create an AST PropertyNode given a reflection

Note that we don't copy across DocBlock, protected, private or static
because runtime properties can't have these attributes.

@param object $instance