1
0
Files
breadcrumb-the-shire/lib/Domain/Taxonomy/MailLogStatus.php
2026-03-04 15:56:58 +01:00

31 lines
603 B
PHP

<?php
namespace MintyPHP\Domain\Taxonomy;
enum MailLogStatus: string
{
use SupportsStringTaxonomy;
case Queued = 'queued';
case Sent = 'sent';
case Failed = 'failed';
public function labelToken(): string
{
return match ($this) {
self::Queued => 'Queued',
self::Sent => 'Sent',
self::Failed => 'Failed',
};
}
public function badgeVariant(): string
{
return match ($this) {
self::Queued => 'info',
self::Sent => 'success',
self::Failed => 'danger',
};
}
}