Files
breadcrumb-the-shire/core/Domain/Taxonomy/TenantStatus.php

28 lines
520 B
PHP
Raw Normal View History

2026-03-04 15:56:58 +01:00
<?php
namespace MintyPHP\Domain\Taxonomy;
enum TenantStatus: string
{
use SupportsStringTaxonomy;
case Active = 'active';
case Inactive = 'inactive';
public function labelToken(): string
{
return match ($this) {
self::Active => 'Active',
self::Inactive => 'Inactive',
};
}
public function badgeVariant(): string
{
return match ($this) {
self::Active => 'success',
self::Inactive => 'danger',
};
}
}