forked from fa/breadcrumb-the-shire
28 lines
520 B
PHP
28 lines
520 B
PHP
<?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',
|
|
};
|
|
}
|
|
}
|