public static function createFromInstance($instance, string $methodName) : self
    {
        return ReflectionClass::createFromInstance($instance)->getMethod($methodName);
    }
public static function createFromInstance($instance, string $methodName) : self
    {
        return ReflectionClass::createFromInstance($instance)->getMethod($methodName);
    }
public static function createFromInstance ( $ instance , string $ methodName ) : self { return ReflectionClass :: createFromInstance ( $ instance ) -> getMethod ( $ methodName ) ; }
Create a reflection of a method by it's name using an instance

@param object $instance

@throws InvalidArgumentException
@throws ReflectionException
@throws IdentifierNotFound
@throws OutOfBoundsException
Create a reflection of a method by it s name using an instance