21 lines
476 B
PHP
21 lines
476 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum UserPaymentOptionStatus: string
|
|
{
|
|
case Active = 'active';
|
|
case PastDue = 'past_due';
|
|
case Cancelled = 'cancelled';
|
|
case Grandfathered = 'grandfathered';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Active => 'Aktiv',
|
|
self::PastDue => 'Ueberfaellig',
|
|
self::Cancelled => 'Gekuendigt',
|
|
self::Grandfathered => 'Bestandsschutz',
|
|
};
|
|
}
|
|
}
|