40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Enums\Products;
|
|
|
|
use App\Traits\Enums\BaseEnum;
|
|
|
|
enum ClaimEnum : int
|
|
{
|
|
use BaseEnum;
|
|
|
|
case productOfYear = 1;
|
|
case omega3 = 2;
|
|
case withoutOgm = 3;
|
|
case withoutGluten = 4;
|
|
case withoutAdditives = 5;
|
|
case withoutAntibiotics = 6;
|
|
case vegetarian = 7;
|
|
case lightweight = 8;
|
|
case halal = 9;
|
|
case highVitamins = 10;
|
|
case others = 99;
|
|
|
|
/**
|
|
* Custom added functions definition
|
|
*/
|
|
private const LABELS = [
|
|
self::productOfYear->name => 'Produit de l\'année',
|
|
self::omega3->name => 'Bleu Blanc Coeur, source d\'Omega 3',
|
|
self::withoutOgm->name => 'Sans OGM',
|
|
self::withoutGluten->name => 'Sans gluten',
|
|
self::withoutAdditives->name => 'Sans additif, sans colorant, sans conservateur,
|
|
100% simple, sans polyphosphate, sans sel nitrité',
|
|
self::withoutAntibiotics->name => 'Sans Antibiotique',
|
|
self::vegetarian->name => 'Vegan',
|
|
self::lightweight->name => 'Allégé',
|
|
self::halal->name => 'Halal, Casher',
|
|
self::highVitamins->name => 'Riche en protéines, fibres, calcium…',
|
|
self::others->name => 'Autres',
|
|
];
|
|
}
|