public static function methodExists($value, $object): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return method_exists($object, (string) $value);
    }
public static function methodExists($value, $object): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return method_exists($object, (string) $value);
    }
public static function methodExists ( $ value , $ object ) : bool { if ( ! static :: isStringCastable ( $ value ) ) { return false ; } return method_exists ( $ object , ( string ) $ value ) ; }
Checks if value is a method name for an object or class

@param mixed         $value  The value
@param object|string $object The object or fully qualified class name

@return bool
Checks if value is a method name for an object or class