<?php

namespace Kylin\Catering\Enums;

/**
 * 支付状态
 */
enum PaymentStatus: string
{
    case Unpaid = 'unpaid';     // 未支付
    case Paid = 'paid';         // 已支付
    case Refunded = 'refunded'; // 已退款

    public function label(): string
    {
        return match ($this) {
            self::Unpaid => '未支付',
            self::Paid => '已支付',
            self::Refunded => '已退款',
        };
    }
}
