ldc-startcoq/app/Enums/Products/ProductSourceEnum.php
2023-02-28 16:38:05 +01:00

29 lines
804 B
PHP

<?php
namespace App\Enums\Products;
enum ProductSourceEnum : int {
case magazin = 1;
case web = 2;
case press = 3;
case tradeShow = 4;
case customerLounge = 5;
case consumerShow = 6;
case catalogArgumentary = 7;
public function label(): string {
return static::getLabel($this);
}
public static function getLabel(self $value): string {
return match ($value) {
self::magazin => __('Magasin'),
self::web => __('Web'),
self::press => __('Presse'),
self::tradeShow => __('Salon Professionnel'),
self::customerLounge => __('Salon Clients'),
self::consumerShow => __('Salon Grand Public'),
self::catalogArgumentary => __('Catalogue Argumentaire'),
};
}
}