43 lines
1.7 KiB
PHP
43 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use App\Traits\Enums\BaseEnum;
|
|
|
|
enum KeywordCategoryEnum : string
|
|
{
|
|
use BaseEnum;
|
|
|
|
case ingredientPleasure = "ingredient_pleasure";
|
|
case ingredientPracticality = "ingredient_practicality";
|
|
case ingredientHealth = "ingredient_health";
|
|
case ingredienEthics = "ingredient_ethics";
|
|
case productPleasure = "product_pleasure";
|
|
case productShape = "product_shape";
|
|
case productPracticality = "product_practicality";
|
|
case productHealth = "product_health";
|
|
case productEthics = "product_ethics";
|
|
case packagingPleasure = "packaging_pleasure";
|
|
case packagingPracticality = "packaging_practicality";
|
|
case packagingEthics = "packaging_ethics";
|
|
case packagingDesign = "packaging_design";
|
|
|
|
/**
|
|
* Custom added functions definition
|
|
*/
|
|
private const LABELS = [
|
|
self::ingredientPleasure->name => 'IngredientPleasure',
|
|
self::ingredientPracticality->name => 'IngredientPracticality',
|
|
self::ingredientHealth->name => 'IngredientHealth',
|
|
self::ingredienEthics->name => 'IngredientEthics',
|
|
self::productPleasure->name => 'ProductPleasure',
|
|
self::productShape->name => 'ProductShape',
|
|
self::productPracticality->name => 'ProductPracticality',
|
|
self::productHealth->name => 'ProductHealth',
|
|
self::productEthics->name => 'ProductEthics',
|
|
self::packagingPleasure->name => 'PackagingPleasure',
|
|
self::packagingPracticality->name => 'PackagingPracticality',
|
|
self::packagingEthics->name => 'PackagingEthics',
|
|
self::packagingDesign->name => 'PackagingDesign',
|
|
];
|
|
}
|