Files
domain-watchdog/src/Config/ConnectorProvider.php

24 lines
571 B
PHP
Raw Normal View History

2024-07-28 21:14:41 +02:00
<?php
namespace App\Config;
2024-09-18 13:52:51 +02:00
use App\Service\Connector\GandiProvider;
use App\Service\Connector\NamecheapConnector;
use App\Service\Connector\OvhProvider;
2024-08-07 01:10:56 +02:00
2024-07-28 21:14:41 +02:00
enum ConnectorProvider: string
{
case OVH = 'ovh';
2024-08-06 03:38:00 +02:00
case GANDI = 'gandi';
2024-09-18 13:52:51 +02:00
case NAMECHEAP = 'namecheap';
2024-08-07 01:10:56 +02:00
public function getConnectorProvider(): string
{
return match ($this) {
2024-08-23 02:35:09 +02:00
ConnectorProvider::OVH => OvhProvider::class,
2024-09-18 13:52:51 +02:00
ConnectorProvider::GANDI => GandiProvider::class,
ConnectorProvider::NAMECHEAP => NamecheapConnector::class,
2024-08-07 01:10:56 +02:00
};
}
2024-07-28 21:14:41 +02:00
}