src/Support/PublicReflection.php
public static function hasMethod(string $className, string $name): bool
    {
        return in_array($name, static::methods($className));
    }
public static function hasMethod(string $className, string $name): bool
    {
        return in_array($name, static::methods($className));
    }
Checks to see if the given method is in the list of public class methods.

@param string $className
@param string $name
@return bool