Spatie\Backup\Tasks\Backup\DbDumperFactory::determineValidMethodName PHP Method

determineValidMethodName() protected static method

protected static determineValidMethodName ( DbDumper $dbDumper, string $methodName ) : string
$dbDumper Spatie\DbDumper\DbDumper
$methodName string
return string
    protected static function determineValidMethodName(DbDumper $dbDumper, string $methodName) : string
    {
        return collect([$methodName, 'set_' . $methodName])->first(function (string $methodName) use($dbDumper) {
            return method_exists($dbDumper, $methodName);
        }, '');
    }