src/Reflection/ReflectionProperty.php
public static function createFromInstance($instance, string $propertyName) : self
    {
        return ReflectionClass::createFromInstance($instance)->getProperty($propertyName);
    }
public static function createFromInstance($instance, string $propertyName) : self
    {
        return ReflectionClass::createFromInstance($instance)->getProperty($propertyName);
    }
Create a reflection of an instance's property by its name

@param object $instance

@throws InvalidArgumentException
@throws ReflectionException
@throws IdentifierNotFound