|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Spatie\SchemaOrg; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* A lodging business, such as a motel, hotel, or inn. |
|
7
|
|
|
* |
|
8
|
|
|
* @see http://schema.org/LodgingBusiness |
|
9
|
|
|
* |
|
10
|
|
|
* @mixin \Spatie\SchemaOrg\LocalBusiness |
|
11
|
|
|
*/ |
|
12
|
|
|
class LodgingBusiness extends BaseType |
|
13
|
|
|
{ |
|
14
|
|
|
/** |
|
15
|
|
|
* An amenity feature (e.g. a characteristic or service) of the |
|
16
|
|
|
* Accommodation. This generic property does not make a statement about |
|
17
|
|
|
* whether the feature is included in an offer for the main accommodation or |
|
18
|
|
|
* available at extra costs. |
|
19
|
|
|
* |
|
20
|
|
|
* @param LocationFeatureSpecification|LocationFeatureSpecification[] $amenityFeature |
|
21
|
|
|
* |
|
22
|
|
|
* @return static |
|
23
|
|
|
* |
|
24
|
|
|
* @see http://schema.org/amenityFeature |
|
25
|
|
|
*/ |
|
26
|
|
|
public function amenityFeature($amenityFeature) |
|
27
|
|
|
{ |
|
28
|
|
|
return $this->setProperty('amenityFeature', $amenityFeature); |
|
29
|
|
|
} |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* An intended audience, i.e. a group for whom something was created. |
|
33
|
|
|
* |
|
34
|
|
|
* @param Audience|Audience[] $audience |
|
35
|
|
|
* |
|
36
|
|
|
* @return static |
|
37
|
|
|
* |
|
38
|
|
|
* @see http://schema.org/audience |
|
39
|
|
|
*/ |
|
40
|
|
|
public function audience($audience) |
|
41
|
|
|
{ |
|
42
|
|
|
return $this->setProperty('audience', $audience); |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* A language someone may use with or at the item, service or place. Please |
|
47
|
|
|
* use one of the language codes from the [IETF BCP 47 |
|
48
|
|
|
* standard](http://tools.ietf.org/html/bcp47). See also [[inLanguage]] |
|
49
|
|
|
* |
|
50
|
|
|
* @param Language|Language[]|string|string[] $availableLanguage |
|
51
|
|
|
* |
|
52
|
|
|
* @return static |
|
53
|
|
|
* |
|
54
|
|
|
* @see http://schema.org/availableLanguage |
|
55
|
|
|
*/ |
|
56
|
|
|
public function availableLanguage($availableLanguage) |
|
57
|
|
|
{ |
|
58
|
|
|
return $this->setProperty('availableLanguage', $availableLanguage); |
|
59
|
|
|
} |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* The earliest someone may check into a lodging establishment. |
|
63
|
|
|
* |
|
64
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $checkinTime |
|
65
|
|
|
* |
|
66
|
|
|
* @return static |
|
67
|
|
|
* |
|
68
|
|
|
* @see http://schema.org/checkinTime |
|
69
|
|
|
*/ |
|
70
|
|
|
public function checkinTime($checkinTime) |
|
71
|
|
|
{ |
|
72
|
|
|
return $this->setProperty('checkinTime', $checkinTime); |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* The latest someone may check out of a lodging establishment. |
|
77
|
|
|
* |
|
78
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $checkoutTime |
|
79
|
|
|
* |
|
80
|
|
|
* @return static |
|
81
|
|
|
* |
|
82
|
|
|
* @see http://schema.org/checkoutTime |
|
83
|
|
|
*/ |
|
84
|
|
|
public function checkoutTime($checkoutTime) |
|
85
|
|
|
{ |
|
86
|
|
|
return $this->setProperty('checkoutTime', $checkoutTime); |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* The number of rooms (excluding bathrooms and closets) of the |
|
91
|
|
|
* accommodation or lodging business. |
|
92
|
|
|
* Typical unit code(s): ROM for room or C62 for no unit. The type of room |
|
93
|
|
|
* can be put in the unitText property of the QuantitativeValue. |
|
94
|
|
|
* |
|
95
|
|
|
* @param QuantitativeValue|QuantitativeValue[]|float|float[]|int|int[] $numberOfRooms |
|
96
|
|
|
* |
|
97
|
|
|
* @return static |
|
98
|
|
|
* |
|
99
|
|
|
* @see http://schema.org/numberOfRooms |
|
100
|
|
|
*/ |
|
101
|
|
|
public function numberOfRooms($numberOfRooms) |
|
102
|
|
|
{ |
|
103
|
|
|
return $this->setProperty('numberOfRooms', $numberOfRooms); |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* Indicates whether pets are allowed to enter the accommodation or lodging |
|
108
|
|
|
* business. More detailed information can be put in a text value. |
|
109
|
|
|
* |
|
110
|
|
|
* @param bool|bool[]|string|string[] $petsAllowed |
|
111
|
|
|
* |
|
112
|
|
|
* @return static |
|
113
|
|
|
* |
|
114
|
|
|
* @see http://schema.org/petsAllowed |
|
115
|
|
|
*/ |
|
116
|
|
|
public function petsAllowed($petsAllowed) |
|
117
|
|
|
{ |
|
118
|
|
|
return $this->setProperty('petsAllowed', $petsAllowed); |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
/** |
|
122
|
|
|
* An official rating for a lodging business or food establishment, e.g. |
|
123
|
|
|
* from national associations or standards bodies. Use the author property |
|
124
|
|
|
* to indicate the rating organization, e.g. as an Organization with name |
|
125
|
|
|
* such as (e.g. HOTREC, DEHOGA, WHR, or Hotelstars). |
|
126
|
|
|
* |
|
127
|
|
|
* @param Rating|Rating[] $starRating |
|
128
|
|
|
* |
|
129
|
|
|
* @return static |
|
130
|
|
|
* |
|
131
|
|
|
* @see http://schema.org/starRating |
|
132
|
|
|
*/ |
|
133
|
|
|
public function starRating($starRating) |
|
134
|
|
|
{ |
|
135
|
|
|
return $this->setProperty('starRating', $starRating); |
|
136
|
|
|
} |
|
137
|
|
|
|
|
138
|
|
|
} |
|
139
|
|
|
|