24 lines
505 B
PHP
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'),
|
|
};
|
|
}
|
|
|
|
}
|