<?php

declare(strict_types=1);

namespace Kylin\Agriculture\Enums;

/**
 * 预警状态枚举
 */
enum WarningStatus: string
{
    case PENDING = 'pending';
    case CONFIRMED = 'confirmed';
    case RESOLVED = 'resolved';

    public function label(): string
    {
        return match ($this) {
            self::PENDING => '待处理',
            self::CONFIRMED => '已确认',
            self::RESOLVED => '已处理',
        };
    }
}
