<?php

namespace App\Enums;

enum PaymentStatus: string
{
    case Posted = 'posted';
    case Reversed = 'reversed';
    case Refunded = 'refunded';

    public function label(): string
    {
        return match ($this) {
            self::Posted => 'Posted',
            self::Reversed => 'Reversed',
            self::Refunded => 'Refunded',
        };
    }
}
