Completed
Push — master ( d05f7d...9893e5 )
by Sebastian
07:42 queued 03:40
created

NutritionInformation::proteinContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * Nutritional information about the recipe.
7
 *
8
 * @see http://schema.org/NutritionInformation
9
 */
10
class NutritionInformation extends StructuredValue
11
{
12
    /**
13
     * The number of calories.
14
     *
15
     * @param \Spatie\SchemaOrg\Energy $calories
16
     *
17
     * @return static
18
     *
19
     * @see http://schema.org/calories
20
     */
21
    public function calories($calories)
22
    {
23
        return $this->setProperty('calories', $calories);
24
    }
25
26
    /**
27
     * The number of grams of carbohydrates.
28
     *
29
     * @param \Spatie\SchemaOrg\Mass $carbohydrateContent
30
     *
31
     * @return static
32
     *
33
     * @see http://schema.org/carbohydrateContent
34
     */
35
    public function carbohydrateContent($carbohydrateContent)
36
    {
37
        return $this->setProperty('carbohydrateContent', $carbohydrateContent);
38
    }
39
40
    /**
41
     * The number of milligrams of cholesterol.
42
     *
43
     * @param \Spatie\SchemaOrg\Mass $cholesterolContent
44
     *
45
     * @return static
46
     *
47
     * @see http://schema.org/cholesterolContent
48
     */
49
    public function cholesterolContent($cholesterolContent)
50
    {
51
        return $this->setProperty('cholesterolContent', $cholesterolContent);
52
    }
53
54
    /**
55
     * The number of grams of fiber.
56
     *
57
     * @param \Spatie\SchemaOrg\Mass $fiberContent
58
     *
59
     * @return static
60
     *
61
     * @see http://schema.org/fiberContent
62
     */
63
    public function fiberContent($fiberContent)
64
    {
65
        return $this->setProperty('fiberContent', $fiberContent);
66
    }
67
68
    /**
69
     * The number of grams of protein.
70
     *
71
     * @param \Spatie\SchemaOrg\Mass $proteinContent
72
     *
73
     * @return static
74
     *
75
     * @see http://schema.org/proteinContent
76
     */
77
    public function proteinContent($proteinContent)
78
    {
79
        return $this->setProperty('proteinContent', $proteinContent);
80
    }
81
82
    /**
83
     * The number of grams of saturated fat.
84
     *
85
     * @param \Spatie\SchemaOrg\Mass $saturatedFatContent
86
     *
87
     * @return static
88
     *
89
     * @see http://schema.org/saturatedFatContent
90
     */
91
    public function saturatedFatContent($saturatedFatContent)
92
    {
93
        return $this->setProperty('saturatedFatContent', $saturatedFatContent);
94
    }
95
96
    /**
97
     * The serving size, in terms of the number of volume or mass.
98
     *
99
     * @param string $servingSize
100
     *
101
     * @return static
102
     *
103
     * @see http://schema.org/servingSize
104
     */
105
    public function servingSize($servingSize)
106
    {
107
        return $this->setProperty('servingSize', $servingSize);
108
    }
109
110
    /**
111
     * The number of milligrams of sodium.
112
     *
113
     * @param \Spatie\SchemaOrg\Mass $sodiumContent
114
     *
115
     * @return static
116
     *
117
     * @see http://schema.org/sodiumContent
118
     */
119
    public function sodiumContent($sodiumContent)
120
    {
121
        return $this->setProperty('sodiumContent', $sodiumContent);
122
    }
123
124
    /**
125
     * The number of grams of sugar.
126
     *
127
     * @param \Spatie\SchemaOrg\Mass $sugarContent
128
     *
129
     * @return static
130
     *
131
     * @see http://schema.org/sugarContent
132
     */
133
    public function sugarContent($sugarContent)
134
    {
135
        return $this->setProperty('sugarContent', $sugarContent);
136
    }
137
138
    /**
139
     * The number of grams of fat.
140
     *
141
     * @param \Spatie\SchemaOrg\Mass $fatContent
142
     *
143
     * @return static
144
     *
145
     * @see http://schema.org/fatContent
146
     */
147
    public function fatContent($fatContent)
148
    {
149
        return $this->setProperty('fatContent', $fatContent);
150
    }
151
152
    /**
153
     * The number of grams of trans fat.
154
     *
155
     * @param \Spatie\SchemaOrg\Mass $transFatContent
156
     *
157
     * @return static
158
     *
159
     * @see http://schema.org/transFatContent
160
     */
161
    public function transFatContent($transFatContent)
162
    {
163
        return $this->setProperty('transFatContent', $transFatContent);
164
    }
165
166
    /**
167
     * The number of grams of unsaturated fat.
168
     *
169
     * @param \Spatie\SchemaOrg\Mass $unsaturatedFatContent
170
     *
171
     * @return static
172
     *
173
     * @see http://schema.org/unsaturatedFatContent
174
     */
175
    public function unsaturatedFatContent($unsaturatedFatContent)
176
    {
177
        return $this->setProperty('unsaturatedFatContent', $unsaturatedFatContent);
178
    }
179
180
}
181