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

CookAction::foodEstablishment()   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
 * The act of producing/preparing food.
7
 *
8
 * @see http://schema.org/CookAction
9
 */
10
class CookAction extends CreateAction
11
{
12
    /**
13
     * A sub property of location. The specific food establishment where the
14
     * action occurred.
15
     *
16
     * @param \Spatie\SchemaOrg\FoodEstablishment|\Spatie\SchemaOrg\Place $foodEstablishment
17
     *
18
     * @return static
19
     *
20
     * @see http://schema.org/foodEstablishment
21
     */
22
    public function foodEstablishment($foodEstablishment)
23
    {
24
        return $this->setProperty('foodEstablishment', $foodEstablishment);
25
    }
26
27
    /**
28
     * A sub property of location. The specific food event where the action
29
     * occurred.
30
     *
31
     * @param \Spatie\SchemaOrg\FoodEvent $foodEvent
32
     *
33
     * @return static
34
     *
35
     * @see http://schema.org/foodEvent
36
     */
37
    public function foodEvent($foodEvent)
38
    {
39
        return $this->setProperty('foodEvent', $foodEvent);
40
    }
41
42
    /**
43
     * A sub property of instrument. The recipe/instructions used to perform the
44
     * action.
45
     *
46
     * @param \Spatie\SchemaOrg\Recipe $recipe
47
     *
48
     * @return static
49
     *
50
     * @see http://schema.org/recipe
51
     */
52
    public function recipe($recipe)
53
    {
54
        return $this->setProperty('recipe', $recipe);
55
    }
56
57
}
58