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

22 lines
454 B
PHP

<?php
namespace App\Enums\Promotions;
enum PromotionAngleEnum : int {
case brand = 1;
case eco = 2;
case fun = 3;
public function label(): string {
return static::getLabel($this);
}
public static function getLabel(self $value): string {
return match ($value) {
self::brand => __('Démarche de la marque'),
self::eco => __('Eco'),
self::fun => __('Fun'),
};
}
}