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

38 lines
1.1 KiB
PHP

<?php
namespace App\Enums\Promotions;
enum PromotionLabelEnum : int {
case animation = 1;
case reduction = 2;
case fidelity = 3;
case consoGames = 4;
case promotionalFormats = 5;
case flyer = 6;
case coBranding = 7;
case perchandising = 8;
case goodies = 9;
case promotionalMaterials = 10;
case ephemeralProducts = 11;
public function label(): string {
return static::getLabel($this);
}
public static function getLabel(self $value): string {
return match ($value) {
self::animation => __('Animation'),
self::reduction => __('Réduction'),
self::fidelity => __('Fidélité'),
self::consoGames => __('Jeux Conso'),
self::promotionalFormats => __('Formats promo'),
self::flyer => __('OP Trade / Prospectus'),
self::coBranding => __('Co-branding'),
self::perchandising => __('PLV / Merchandising'),
self::goodies => __('Primes / Goodies'),
self::promotionalMaterials => __('Argumentaires Promo'),
self::ephemeralProducts => __('Produits éphèmères'),
};
}
}