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

24 lines
505 B
PHP

<?php
namespace App\Enums\Promotions;
enum PromotionDistributionNetworkEnum : int {
case gms = 1;
case hd = 2;
case rhd = 3;
case export = 4;
public function label(): string {
return static::getLabel($this);
}
public static function getLabel(self $value): string {
return match ($value) {
self::gms => __('GMS'),
self::hd => __('HD'),
self::rhd => __('RHD'),
self::export => __('Export'),
};
}
}