mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add enum
This commit is contained in:
18
src/Config/DomainRole.php
Normal file
18
src/Config/DomainRole.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
enum DomainRole: string
|
||||
{
|
||||
case Registrant = 'registrant';
|
||||
case Technical = 'technical';
|
||||
case Administrative = 'administrative';
|
||||
case Abuse = 'abuse';
|
||||
case Billing = 'billing';
|
||||
case Registrar = 'registrar';
|
||||
case Reseller = 'reseller';
|
||||
case Sponsor = 'sponsor';
|
||||
case Proxy = 'proxy';
|
||||
case Notifications = 'notifications';
|
||||
case Noc = 'noc';
|
||||
}
|
||||
43
src/Config/DomainStatus.php
Normal file
43
src/Config/DomainStatus.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
enum DomainStatus: string
|
||||
{
|
||||
case Validated = 'validated';
|
||||
case RenewProhibited = 'renew prohibited';
|
||||
case UpdateProhibited = 'update prohibited';
|
||||
case TransferProhibited = 'transfer prohibited';
|
||||
case DeleteProhibited = 'delete prohibited';
|
||||
case Proxy = 'proxy';
|
||||
case Private = 'private';
|
||||
case Removed = 'removed';
|
||||
case Obscured = 'obscured';
|
||||
case Associated = 'associated';
|
||||
case Active = 'active';
|
||||
case Inactive = 'inactive';
|
||||
case Locked = 'locked';
|
||||
case PendingCreate = 'pending create';
|
||||
case PendingRenew = 'pending renew';
|
||||
case PendingTransfer = 'pending transfer';
|
||||
case PendingUpdate = 'pending update';
|
||||
case PendingDelete = 'pending delete';
|
||||
case AddPeriod = 'add period';
|
||||
case AutoRenewPeriod = 'auto renew period';
|
||||
case ClientDeleteProhibited = 'client delete prohibited';
|
||||
case ClientHold = 'client hold';
|
||||
case ClientRenewProhibited = 'client renew prohibited';
|
||||
case ClientTransferProhibited = 'client transfer prohibited';
|
||||
case ClientUpdateProhibited = 'client update prohibited';
|
||||
case PendingRestore = 'pending restore';
|
||||
case RedemptionPeriod = 'redemption period';
|
||||
case RenewPeriod = 'renew period';
|
||||
case ServerDeleteProhibited = 'server delete prohibited';
|
||||
case ServerRenewProhibited = 'server renew prohibited';
|
||||
case ServerTransferProhibited = 'server transfer prohibited';
|
||||
case ServerUpdateProhibited = 'server update prohibited';
|
||||
case ServerHold = 'server hold';
|
||||
case TransferPeriod = 'transfer period';
|
||||
case Administrative = 'administrative';
|
||||
case Reserved = 'reserved';
|
||||
}
|
||||
12
src/Config/DomainVariantRelation.php
Normal file
12
src/Config/DomainVariantRelation.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
enum DomainVariantRelation: string
|
||||
{
|
||||
case Registered = 'registered';
|
||||
case Unregistered = 'unregistered';
|
||||
case RegistrationRestricted = 'registration restricted';
|
||||
case OpenRegistration = 'open registration';
|
||||
case Conjoined = 'conjoined';
|
||||
}
|
||||
19
src/Config/EventAction.php
Normal file
19
src/Config/EventAction.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Config;
|
||||
|
||||
enum EventAction: string
|
||||
{
|
||||
case Registration = 'registration';
|
||||
case Reregistration = 'reregistration';
|
||||
case LastChanged = 'last changed';
|
||||
case Expiration = 'expiration';
|
||||
case Deletion = 'deletion';
|
||||
case Reinstantiation = 'reinstantiation';
|
||||
case Transfer = 'transfer';
|
||||
case Locked = 'locked';
|
||||
case Unlocked = 'unlocked';
|
||||
case LastUpdateOfRDAPDatabase = 'last update of RDAP database';
|
||||
case RegistrarExpiration = 'registrar expiration';
|
||||
case EnumValidationExpiration = 'enum validation expiration';
|
||||
}
|
||||
Reference in New Issue
Block a user