presseportale/app/Enums/PressReleaseStatus.php
Kevin Adametz 5b8bdf4182
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run
12-05-2026 Frontend dev
2026-05-12 18:32:33 +02:00

23 lines
526 B
PHP

<?php
namespace App\Enums;
enum PressReleaseStatus: string
{
case Draft = 'draft';
case Review = 'review';
case Published = 'published';
case Rejected = 'rejected';
case Archived = 'archived';
public function label(): string
{
return match ($this) {
self::Draft => 'Entwurf',
self::Review => 'In Pruefung',
self::Published => 'Veroeffentlicht',
self::Rejected => 'Abgelehnt',
self::Archived => 'Archiviert',
};
}
}