<?php

namespace App\Enums;

enum PaymentMethod: string
{
    case Cash = 'cash';
    case BankTransfer = 'bank_transfer';
    case MobileMoney = 'mobile_money';
    case CreditCard = 'credit_card';
    case DebitCard = 'debit_card';
    case Cheque = 'cheque';
    case CreditAccount = 'credit_account';
    case Other = 'other';

    public function label(): string
    {
        return match ($this) {
            self::Cash => 'Cash',
            self::BankTransfer => 'Bank Transfer',
            self::MobileMoney => 'Mobile Money',
            self::CreditCard => 'Credit Card',
            self::DebitCard => 'Debit Card',
            self::Cheque => 'Cheque',
            self::CreditAccount => 'Credit Account',
            self::Other => 'Other',
        };
    }
}
