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

callMethodOnDumper() protected static method

protected static callMethodOnDumper ( DbDumper $dbDumper, string $methodName, string | null $methodValue ) : DbDumper
$dbDumper Spatie\DbDumper\DbDumper
$methodName string
$methodValue string | null
return Spatie\DbDumper\DbDumper
    protected static function callMethodOnDumper(DbDumper $dbDumper, string $methodName, $methodValue) : DbDumper
    {
        if (is_null($methodValue)) {
            $dbDumper->{$methodName}();
            return $dbDumper;
        }
        $dbDumper->{$methodName}($methodValue);
        return $dbDumper;
    }