<?php

namespace LinkFiliate\App\Services;

if (!defined('ABSPATH')) {
    exit;
}

use LinkFiliate\App\Services\Importers\PrettyLinksImporter;
use LinkFiliate\App\Services\Importers\ThirstyAffiliatesImporter;
use LinkFiliate\App\Services\Importers\BetterLinksImporter;

class ImportService
{
    public function getImporter(string $source)
    {
        return match ($source) {
            'pretty-links'        => new PrettyLinksImporter(),
            'thirsty-affiliates'  => new ThirstyAffiliatesImporter(),
            'better-links'        => new BetterLinksImporter(),
            default                => null,
        };
    }
}
