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