Merge branch 'Enums' into 'develop'
add Enums See merge request ldc-web/projets/startcoq!3
This commit is contained in:
commit
91b8732434
34 changed files with 1068 additions and 2 deletions
40
app/Enums/Ingredients/IngredientFamilyEnum.php
Normal file
40
app/Enums/Ingredients/IngredientFamilyEnum.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Ingredients;
|
||||
|
||||
enum IngredientFamilyEnum : int {
|
||||
case alcool = 1;
|
||||
case flavor = 2;
|
||||
case naturalCasings = 3;
|
||||
case groceryStore = 4;
|
||||
case spicesHerbs = 5;
|
||||
case flourBreadcrumbs = 6;
|
||||
case fruitsVegetables = 7;
|
||||
case aromaticMixMarinade = 8;
|
||||
case functionalMixSimpleIngredients = 9;
|
||||
case meatProducts = 10;
|
||||
case sauces = 11;
|
||||
case dairyProducts = 12;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::alcool => __('Alcool'),
|
||||
self::flavor => __('Arôme'),
|
||||
self::naturalCasings => __('Boyaux Naturels'),
|
||||
self::groceryStore => __('Épicerie'),
|
||||
self::spicesHerbs => __('Épices et aromates'),
|
||||
self::flourBreadcrumbs => __('Farine / Chapelure'),
|
||||
self::fruitsVegetables => __('Fruits et légumes'),
|
||||
self::aromaticMixMarinade => __('Mix aromatique / Marinade'),
|
||||
self::functionalMixSimpleIngredients => __('Mix fonctionnel / ingredients simples'),
|
||||
self::meatProducts => __('Produits carnés'),
|
||||
self::sauces => __('Sauces'),
|
||||
self::dairyProducts => __('Produits laitiers'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
42
app/Enums/Ingredients/IngredientFunctionEnum.php
Normal file
42
app/Enums/Ingredients/IngredientFunctionEnum.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Ingredients;
|
||||
|
||||
enum IngredientFunctionEnum : int {
|
||||
case dye = 1;
|
||||
case antiOxidant = 2;
|
||||
case starch = 3;
|
||||
case curator = 4;
|
||||
case freezingAgent = 5;
|
||||
case sweetener = 6;
|
||||
case stabilizer = 7;
|
||||
case emulsifier = 8;
|
||||
case thickener = 9;
|
||||
case sugar = 10;
|
||||
case salt = 11;
|
||||
case fiber = 12;
|
||||
case protein = 13;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::dye => __('Colorant'),
|
||||
self::antiOxidant => __('Anti-oxidant'),
|
||||
self::starch => __('Amidon'),
|
||||
self::curator => __('Conservateur'),
|
||||
self::freezingAgent => __('Gelifiant'),
|
||||
self::sweetener => __('Edulcorant'),
|
||||
self::stabilizer => __('Stabilisateur'),
|
||||
self::emulsifier => __('Emulsifiant'),
|
||||
self::thickener => __('Epaississant'),
|
||||
self::sugar => __('Sucre'),
|
||||
self::salt => __('Sel'),
|
||||
self::fiber => __('Fibre'),
|
||||
self::protein => __('Protéine'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
26
app/Enums/Ingredients/IngredientOriginEnum.php
Normal file
26
app/Enums/Ingredients/IngredientOriginEnum.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Ingredients;
|
||||
|
||||
enum IngredientOriginEnum : int {
|
||||
case magazine = 1;
|
||||
case photo = 2;
|
||||
case web = 3;
|
||||
case mail = 4;
|
||||
case salon = 5;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::magazine => __('Magazine'),
|
||||
self::photo => __('Photo de rayon'),
|
||||
self::web => __('Web'),
|
||||
self::mail => __('Fournisseur/Mail'),
|
||||
self::salon => __('Salon')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
24
app/Enums/Ingredients/IngredientPackagingEnum.php
Normal file
24
app/Enums/Ingredients/IngredientPackagingEnum.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Ingredients;
|
||||
|
||||
enum IngredientPackagingEnum : int {
|
||||
case fees = 1;
|
||||
case pasteurizedSterilized = 2;
|
||||
case frozen = 3;
|
||||
case bagDehydrated = 4;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::fees => __('Frais'),
|
||||
self::pasteurizedSterilized => __('Pasteurisé / Stérilisé'),
|
||||
self::frozen => __('Surgelé'),
|
||||
self::bagDehydrated => __('Sac / déshydraté'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
40
app/Enums/KeywordCategoryEnum.php
Normal file
40
app/Enums/KeywordCategoryEnum.php
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Ingredients;
|
||||
|
||||
enum KeywordCategoryEnum : string {
|
||||
case ingredientPleasure = "ingredient_pleasure";
|
||||
case ingredientPracticality = "ingredient_practicality";
|
||||
case ingredientHealth = "ingredient_health";
|
||||
case productPleasure = "product_pleasure";
|
||||
case productShape = "product_shape";
|
||||
case productPracticality = "product_practicality";
|
||||
case productHealth = "product_health";
|
||||
case productEthics = "product_ethics";
|
||||
case packagingPleasure = "packaging_pleasure";
|
||||
case packagingPracticality = "packaging_practicality";
|
||||
case packagingEthics = "packaging_ethics";
|
||||
case packagingDesign = "packaging_design";
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::ingredientPleasure => __('IngredientPleasure'),
|
||||
self::ingredientPracticality => __('IngredientPracticality'),
|
||||
self::ingredientHealth => __('IngredientHealth'),
|
||||
self::productPleasure => __('ProductPleasure'),
|
||||
self::productShape => __('ProductShape'),
|
||||
self::productPracticality => __('ProductPracticality'),
|
||||
self::productHealth => __('ProductHealth'),
|
||||
self::productEthics => __('productEthics'),
|
||||
self::packagingPleasure => __('packagingPleasure'),
|
||||
self::packagingPracticality => __('packagingPracticality'),
|
||||
self::packagingEthics => __('packagingEthics'),
|
||||
self::packagingDesign => __('PackagingDesign'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
36
app/Enums/Packaging/PackagingBenefitEnum.php
Normal file
36
app/Enums/Packaging/PackagingBenefitEnum.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Packaging;
|
||||
|
||||
enum PackagingBenefitEnum : int {
|
||||
case resistance = 1;
|
||||
case recyclability = 2;
|
||||
case presentation = 3;
|
||||
case openingClosing = 4;
|
||||
case toaster = 5;
|
||||
case traditionalOven = 6;
|
||||
case microwaveOven = 7;
|
||||
case communication = 8;
|
||||
case barbecue = 9;
|
||||
case others = 10;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::resistance => __('Résistance'),
|
||||
self::recyclability => __('Recyclabilité'),
|
||||
self::presentation => __('Présentation'),
|
||||
self::openingClosing => __('Ouverture/Fermeture'),
|
||||
self::toaster => __('Grille pain'),
|
||||
self::traditionalOven => __('Four Traditionnel'),
|
||||
self::microwaveOven => __('Four micro-onde'),
|
||||
self::communication => __('Communication'),
|
||||
self::barbecue => __('Barbecue'),
|
||||
self::others => __('Autres')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
34
app/Enums/Packaging/PackagingMaterialEnum.php
Normal file
34
app/Enums/Packaging/PackagingMaterialEnum.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Packaging;
|
||||
|
||||
enum PackagingMaterialEnum : int {
|
||||
case plactic = 1;
|
||||
case paper = 2;
|
||||
case wood = 3;
|
||||
case aluminium = 4;
|
||||
case inox = 5;
|
||||
case glass = 6;
|
||||
case ceramic = 7;
|
||||
case materials = 8;
|
||||
case others = 9;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::plactic => __('Plastique'),
|
||||
self::paper => __('Carton/Papier'),
|
||||
self::wood => __('Bois/Osier'),
|
||||
self::aluminium => __('Aluminium'),
|
||||
self::inox => __('Acier/Inox'),
|
||||
self::glass => __('Verre'),
|
||||
self::ceramic => __('Céramique/Terre cuite/Grès'),
|
||||
self::materials => __('Multi Matériaux'),
|
||||
self::others => __('Autres')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
26
app/Enums/Packaging/PackagingOriginEnum.php
Normal file
26
app/Enums/Packaging/PackagingOriginEnum.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Packaging;
|
||||
|
||||
enum PackagingOriginEnum : int {
|
||||
case magazine = 1;
|
||||
case photo = 2;
|
||||
case web = 3;
|
||||
case mail = 4;
|
||||
case salon = 5;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::magazine => __('Magazine'),
|
||||
self::photo => __('Photo de rayon'),
|
||||
self::web => __('Web'),
|
||||
self::mail => __('Fournisseur/Mail'),
|
||||
self::salon => __('Salon')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
36
app/Enums/Packaging/PackagingTypeEnum.php
Normal file
36
app/Enums/Packaging/PackagingTypeEnum.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Packaging;
|
||||
|
||||
enum PackagingTypeEnum : int {
|
||||
case box = 1;
|
||||
case bag = 2;
|
||||
case jar = 3;
|
||||
case bottle = 4;
|
||||
case film = 5;
|
||||
case sleeves = 6;
|
||||
case blister = 7;
|
||||
case sheathCase = 8;
|
||||
case tag = 9;
|
||||
case others = 10;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::box => __('Boîte/Barquette/Bol'),
|
||||
self::bag => __('Sac/Sachet'),
|
||||
self::jar => __('Pot'),
|
||||
self::bottle => __('Bouteille/Gobelet/Flacon'),
|
||||
self::film => __('Film'),
|
||||
self::sleeves => __('Sleeves'),
|
||||
self::blister => __('Tube/Blister/Feuille'),
|
||||
self::sheathCase => __('Étui fourreau'),
|
||||
self::tag => __('Étiquettes'),
|
||||
self::others => __('Autres')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
20
app/Enums/Packaging/PackagingWatchTypeEnum.php
Normal file
20
app/Enums/Packaging/PackagingWatchTypeEnum.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Packaging;
|
||||
|
||||
enum PackagingWatchTypeEnum : int {
|
||||
case product = 1;
|
||||
case packaging = 2;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::product => __('Produit Fini'),
|
||||
self::packaging => __('Emballage'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
30
app/Enums/Process/ProcessBenefitEnum.php
Normal file
30
app/Enums/Process/ProcessBenefitEnum.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Process;
|
||||
|
||||
enum ProcessBenefitEnum : int {
|
||||
case rateGain = 1;
|
||||
case capacityGain = 2;
|
||||
case efficiencyGain = 3;
|
||||
case laborGain = 4;
|
||||
case packagingGain = 5;
|
||||
case energyGain = 6;
|
||||
case others = 7;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::rateGain => __('Gain Cadence'),
|
||||
self::capacityGain => __('Gain capacité'),
|
||||
self::efficiencyGain => __('Gain rendement'),
|
||||
self::laborGain => __('Gain main d\'oeuvre'),
|
||||
self::packagingGain => __('Conso Emballage'),
|
||||
self::energyGain => __('Conso Energie'),
|
||||
self::others => __('Autres')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
30
app/Enums/Process/ProcessMeatPreparationEnum.php
Normal file
30
app/Enums/Process/ProcessMeatPreparationEnum.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Process;
|
||||
|
||||
enum ProcessMeatPreparationEnum : int {
|
||||
case cutting = 1;
|
||||
case mixture = 2;
|
||||
case grinding = 3;
|
||||
case nibbling = 4;
|
||||
case churning = 5;
|
||||
case injection = 6;
|
||||
case others = 7;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::cutting => __('Cutterage'),
|
||||
self::mixture => __('Mélange'),
|
||||
self::grinding => __('Broyage'),
|
||||
self::nibbling => __('Grignotage'),
|
||||
self::churning => __('Barattage'),
|
||||
self::injection => __('Injection'),
|
||||
self::others => __('Autres')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
26
app/Enums/Process/ProcessOriginEnum.php
Normal file
26
app/Enums/Process/ProcessOriginEnum.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Process;
|
||||
|
||||
enum ProcessOriginEnum : int {
|
||||
case magazine = 1;
|
||||
case photo = 2;
|
||||
case web = 3;
|
||||
case mail = 4;
|
||||
case salon = 5;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::magazine => __('Magazine'),
|
||||
self::photo => __('Photo de rayon'),
|
||||
self::web => __('Web'),
|
||||
self::mail => __('Fournisseur/Mail'),
|
||||
self::salon => __('Salon')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
28
app/Enums/Process/ProcessPrimaryPackingEnum.php
Normal file
28
app/Enums/Process/ProcessPrimaryPackingEnum.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Process;
|
||||
|
||||
enum ProcessPrimaryPackingEnum : int {
|
||||
case sealing = 1;
|
||||
case thermoforming = 2;
|
||||
case verticalBagging = 3;
|
||||
case horizontalBagging = 4;
|
||||
case skin = 5;
|
||||
case others = 6;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::sealing => __('Sealing'),
|
||||
self::thermoforming => __('Thermoformage'),
|
||||
self::verticalBagging => __('Ensachage Vertical'),
|
||||
self::horizontalBagging => __('Ensachage Horizontal'),
|
||||
self::skin => __('Skin'),
|
||||
self::others => __('Autres')
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
22
app/Enums/Process/ProcessWatchTypeEnum.php
Normal file
22
app/Enums/Process/ProcessWatchTypeEnum.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Process;
|
||||
|
||||
enum ProcessWatchTypeEnum : int {
|
||||
case product = 1;
|
||||
case packaging = 2;
|
||||
case process = 3;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::product => __('Produit Fini'),
|
||||
self::packaging => __('Emballage'),
|
||||
self::process => __('Process'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
28
app/Enums/Products/ProductCertificationEnum.php
Normal file
28
app/Enums/Products/ProductCertificationEnum.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductCertificationEnum : int {
|
||||
case bioAB = 1;
|
||||
case labelRouge = 2;
|
||||
case certifiedCQ = 3;
|
||||
case standard = 4;
|
||||
case freeRange = 5;
|
||||
case others = 6;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::bioAB => __('Bio AB ou Européen'),
|
||||
self::labelRouge => __('Label Rouge'),
|
||||
self::certifiedCQ => __('Certifié CQ'),
|
||||
self::standard => __('Standard'),
|
||||
self::freeRange => __('Free Range'),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
38
app/Enums/Products/ProductClaimEnum.php
Normal file
38
app/Enums/Products/ProductClaimEnum.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductClaimEnum : int {
|
||||
case productOfYear = 1;
|
||||
case omega3 = 2;
|
||||
case withoutOgm = 3;
|
||||
case withoutGluten = 4;
|
||||
case withoutAdditives = 5;
|
||||
case christmas = 6;
|
||||
case vegetarian = 7;
|
||||
case lightweight = 8;
|
||||
case halal = 9;
|
||||
case highVitamins = 10;
|
||||
case others = 11;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::productOfYear => __('Produit de l\'année'),
|
||||
self::omega3 => __('Bleu Blanc Coeur, source d\'Omega 3'),
|
||||
self::withoutOgm => __('Sans OGM'),
|
||||
self::withoutGluten => __('Sans gluten'),
|
||||
self::withoutAdditives => __('Sans additif, sans colorant, sans conservateur, 100% simple, sans polyphosphate, sans sel nitrité'),
|
||||
self::withoutAntibiotics => __('Sans Antibiotique'),
|
||||
self::vegetarian => __('Vegan'),
|
||||
self::lightweight => __('Allégé'),
|
||||
self::halal => __('Halal, Casher'),
|
||||
self::highVitamins => __('Riche en protéines, fibres, calcium… '),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
24
app/Enums/Products/ProductDistributionNetworkEnum.php
Normal file
24
app/Enums/Products/ProductDistributionNetworkEnum.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductDistributionNetworkEnum : int {
|
||||
case gms = 1;
|
||||
case freezer = 2;
|
||||
case restauration = 3;
|
||||
case product = 4;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::gms => __('GMS / Hard discount / Commerce de détail'),
|
||||
self::freezer => __('Home service/ Freezer Center'),
|
||||
self::restauration => __('Restauration'),
|
||||
self::product => __('Produit pour industrie agro-alimentaire'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
28
app/Enums/Products/ProductGeoAreaEnum.php
Normal file
28
app/Enums/Products/ProductGeoAreaEnum.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductGeoAreaEnum : int {
|
||||
case french = 1;
|
||||
case european = 2;
|
||||
case asia = 3;
|
||||
case america = 4;
|
||||
case africa = 5;
|
||||
case oceania = 6;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::french => __('France'),
|
||||
self::european => __('Europe'),
|
||||
self::asia => __('Asie'),
|
||||
self::america => __('Amérique'),
|
||||
self::africa => __('Afrique'),
|
||||
self::oceania => __('Océanie'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
30
app/Enums/Products/ProductOriginEnum.php
Normal file
30
app/Enums/Products/ProductOriginEnum.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductOriginEnum : int {
|
||||
case frenchPreparation = 1;
|
||||
case frenchProduct = 2;
|
||||
case igp = 3;
|
||||
case regionalOrigins = 4;
|
||||
case aoc = 5;
|
||||
case ue = 6;
|
||||
case others = 7;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::frenchPreparation => __('Né, élevé et préparé en France'),
|
||||
self::frenchProduct => __('Produit en France'),
|
||||
self::igp => __('IGP'),
|
||||
self::regionalOrigins => __('Origines régionales'),
|
||||
self::aoc => __('AOC'),
|
||||
self::ue => __('UE'),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
42
app/Enums/Products/ProductRangeEnum.php
Normal file
42
app/Enums/Products/ProductRangeEnum.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductRangeEnum : int {
|
||||
case crus = 1;
|
||||
case elaboratedRaw = 2;
|
||||
case culinaryAids = 3;
|
||||
case cooked = 4;
|
||||
case smoked = 5;
|
||||
case cookingSauce = 6;
|
||||
case breaded = 7;
|
||||
case rawMeat = 8;
|
||||
case cookedMeats = 9;
|
||||
case farcis = 10;
|
||||
case plant = 11;
|
||||
case frozenSpecific = 12;
|
||||
case others = 13;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::crus => __('Crus'),
|
||||
self::elaboratedRaw => __('Élaborés crus'),
|
||||
self::culinaryAids => __('Aides culinaires'),
|
||||
self::cooked => __('Cuits'),
|
||||
self::smoked => __('Fumés, confits ou séchés'),
|
||||
self::ocokingSauce => __('Cuisine en sauce'),
|
||||
self::breaded => __('Panés'),
|
||||
self::rawMeat => __('Charcuterie crue'),
|
||||
self::cookedMeats => __('Charcuterie cuite'),
|
||||
self::farcis => __('Farcis'),
|
||||
self::plant => __('Végétal'),
|
||||
self::frozenSpecific => __('Spécifique surgelé'),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
34
app/Enums/Products/ProductRayEnum.php
Normal file
34
app/Enums/Products/ProductRayEnum.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Products;
|
||||
|
||||
enum ProductRayEnum : int {
|
||||
case butchery = 1;
|
||||
case poultry = 2;
|
||||
case freshlyPackaged = 3;
|
||||
case roastery = 4;
|
||||
case caterer = 5;
|
||||
case creamery = 6;
|
||||
case groceryStore = 7;
|
||||
case frozen = 8;
|
||||
case others = 9;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self:: butchery => __('Boucherie'),
|
||||
self::poultry => __('Volaille'),
|
||||
self::freshlyPackaged => __('Frais emballé'),
|
||||
self::roastery => __('Rôtisserie'),
|
||||
self::caterer => __('Traiteur'),
|
||||
self::creamery => __('Crémerie'),
|
||||
self::groceryStore => __('Épicerie'),
|
||||
self::frozen => __('Surgelé'),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
30
app/Enums/Products/ProductSourceEnum.php
Normal file
30
app/Enums/Products/ProductSourceEnum.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?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'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
22
app/Enums/Promotions/PromotionAngleEnum.php
Normal file
22
app/Enums/Promotions/PromotionAngleEnum.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?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'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
24
app/Enums/Promotions/PromotionDistributionNetworkEnum.php
Normal file
24
app/Enums/Promotions/PromotionDistributionNetworkEnum.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Promotions;
|
||||
|
||||
enum PromotionDistributionNetworkEnum : int {
|
||||
case gms = 1;
|
||||
case hd = 2;
|
||||
case rhd = 3;
|
||||
case export = 4;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::gms => __('GMS'),
|
||||
self::hd => __('HD'),
|
||||
self::rhd => __('RHD'),
|
||||
self::export => __('Export'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
28
app/Enums/Promotions/PromotionEventEnum.php
Normal file
28
app/Enums/Promotions/PromotionEventEnum.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Promotions;
|
||||
|
||||
enum PromotionEventEnum : int {
|
||||
case birthday = 1;
|
||||
case summer = 2;
|
||||
case filmLicense = 3;
|
||||
case christmas = 4;
|
||||
case celebrityPartnership = 5;
|
||||
case sport = 6;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::birthday => __('Anniversaire'),
|
||||
self::summer => __('Été'),
|
||||
self::filmLicense => __('Licence film / Dessin animé'),
|
||||
self::christmas => __('Noël'),
|
||||
self::celebrityPartnership => __('Partenariat célébrité'),
|
||||
self::sport => __('Sport'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Promotions;
|
||||
|
||||
enum PromotionLabelDistributionNetworkEnum : int {
|
||||
case allDistributions = 1;
|
||||
case lidle = 2;
|
||||
case aldi = 3;
|
||||
case erteco = 4;
|
||||
case netto = 5;
|
||||
case leaderPrice = 6;
|
||||
case noLvl2 = 7;
|
||||
case others = 8;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::allDistributions => __('Toutes les enseignes'),
|
||||
self::lidle => __('LIDL'),
|
||||
self::aldi => __('ALDI'),
|
||||
self::erteco => __('ERTECO'),
|
||||
self::netto => __('NETTO'),
|
||||
self::leaderPrice => __('LEADER PRICE'),
|
||||
self::noLvl2 => __('Pas de niveau 2'),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
38
app/Enums/Promotions/PromotionLabelEnum.php
Normal file
38
app/Enums/Promotions/PromotionLabelEnum.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?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'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
26
app/Enums/Promotions/PromotionSourceEnum.php
Normal file
26
app/Enums/Promotions/PromotionSourceEnum.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Promotions;
|
||||
|
||||
enum PromotionSourceEnum : int {
|
||||
case fieldTour = 1;
|
||||
case headFeedback = 2;
|
||||
case web = 3;
|
||||
case press = 4;
|
||||
case events = 5;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::fieldTour => __('Tournée terrain'),
|
||||
self::headFeedback => __('Remontée chef Secteur'),
|
||||
self::web => __('Pige web'),
|
||||
self::press => __('Pige presse'),
|
||||
self::events => __('Salon / Évenementiel'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
26
app/Enums/Promotions/PromotionTargetEnum.php
Normal file
26
app/Enums/Promotions/PromotionTargetEnum.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Promotions;
|
||||
|
||||
enum PromotionTargetEnum : int {
|
||||
case women = 1;
|
||||
case man = 2;
|
||||
case junior = 3;
|
||||
case senior = 4;
|
||||
case allTargets = 5;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::women => __('Femme'),
|
||||
self::man => __('Homme'),
|
||||
self::junior => __('Junior'),
|
||||
self::senior => __('Senior'),
|
||||
self::allTargets => __('Toutes cibles'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
38
app/Enums/Promotions/PromotionTypeEnum.php
Normal file
38
app/Enums/Promotions/PromotionTypeEnum.php
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Promotions;
|
||||
|
||||
enum PromotionTypeEnum : 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'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
42
app/Enums/Surveys/SurveyCustomerEnum.php
Normal file
42
app/Enums/Surveys/SurveyCustomerEnum.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Surveys;
|
||||
|
||||
enum SurveyCustomerEnum : int {
|
||||
case francoscopie = 1;
|
||||
case packaging = 2;
|
||||
case innovation = 3;
|
||||
case snacking = 4;
|
||||
case vegetarian = 5;
|
||||
case christmas = 6;
|
||||
case barbecue = 7;
|
||||
case sustainableDevelopment = 8;
|
||||
case labelRouge = 9;
|
||||
case bio = 10;
|
||||
case certified = 11;
|
||||
case bbc = 12;
|
||||
case others = 13;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::francoscopie => __('Francoscopie'),
|
||||
self::packaging => __('Emaballages'),
|
||||
self::innovation => __('Innovation'),
|
||||
self::snacking => __('Snacking'),
|
||||
self::vegetarian => __('Vegan'),
|
||||
self::christmas => __('Noel'),
|
||||
self::barbecue => __('Barbecue'),
|
||||
self::sustainableDevelopment => __('Développement durable'),
|
||||
self::labelRouge => __('Label Rouge'),
|
||||
self::bio => __('BIO'),
|
||||
self::certified => __('Certifié'),
|
||||
self::bbc => __('BBC'),
|
||||
self::others => __('Autres'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
24
app/Enums/Surveys/SurveyDistributionNetworkEnum.php
Normal file
24
app/Enums/Surveys/SurveyDistributionNetworkEnum.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
namespace App\Enums\Surveys;
|
||||
|
||||
enum SurveyDistributionNetworkEnum : int {
|
||||
case gms = 1;
|
||||
case freezer = 2;
|
||||
case restauration = 3;
|
||||
case product = 4;
|
||||
|
||||
public function label(): string {
|
||||
return static::getLabel($this);
|
||||
}
|
||||
|
||||
public static function getLabel(self $value): string {
|
||||
return match ($value) {
|
||||
self::gms => __('GMS / Hard discount / Commerce de détail'),
|
||||
self::freezer => __('Home service/ Freezer Center'),
|
||||
self::restauration => __('Restauration'),
|
||||
self::product => __('Produit pour industrie agro-alimentaire'),
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -209,7 +209,59 @@ return [
|
|||
*/
|
||||
|
||||
'aliases' => Facade::defaultAliases()->merge([
|
||||
// 'ExampleClass' => App\Example\ExampleClass::class,
|
||||
/**
|
||||
* Enums Ingredients
|
||||
*/
|
||||
'IngredientFamilyEnum' => App\Enums\Ingredients\IngredientFamilyEnum::class,
|
||||
'IngredientFunctionEnum' => App\Enums\Ingredients\IngredientFunctionEnum::class,
|
||||
'IngredientOriginEnum' => App\Enums\Ingredients\IngredientOriginEnum::class,
|
||||
'IngredientPackagingEnum' => App\Enums\Ingredients\IngredientPackagingEnum::class,
|
||||
/**
|
||||
* Enums Packaging
|
||||
*/
|
||||
'PackagingBenefitEnum' => App\Enums\Packaging\PackagingBenefitEnum::class,
|
||||
'PackagingKeywordCategoryEnum' => App\Enums\Packaging\PackagingKeywordCategoryEnum::class,
|
||||
'PackagingMaterialEnum' => App\Enums\Packaging\PackagingMaterialEnum::class,
|
||||
'PackagingOriginEnum' => App\Enums\Packaging\PackagingOriginEnum::class,
|
||||
'PackagingTypeEnum' => App\Enums\Packaging\PackagingTypeEnum::class,
|
||||
/**
|
||||
* Enums Process
|
||||
*/
|
||||
'ProcessBenefitEnum' => App\Enums\Process\ProcessBenefitEnum::class,
|
||||
'ProcessKeywordCategoryEnum' => App\Enums\Process\ProcessKeywordCategoryEnum::class,
|
||||
'ProcessMeatPreparationEnum' => App\Enums\Process\ProcessMeatPreparationEnum::class,
|
||||
'ProcessOriginEnum' => App\Enums\Process\ProcessOriginEnum::class,
|
||||
'ProcessPrimaryPackingEnum' => App\Enums\Process\ProcessPrimaryPackingEnum::class,
|
||||
/**
|
||||
* Enums Products
|
||||
*/
|
||||
'ProductCertificationEnum' => App\Enums\Products\ProductCertificationEnum::class,
|
||||
'ProductClaimEnum' => App\Enums\Products\ProductClaimEnum::class,
|
||||
'ProductDistributionNetworkEnum' => App\Enums\Products\ProductDistributionNetworkEnum::class,
|
||||
'ProductGeoAreaEnum' => App\Enums\Products\ProductGeoAreaEnum::class,
|
||||
'ProductOriginEnum' => App\Enums\Products\ProductOriginEnum::class,
|
||||
'ProductRangeEnum' => App\Enums\Products\ProductRangeEnum::class,
|
||||
'ProductRayEnum' => App\Enums\Products\ProductRayEnum::class,
|
||||
'ProductSourceEnum' => App\Enums\Products\ProductSourceEnum::class,
|
||||
/**
|
||||
* Enums Promotions
|
||||
*/
|
||||
'PromotionAngleEnum' => App\Enums\Promotions\PromotionAngleEnum::class,
|
||||
'PromotionDistributionNetworkEnum' => App\Enums\Promotions\PromotionDistributionNetworkEnum::class,
|
||||
'PromotionEventEnum' => App\Enums\Promotions\PromotionEventEnum::class,
|
||||
'PromotionLabelDistributionNetworkEnum' => App\Enums\Promotions\PromotionLabelDistributionNetworkEnum::class,
|
||||
'PromotionLabelEnum' => App\Enums\Promotions\PromotionLabelEnum::class,
|
||||
'PromotionSourceEnum' => App\Enums\Promotions\PromotionSourceEnum::class,
|
||||
'PromotionTargetEnum' => App\Enums\Promotions\PromotionTargetEnum::class,
|
||||
'PromotionTypeEnum' => App\Enums\Promotions\PromotionTypeEnum::class,
|
||||
/**
|
||||
* Enums Surveys
|
||||
*/
|
||||
'SurveyCustomerEnum' => App\Enums\Surveys\SurveyCustomerEnum::class,
|
||||
'SurveyDistributionNetworkEnum' => App\Enums\Surveys\SurveyDistributionNetworkEnum::class,
|
||||
/**
|
||||
* Others Enums
|
||||
*/
|
||||
'KeywordCategoryEnum' => App\Enums\Surveys\KeywordCategoryEnum::class
|
||||
])->toArray(),
|
||||
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue