<?php

namespace Kylin\LawCase\Enums;

/**
 * 冲突检索状态枚举
 */
enum ConflictCheckStatus: string
{
    case PENDING = 'pending';       // 待审查
    case PASSED = 'passed';         // 无冲突
    case CONFLICT = 'conflict';     // 有冲突
    case WAIVED = 'waived';         // 豁免

    public function label(): string
    {
        return match ($this) {
            self::PENDING => '待审查',
            self::PASSED => '无冲突',
            self::CONFLICT => '有冲突',
            self::WAIVED => '豁免',
        };
    }
}
