<?php

namespace Kylin\Property\Enums;

/**
 * 账单状态枚举
 */
enum BillStatus: string
{
    case UNPAID = 'unpaid';
    case PAID = 'paid';
    case OVERDUE = 'overdue';
    case CANCELLED = 'cancelled';

    public function label(): string
    {
        return match ($this) {
            self::UNPAID => '未缴费',
            self::PAID => '已缴费',
            self::OVERDUE => '已逾期',
            self::CANCELLED => '已取消',
        };
    }
}
