Skip to content

Commit

Permalink
Update BackupType.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 24, 2024
1 parent a346d35 commit 1a3c253
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions web/app/Filament/Enums/BackupType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,22 @@ 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',
};
}

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',
};
}

Expand All @@ -38,7 +35,6 @@ public function getIcons(): ?string
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',
};
}
Expand Down

0 comments on commit 1a3c253

Please sign in to comment.