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