<?php

namespace Kylin\Community\Enums;

/**
 * 互助信息状态
 */
enum HelpStatus: string
{
    case PENDING = 'pending';       // 待响应
    case ACTIVE = 'active';         // 进行中
    case COMPLETED = 'completed';   // 已完成
    case CLOSED = 'closed';         // 已关闭

    public function label(): string
    {
        return match ($this) {
            self::PENDING => '待响应',
            self::ACTIVE => '进行中',
            self::COMPLETED => '已完成',
            self::CLOSED => '已关闭',
        };
    }
}
