30 lines
752 B
PHP
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')
|
|
};
|
|
}
|
|
|
|
}
|