Files
bagicms/app/Enums/TaxonomyType.php
2026-07-23 12:50:03 +07:00

18 lines
278 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',
};
}
}