Skip to content

Commit 40996ff

Browse files
committed
Add Data\Ingredients class
1 parent ee335cd commit 40996ff

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
/**
3+
* @author Pierre-Henry Soria <hi@ph7.me>
4+
* @copyright (c) 2019, Pierre-Henry Soria. All Rights Reserved.
5+
* @license GNU General Public License; <https://www.gnu.org/licenses/gpl-3.0.en.html>
6+
*/
7+
8+
declare(strict_types=1);
9+
10+
namespace Lifyzer\Interpreter\Health\Data;
11+
12+
final class Ingredients
13+
{
14+
public const BAD_INGREDIENTS = [
15+
'emulsifier|émulsifiant' => 3,
16+
'additive' => 3,
17+
'stabiliser' => 2,
18+
'flavor enhancer|flavour enhancer' => 1,
19+
'dextrose' => 2,
20+
'palm oil' => 2.5, // palm oil is carcinogenic (EFSA source)
21+
'oil' => 1,
22+
'firming agent' => 0.7,
23+
'calcium chloride' => 0.7, // https://www.livestrong.com/article/457871-how-does-calcium-chloride-work/
24+
'aspartame|acesulfame' => 0.4,
25+
'syrup|sirop' => 1.5,
26+
'dextrose|maltose|fructose|glucose' => 1.5,
27+
'dextrin|dextrine' => 1.5,
28+
'maltodextrin|maltodextrine' => 1.5,
29+
'sucrose|saccharose' => 1.5,
30+
];
31+
32+
public const GOOD_INGREDIENTS = [
33+
'apples' => 1, // plural, should be more than one
34+
'broccoli' => 2.5,
35+
'lentil' => 2,
36+
'spinach' => 1,
37+
'celery' => 0.8,
38+
'walnuts' => 1, // plural, should be more than one
39+
'chestnuts' => 1, // plural, should be more than one
40+
'avocados' => 1, // plural, should be more than one
41+
'lemon' => 1,
42+
'garlic' => 0.5,
43+
'antioxidant' => 2,
44+
'sesame' => 1,
45+
'curcuma' => 1,
46+
'spirulina|spiruline' => 1,
47+
'chia' => 1.2, // https://draxe.com/chia-seeds-benefits-side-effects/
48+
'kale' => 0.3,
49+
'goji' => 0.4, // https://www.nhs.uk/Livewell/superfoods/Pages/are-goji-berries-a-superfood.aspx
50+
'zucchini|courgette' => 0.4,
51+
];
52+
}

0 commit comments

Comments
 (0)