ldc-startcoq/app/Enums/Process/ProcessMeatPreparationEnum.php
Alexis Gousseau 95c9dd10d5 add enums
2023-02-23 10:26:11 +01:00

30 lines
752 B
PHP

<?php
namespace App\Enums\Process;
enum ProcessMeatPreparationEnum : int {
case cutting = 1;
case mixture = 2;
case grinding = 3;
case nibbling = 4;
case churning = 5;
case injection = 6;
case others = 7;
public function label(): string {
return static::getLabel($this);
}
public static function getLabel(self $value): string {
return match ($value) {
self::cutting => __('Cutterage'),
self::mixture => __('Mélange'),
self::grinding => __('Broyage'),
self::nibbling => __('Grignotage'),
self::churning => __('Barattage'),
self::injection => __('Injection'),
self::others => __('Autres')
};
}
}