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