mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update BackupType.php
This commit is contained in:
parent
a346d35cf0
commit
1a3c253cbd
1 changed files with 4 additions and 8 deletions
|
@ -11,14 +11,12 @@ enum BackupType: string implements HasLabel, HasDescriptions, HasIcons
|
|||
|
||||
case FULL_BACKUP = 'full';
|
||||
case SYSTEM_BACKUP = 'system';
|
||||
case DATABASE_BACKUP = 'database';
|
||||
case HOSTING_SUBSCRIPTION_BACKUP = 'hosting_subscription';
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return match ($this) {
|
||||
self::FULL_BACKUP => 'Full Backup',
|
||||
self::SYSTEM_BACKUP => 'System Backup',
|
||||
self::DATABASE_BACKUP => 'Database Backup',
|
||||
self::SYSTEM_BACKUP => 'System',
|
||||
self::HOSTING_SUBSCRIPTION_BACKUP => 'Hosting Subscription Backup',
|
||||
};
|
||||
}
|
||||
|
@ -26,10 +24,9 @@ enum BackupType: string implements HasLabel, HasDescriptions, HasIcons
|
|||
public function getDescriptions(): ?string
|
||||
{
|
||||
return match ($this) {
|
||||
self::FULL_BACKUP => 'A full backup is a complete copy of your website files and database. It is the best way to protect your website data.',
|
||||
self::SYSTEM_BACKUP => 'A system backup is a copy of your website files and system files. It is useful for restoring your website if there is a problem with the system files.',
|
||||
self::DATABASE_BACKUP => 'A database backup is a copy of your website database. It is useful for restoring your website if there is a problem with the database.',
|
||||
self::HOSTING_SUBSCRIPTION_BACKUP => 'A hosting subscription backup is a copy of your website files and database. It is useful for restoring your website if there is a problem with the hosting subscription.',
|
||||
self::FULL_BACKUP => 'A full backup of the server. Includes phyre system full configuration and hosting subscriptions.',
|
||||
self::SYSTEM_BACKUP => 'A backup of the phyre system full configuration',
|
||||
self::HOSTING_SUBSCRIPTION_BACKUP => 'A backup of a hosting subscription',
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -38,7 +35,6 @@ enum BackupType: string implements HasLabel, HasDescriptions, HasIcons
|
|||
return match ($this) {
|
||||
self::FULL_BACKUP => 'heroicon-o-inbox-stack',
|
||||
self::SYSTEM_BACKUP => 'heroicon-o-cog',
|
||||
self::DATABASE_BACKUP => 'phyre-mysql',
|
||||
self::HOSTING_SUBSCRIPTION_BACKUP => 'heroicon-o-server',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue