|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Spatie\SchemaOrg; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* A food-related business. |
|
7
|
|
|
* |
|
8
|
|
|
* @see http://schema.org/FoodEstablishment |
|
9
|
|
|
*/ |
|
10
|
|
|
class FoodEstablishment extends LocalBusiness |
|
11
|
|
|
{ |
|
12
|
|
|
/** |
|
13
|
|
|
* Indicates whether a FoodEstablishment accepts reservations. Values can be |
|
14
|
|
|
* Boolean, an URL at which reservations can be made or (for backwards |
|
15
|
|
|
* compatibility) the strings ```Yes``` or ```No```. |
|
16
|
|
|
* |
|
17
|
|
|
* @param string|bool $acceptsReservations |
|
18
|
|
|
* |
|
19
|
|
|
* @return static |
|
20
|
|
|
* |
|
21
|
|
|
* @see http://schema.org/acceptsReservations |
|
22
|
|
|
*/ |
|
23
|
|
|
public function acceptsReservations($acceptsReservations) |
|
24
|
|
|
{ |
|
25
|
|
|
return $this->setProperty('acceptsReservations', $acceptsReservations); |
|
26
|
|
|
} |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* Either the actual menu as a structured representation, as text, or a URL |
|
30
|
|
|
* of the menu. |
|
31
|
|
|
* |
|
32
|
|
|
* @param \Spatie\SchemaOrg\Menu|string $hasMenu |
|
33
|
|
|
* |
|
34
|
|
|
* @return static |
|
35
|
|
|
* |
|
36
|
|
|
* @see http://schema.org/hasMenu |
|
37
|
|
|
*/ |
|
38
|
|
|
public function hasMenu($hasMenu) |
|
39
|
|
|
{ |
|
40
|
|
|
return $this->setProperty('hasMenu', $hasMenu); |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* Either the actual menu as a structured representation, as text, or a URL |
|
45
|
|
|
* of the menu. |
|
46
|
|
|
* |
|
47
|
|
|
* @param \Spatie\SchemaOrg\Menu|string $menu |
|
48
|
|
|
* |
|
49
|
|
|
* @return static |
|
50
|
|
|
* |
|
51
|
|
|
* @see http://schema.org/menu |
|
52
|
|
|
*/ |
|
53
|
|
|
public function menu($menu) |
|
54
|
|
|
{ |
|
55
|
|
|
return $this->setProperty('menu', $menu); |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* The cuisine of the restaurant. |
|
60
|
|
|
* |
|
61
|
|
|
* @param string $servesCuisine |
|
62
|
|
|
* |
|
63
|
|
|
* @return static |
|
64
|
|
|
* |
|
65
|
|
|
* @see http://schema.org/servesCuisine |
|
66
|
|
|
*/ |
|
67
|
|
|
public function servesCuisine($servesCuisine) |
|
68
|
|
|
{ |
|
69
|
|
|
return $this->setProperty('servesCuisine', $servesCuisine); |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* An official rating for a lodging business or food establishment, e.g. |
|
74
|
|
|
* from national associations or standards bodies. Use the author property |
|
75
|
|
|
* to indicate the rating organization, e.g. as an Organization with name |
|
76
|
|
|
* such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). |
|
77
|
|
|
* |
|
78
|
|
|
* @param \Spatie\SchemaOrg\Rating $starRating |
|
79
|
|
|
* |
|
80
|
|
|
* @return static |
|
81
|
|
|
* |
|
82
|
|
|
* @see http://schema.org/starRating |
|
83
|
|
|
*/ |
|
84
|
|
|
public function starRating($starRating) |
|
85
|
|
|
{ |
|
86
|
|
|
return $this->setProperty('starRating', $starRating); |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
} |
|
90
|
|
|
|