Merge branch 'issue-7' into 'front-create'

Updated SignEnums with the new list and added pictures

See merge request ldc-web/projets/lionor!5
This commit is contained in:
Vincent BRIDIER 2023-06-21 10:42:44 +00:00
commit 7b83342e76
11 changed files with 43 additions and 38 deletions

View file

@ -20,9 +20,9 @@ final class CivilityEnum extends BaseEnum
protected static function values(): array
{
return [
'monsieur' => 0,
'madame' => 1,
'mademoiselle' => 2,
'monsieur' => 1,
'madame' => 2,
'mademoiselle' => 3,
];
}

View file

@ -24,10 +24,10 @@ final class CookingModeEnum extends BaseEnum
protected static function values(): array
{
return [
'withoutCooking' => 0,
'oven' => 1,
'stove' => 2,
'stewpan' => 3
'withoutCooking' => 1,
'oven' => 2,
'stove' => 3,
'stewpan' => 4
];
}

View file

@ -22,9 +22,9 @@ final class DifficultyEnum extends BaseEnum
protected static function values(): array
{
return [
'easy' => 0,
'medium' => 1,
'hard' => 2
'easy' => 1,
'medium' => 2,
'hard' => 3
];
}

View file

@ -22,12 +22,12 @@ final class NutriscoreEnum extends BaseEnum
protected static function values(): array
{
return [
'noLetter' => 0,
'aLetter' => 1,
'bLetter' => 2,
'cLetter' => 3,
'dLetter' => 4,
'eLetter' => 5
'noLetter' => 1,
'aLetter' => 2,
'bLetter' => 3,
'cLetter' => 4,
'dLetter' => 5,
'eLetter' => 6
];
}

View file

@ -21,10 +21,10 @@ final class PreparationTimeEnum extends BaseEnum
protected static function values(): array
{
return [
'interval1' => 0,
'interval2' => 1,
'interval3' => 2,
'interval4' => 3,
'interval1' => 1,
'interval2' => 2,
'interval3' => 3,
'interval4' => 4,
];
}

View file

@ -5,16 +5,18 @@ namespace App\Enums;
use Kwaadpepper\Enum\BaseEnum;
/**
* @method static self pasDenseigne()
* Pas d'enseigne
* @method static self leclerc()
* Enseigne Leclerc
* @method static self systemeU()
* Enseigne Système U
* @method static self carrefour()
* Enseigne Carrefour
* Leclerc
* @method static self auchan()
* Enseigne Auchan
* Auchan
* @method static self carrefour()
* Carrefour
* @method static self match()
* Match
* @method static self intermarche()
* Intermarche
* @method static self cora()
* Cora
*/
final class SignsEnum extends BaseEnum
{
@ -26,11 +28,12 @@ final class SignsEnum extends BaseEnum
protected static function values(): array
{
return [
'pasDenseigne' => 0,
'leclerc' => 1,
'systemeU' => 2,
'auchan' => 2,
'carrefour' => 3,
'auchan' => 4,
'match' => 4,
'intermarche' => 5,
'cora' => 6,
];
}
@ -42,11 +45,12 @@ final class SignsEnum extends BaseEnum
protected static function labels(): array
{
return [
'pasDenseigne' => 'Pas d\'enseigne',
'leclerc' => 'Leclerc',
'systemeU' => 'Système U',
'carrefour' => 'Carrefour',
'auchan' => 'Auchan',
'carrefour' => 'Carrefour',
'match' => 'Match',
'intermarche' => 'Intermarché',
'cora' => 'Cora',
];
}
@ -58,11 +62,12 @@ final class SignsEnum extends BaseEnum
protected static function stickers(): array
{
return [
'pasDenseigne' => \asset('build/assets/images/signs/logo-default.png'),
'leclerc' => \asset('build/assets/images/signs/logo-leclerc.png'),
'systemeU' => \asset('build/assets/images/signs/logo-systemeu.png'),
'carrefour' => \asset('build/assets/images/signs/logo-carrefour.png'),
'auchan' => \asset('build/assets/images/signs/logo-auchan.png'),
'auchan' => \asset('build/assets/images/signs/logo-auchan.jpg'),
'carrefour' => \asset('build/assets/images/signs/logo-carrefour.jpg'),
'match' => \asset('build/assets/images/signs/logo-match.png'),
'intermarche' => \asset('build/assets/images/signs/logo-intermarche.png'),
'cora' => \asset('build/assets/images/signs/logo-cora.png'),
];
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB