major update
This commit is contained in:
27
lib/Domain/Taxonomy/TenantStatus.php
Normal file
27
lib/Domain/Taxonomy/TenantStatus.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user