<?php
declare(strict_types=1);
namespace App\Platform\Health;

enum HealthStatus: string
{
    case OK = 'ok';
    case WARNING = 'warning';
    case CRITICAL = 'critical';

    public function label(): string
    {
        return match ($this) {
            self::OK => 'OK',
            self::WARNING => 'Avertissement',
            self::CRITICAL => 'Critique',
        };
    }
}
