28 lines
737 B
PHP
28 lines
737 B
PHP
<?php
|
|
|
|
namespace App\Enums\Process;
|
|
|
|
enum ProcessPrimaryPackingEnum : int {
|
|
case sealing = 1;
|
|
case thermoforming = 2;
|
|
case verticalBagging = 3;
|
|
case horizontalBagging = 4;
|
|
case skin = 5;
|
|
case others = 6;
|
|
|
|
public function label(): string {
|
|
return static::getLabel($this);
|
|
}
|
|
|
|
public static function getLabel(self $value): string {
|
|
return match ($value) {
|
|
self::sealing => __('Operculage'),
|
|
self::thermoforming => __('Thermoformage'),
|
|
self::verticalBagging => __('Ensachage Vertical'),
|
|
self::horizontalBagging => __('Ensachage Horizontal'),
|
|
self::skin => __('Skin'),
|
|
self::others => __('Autres')
|
|
};
|
|
}
|
|
|
|
}
|