presseportale/app/Enums/InvoiceStatus.php

21 lines
429 B
PHP

<?php
namespace App\Enums;
enum InvoiceStatus: string
{
case Open = 'open';
case Paid = 'paid';
case Void = 'void';
case Uncollectible = 'uncollectible';
public function label(): string
{
return match ($this) {
self::Open => 'Offen',
self::Paid => 'Bezahlt',
self::Void => 'Storniert',
self::Uncollectible => 'Uneinbringlich',
};
}
}