<?php

declare(strict_types=1);

namespace App\Domain\Database\Enums;

enum DatabaseEngine: string
{
    case MariaDB = 'mariadb';
    case MySQL = 'mysql';

    public function label(): string
    {
        return match ($this) {
            self::MariaDB => 'MariaDB',
            self::MySQL => 'MySQL',
        };
    }

    public function badgeColor(): string
    {
        return match ($this) {
            self::MariaDB => 'blue',
            self::MySQL => 'orange',
        };
    }
}
