<?php
namespace EasyChat\Library\Messenger;








class ProviderRegistry {

    public static function get(string $provider, $registry = null): ?MessengerProviderInterface {
        switch (strtolower($provider)) {
            case MaxBotProvider::PROVIDER:
                return new MaxBotProvider($registry);
            case WhatsAppPersonalProvider::PROVIDER:
                return new WhatsAppPersonalProvider($registry);
            case AvitoProvider::PROVIDER:
                return new AvitoProvider($registry);
            case YoulaProvider::PROVIDER:
                return new YoulaProvider($registry);
            case VkProvider::PROVIDER:
                return new VkProvider($registry);
            case TelegramProvider::PROVIDER:
                return new TelegramProvider($registry);
            case SmsProvider::PROVIDER:
                return new SmsProvider($registry);
            case EmailProvider::PROVIDER:
                return new EmailProvider($registry);
            case WildberriesProvider::PROVIDER:
                return new WildberriesProvider($registry);
            case OzonProvider::PROVIDER:
                return new OzonProvider($registry);
            case YandexMarketProvider::PROVIDER:
                return new YandexMarketProvider($registry);
            default:
                return null;
        }
    }
}
