20 lines
375 B
PHP
20 lines
375 B
PHP
<?php
|
|
|
|
namespace App\Domain\Identity;
|
|
|
|
enum AccountStatus: string
|
|
{
|
|
case Aktiv = 'aktiv';
|
|
case Gesperrt = 'gesperrt';
|
|
case Geloescht = 'geloescht';
|
|
|
|
public function label(): string
|
|
{
|
|
return match ($this) {
|
|
self::Aktiv => 'Aktiv',
|
|
self::Gesperrt => 'Gesperrt',
|
|
self::Geloescht => 'Gelöscht',
|
|
};
|
|
}
|
|
}
|