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

Recipe::recipeIngredient()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 1
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A recipe. For dietary restrictions covered by the recipe, a few common
7
 * restrictions are enumerated via [[suitableForDiet]]. The [[keywords]]
8
 * property can also be used to add more detail.
9
 *
10
 * @see http://schema.org/Recipe
11
 */
12
class Recipe extends CreativeWork
13
{
14
    /**
15
     * Indicates a dietary restriction or guideline for which this recipe or
16
     * menu item is suitable, e.g. diabetic, halal etc.
17
     *
18
     * @param \Spatie\SchemaOrg\RestrictedDiet $suitableForDiet
19
     *
20
     * @return static
21
     *
22
     * @see http://schema.org/suitableForDiet
23
     */
24
    public function suitableForDiet($suitableForDiet)
25
    {
26
        return $this->setProperty('suitableForDiet', $suitableForDiet);
27
    }
28
29
    /**
30
     * The total time it takes to prepare and cook the recipe, in [ISO 8601
31
     * duration format](http://en.wikipedia.org/wiki/ISO_8601).
32
     *
33
     * @param \Spatie\SchemaOrg\Duration $totalTime
34
     *
35
     * @return static
36
     *
37
     * @see http://schema.org/totalTime
38
     */
39
    public function totalTime($totalTime)
40
    {
41
        return $this->setProperty('totalTime', $totalTime);
42
    }
43
44
    /**
45
     * The time it takes to actually cook the dish, in [ISO 8601 duration
46
     * format](http://en.wikipedia.org/wiki/ISO_8601).
47
     *
48
     * @param \Spatie\SchemaOrg\Duration $cookTime
49
     *
50
     * @return static
51
     *
52
     * @see http://schema.org/cookTime
53
     */
54
    public function cookTime($cookTime)
55
    {
56
        return $this->setProperty('cookTime', $cookTime);
57
    }
58
59
    /**
60
     * The method of cooking, such as Frying, Steaming, ...
61
     *
62
     * @param string $cookingMethod
63
     *
64
     * @return static
65
     *
66
     * @see http://schema.org/cookingMethod
67
     */
68
    public function cookingMethod($cookingMethod)
69
    {
70
        return $this->setProperty('cookingMethod', $cookingMethod);
71
    }
72
73
    /**
74
     * Nutrition information about the recipe or menu item.
75
     *
76
     * @param \Spatie\SchemaOrg\NutritionInformation $nutrition
77
     *
78
     * @return static
79
     *
80
     * @see http://schema.org/nutrition
81
     */
82
    public function nutrition($nutrition)
83
    {
84
        return $this->setProperty('nutrition', $nutrition);
85
    }
86
87
    /**
88
     * The length of time it takes to prepare the recipe, in [ISO 8601 duration
89
     * format](http://en.wikipedia.org/wiki/ISO_8601).
90
     *
91
     * @param \Spatie\SchemaOrg\Duration $prepTime
92
     *
93
     * @return static
94
     *
95
     * @see http://schema.org/prepTime
96
     */
97
    public function prepTime($prepTime)
98
    {
99
        return $this->setProperty('prepTime', $prepTime);
100
    }
101
102
    /**
103
     * The category of the recipe—for example, appetizer, entree, etc.
104
     *
105
     * @param string $recipeCategory
106
     *
107
     * @return static
108
     *
109
     * @see http://schema.org/recipeCategory
110
     */
111
    public function recipeCategory($recipeCategory)
112
    {
113
        return $this->setProperty('recipeCategory', $recipeCategory);
114
    }
115
116
    /**
117
     * The cuisine of the recipe (for example, French or Ethiopian).
118
     *
119
     * @param string $recipeCuisine
120
     *
121
     * @return static
122
     *
123
     * @see http://schema.org/recipeCuisine
124
     */
125
    public function recipeCuisine($recipeCuisine)
126
    {
127
        return $this->setProperty('recipeCuisine', $recipeCuisine);
128
    }
129
130
    /**
131
     * A single ingredient used in the recipe, e.g. sugar, flour or garlic.
132
     *
133
     * @param string $ingredients
134
     *
135
     * @return static
136
     *
137
     * @see http://schema.org/ingredients
138
     */
139
    public function ingredients($ingredients)
140
    {
141
        return $this->setProperty('ingredients', $ingredients);
142
    }
143
144
    /**
145
     * A single ingredient used in the recipe, e.g. sugar, flour or garlic.
146
     *
147
     * @param string $recipeIngredient
148
     *
149
     * @return static
150
     *
151
     * @see http://schema.org/recipeIngredient
152
     */
153
    public function recipeIngredient($recipeIngredient)
154
    {
155
        return $this->setProperty('recipeIngredient', $recipeIngredient);
156
    }
157
158
    /**
159
     * A step or instruction involved in making the recipe.
160
     *
161
     * @param \Spatie\SchemaOrg\schema:ItemList|string $recipeInstructions
162
     *
163
     * @return static
164
     *
165
     * @see http://schema.org/recipeInstructions
166
     */
167
    public function recipeInstructions($recipeInstructions)
168
    {
169
        return $this->setProperty('recipeInstructions', $recipeInstructions);
170
    }
171
172
    /**
173
     * The quantity produced by the recipe (for example, number of people
174
     * served, number of servings, etc).
175
     *
176
     * @param string $recipeYield
177
     *
178
     * @return static
179
     *
180
     * @see http://schema.org/recipeYield
181
     */
182
    public function recipeYield($recipeYield)
183
    {
184
        return $this->setProperty('recipeYield', $recipeYield);
185
    }
186
187
}
188