This commit is contained in:
2026-07-23 10:01:02 +07:00
commit 79f9e1d324
105 changed files with 5813 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?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',
};
}
}