Completed
Push — master ( 0fb5cf...c0af4f )
by Sebastian
03:59
created

Menu::menuAddOn()   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
 * A structured representation of food or drink items available from a
7
 * FoodEstablishment.
8
 *
9
 * @see http://schema.org/Menu
10
 */
11
class Menu extends CreativeWork
12
{
13
    /**
14
     * A food or drink item contained in a menu or menu section.
15
     *
16
     * @param \Spatie\SchemaOrg\MenuSection $hasMenuItem
17
     *
18
     * @return static
19
     *
20
     * @see http://schema.org/hasMenuItem
21
     */
22
    public function hasMenuItem($hasMenuItem)
23
    {
24
        return $this->setProperty('hasMenuItem', $hasMenuItem);
25
    }
26
27
    /**
28
     * A subgrouping of the menu (by dishes, course, serving time period, etc.).
29
     *
30
     * @param \Spatie\SchemaOrg\MenuSection $hasMenuSection
31
     *
32
     * @return static
33
     *
34
     * @see http://schema.org/hasMenuSection
35
     */
36
    public function hasMenuSection($hasMenuSection)
37
    {
38
        return $this->setProperty('hasMenuSection', $hasMenuSection);
39
    }
40
41
}
42