Files
bagicms/app/Enums/TaxonomyType.php
T
2026-07-23 10:01:02 +07:00

26 lines
443 B
PHP

<?php
namespace App\Enums;
enum TaxonomyType: string
{
case CATEGORY = 'category';
case TAG = 'tag';
public function label(): string
{
return match ($this) {
self::CATEGORY => 'Kategori',
self::TAG => 'Tag',
};
}
public function value(): string
{
return match ($this) {
self::CATEGORY => 'category',
self::TAG => 'tag',
};
}
}