Passed
Push — v3 ( 432ffb...f9ff88 )
by Andrew
40:19 queued 27:54
created
src/models/jsonld/MeetingRoom.php 1 patch
Indentation   +219 added lines, -219 removed lines patch added patch discarded remove patch
@@ -28,240 +28,240 @@
 block discarded – undo
28 28
  */
29 29
 class MeetingRoom extends MetaJsonLd implements MeetingRoomInterface, RoomInterface, AccommodationInterface, PlaceInterface, ThingInterface
30 30
 {
31
-	use MeetingRoomTrait;
32
-	use RoomTrait;
33
-	use AccommodationTrait;
34
-	use PlaceTrait;
35
-	use ThingTrait;
31
+    use MeetingRoomTrait;
32
+    use RoomTrait;
33
+    use AccommodationTrait;
34
+    use PlaceTrait;
35
+    use ThingTrait;
36 36
 
37
-	/**
38
-	 * The Schema.org Type Name
39
-	 *
40
-	 * @var string
41
-	 */
42
-	public static $schemaTypeName = 'MeetingRoom';
37
+    /**
38
+     * The Schema.org Type Name
39
+     *
40
+     * @var string
41
+     */
42
+    public static $schemaTypeName = 'MeetingRoom';
43 43
 
44
-	/**
45
-	 * The Schema.org Type Scope
46
-	 *
47
-	 * @var string
48
-	 */
49
-	public static $schemaTypeScope = 'https://schema.org/MeetingRoom';
44
+    /**
45
+     * The Schema.org Type Scope
46
+     *
47
+     * @var string
48
+     */
49
+    public static $schemaTypeScope = 'https://schema.org/MeetingRoom';
50 50
 
51
-	/**
52
-	 * The Schema.org Type Extends
53
-	 *
54
-	 * @var string
55
-	 */
56
-	public static $schemaTypeExtends = 'Room';
51
+    /**
52
+     * The Schema.org Type Extends
53
+     *
54
+     * @var string
55
+     */
56
+    public static $schemaTypeExtends = 'Room';
57 57
 
58
-	/**
59
-	 * The Schema.org Type Description
60
-	 *
61
-	 * @var string
62
-	 */
63
-	public static $schemaTypeDescription = "A meeting room, conference room, or conference hall is a room provided for singular events such as business conferences and meetings (source: Wikipedia, the free encyclopedia, see <a href=\"http://en.wikipedia.org/wiki/Conference_hall\">http://en.wikipedia.org/wiki/Conference_hall</a>).\n<br /><br />\nSee also the <a href=\"/docs/hotels.html\">dedicated document on the use of schema.org for marking up hotels and other forms of accommodations</a>.";
58
+    /**
59
+     * The Schema.org Type Description
60
+     *
61
+     * @var string
62
+     */
63
+    public static $schemaTypeDescription = "A meeting room, conference room, or conference hall is a room provided for singular events such as business conferences and meetings (source: Wikipedia, the free encyclopedia, see <a href=\"http://en.wikipedia.org/wiki/Conference_hall\">http://en.wikipedia.org/wiki/Conference_hall</a>).\n<br /><br />\nSee also the <a href=\"/docs/hotels.html\">dedicated document on the use of schema.org for marking up hotels and other forms of accommodations</a>.";
64 64
 
65 65
 
66
-	/**
67
-	 * @inheritdoc
68
-	 */
69
-	public function getSchemaPropertyNames(): array
70
-	{
71
-		return array_keys($this->getSchemaPropertyExpectedTypes());
72
-	}
66
+    /**
67
+     * @inheritdoc
68
+     */
69
+    public function getSchemaPropertyNames(): array
70
+    {
71
+        return array_keys($this->getSchemaPropertyExpectedTypes());
72
+    }
73 73
 
74 74
 
75
-	/**
76
-	 * @inheritdoc
77
-	 */
78
-	public function getSchemaPropertyExpectedTypes(): array
79
-	{
80
-		return [
81
-		    'accommodationCategory' => ['Text'],
82
-		    'accommodationFloorPlan' => ['FloorPlan'],
83
-		    'additionalProperty' => ['PropertyValue'],
84
-		    'additionalType' => ['URL'],
85
-		    'address' => ['Text', 'PostalAddress'],
86
-		    'aggregateRating' => ['AggregateRating'],
87
-		    'alternateName' => ['Text'],
88
-		    'amenityFeature' => ['LocationFeatureSpecification'],
89
-		    'branchCode' => ['Text'],
90
-		    'containedIn' => ['Place'],
91
-		    'containedInPlace' => ['Place'],
92
-		    'containsPlace' => ['Place'],
93
-		    'description' => ['Text'],
94
-		    'disambiguatingDescription' => ['Text'],
95
-		    'event' => ['Event'],
96
-		    'events' => ['Event'],
97
-		    'faxNumber' => ['Text'],
98
-		    'floorLevel' => ['Text'],
99
-		    'floorSize' => ['QuantitativeValue'],
100
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
101
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
102
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
103
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
104
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
105
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
106
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
107
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
108
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
109
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
110
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
111
-		    'globalLocationNumber' => ['Text'],
112
-		    'hasDriveThroughService' => ['Boolean'],
113
-		    'hasMap' => ['URL', 'Map'],
114
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
115
-		    'image' => ['URL', 'ImageObject'],
116
-		    'isAccessibleForFree' => ['Boolean'],
117
-		    'isicV4' => ['Text'],
118
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
119
-		    'latitude' => ['Number', 'Text'],
120
-		    'leaseLength' => ['QuantitativeValue', 'Duration'],
121
-		    'logo' => ['ImageObject', 'URL'],
122
-		    'longitude' => ['Text', 'Number'],
123
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
124
-		    'map' => ['URL'],
125
-		    'maps' => ['URL'],
126
-		    'maximumAttendeeCapacity' => ['Integer'],
127
-		    'name' => ['Text'],
128
-		    'numberOfBathroomsTotal' => ['Integer'],
129
-		    'numberOfBedrooms' => ['Number', 'QuantitativeValue'],
130
-		    'numberOfFullBathrooms' => ['Number'],
131
-		    'numberOfPartialBathrooms' => ['Number'],
132
-		    'numberOfRooms' => ['Number', 'QuantitativeValue'],
133
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
134
-		    'permittedUsage' => ['Text'],
135
-		    'petsAllowed' => ['Text', 'Boolean'],
136
-		    'photo' => ['Photograph', 'ImageObject'],
137
-		    'photos' => ['ImageObject', 'Photograph'],
138
-		    'potentialAction' => ['Action'],
139
-		    'publicAccess' => ['Boolean'],
140
-		    'review' => ['Review'],
141
-		    'reviews' => ['Review'],
142
-		    'sameAs' => ['URL'],
143
-		    'slogan' => ['Text'],
144
-		    'smokingAllowed' => ['Boolean'],
145
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
146
-		    'subjectOf' => ['Event', 'CreativeWork'],
147
-		    'telephone' => ['Text'],
148
-		    'tourBookingPage' => ['URL'],
149
-		    'url' => ['URL'],
150
-		    'yearBuilt' => ['Number']
151
-		];
152
-	}
75
+    /**
76
+     * @inheritdoc
77
+     */
78
+    public function getSchemaPropertyExpectedTypes(): array
79
+    {
80
+        return [
81
+            'accommodationCategory' => ['Text'],
82
+            'accommodationFloorPlan' => ['FloorPlan'],
83
+            'additionalProperty' => ['PropertyValue'],
84
+            'additionalType' => ['URL'],
85
+            'address' => ['Text', 'PostalAddress'],
86
+            'aggregateRating' => ['AggregateRating'],
87
+            'alternateName' => ['Text'],
88
+            'amenityFeature' => ['LocationFeatureSpecification'],
89
+            'branchCode' => ['Text'],
90
+            'containedIn' => ['Place'],
91
+            'containedInPlace' => ['Place'],
92
+            'containsPlace' => ['Place'],
93
+            'description' => ['Text'],
94
+            'disambiguatingDescription' => ['Text'],
95
+            'event' => ['Event'],
96
+            'events' => ['Event'],
97
+            'faxNumber' => ['Text'],
98
+            'floorLevel' => ['Text'],
99
+            'floorSize' => ['QuantitativeValue'],
100
+            'geo' => ['GeoCoordinates', 'GeoShape'],
101
+            'geoContains' => ['Place', 'GeospatialGeometry'],
102
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
103
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
104
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
105
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
106
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
107
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
108
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
109
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
110
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
111
+            'globalLocationNumber' => ['Text'],
112
+            'hasDriveThroughService' => ['Boolean'],
113
+            'hasMap' => ['URL', 'Map'],
114
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
115
+            'image' => ['URL', 'ImageObject'],
116
+            'isAccessibleForFree' => ['Boolean'],
117
+            'isicV4' => ['Text'],
118
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
119
+            'latitude' => ['Number', 'Text'],
120
+            'leaseLength' => ['QuantitativeValue', 'Duration'],
121
+            'logo' => ['ImageObject', 'URL'],
122
+            'longitude' => ['Text', 'Number'],
123
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
124
+            'map' => ['URL'],
125
+            'maps' => ['URL'],
126
+            'maximumAttendeeCapacity' => ['Integer'],
127
+            'name' => ['Text'],
128
+            'numberOfBathroomsTotal' => ['Integer'],
129
+            'numberOfBedrooms' => ['Number', 'QuantitativeValue'],
130
+            'numberOfFullBathrooms' => ['Number'],
131
+            'numberOfPartialBathrooms' => ['Number'],
132
+            'numberOfRooms' => ['Number', 'QuantitativeValue'],
133
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
134
+            'permittedUsage' => ['Text'],
135
+            'petsAllowed' => ['Text', 'Boolean'],
136
+            'photo' => ['Photograph', 'ImageObject'],
137
+            'photos' => ['ImageObject', 'Photograph'],
138
+            'potentialAction' => ['Action'],
139
+            'publicAccess' => ['Boolean'],
140
+            'review' => ['Review'],
141
+            'reviews' => ['Review'],
142
+            'sameAs' => ['URL'],
143
+            'slogan' => ['Text'],
144
+            'smokingAllowed' => ['Boolean'],
145
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
146
+            'subjectOf' => ['Event', 'CreativeWork'],
147
+            'telephone' => ['Text'],
148
+            'tourBookingPage' => ['URL'],
149
+            'url' => ['URL'],
150
+            'yearBuilt' => ['Number']
151
+        ];
152
+    }
153 153
 
154 154
 
155
-	/**
156
-	 * @inheritdoc
157
-	 */
158
-	public function getSchemaPropertyDescriptions(): array
159
-	{
160
-		return [
161
-		    'accommodationCategory' => 'Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields  for suggested values).',
162
-		    'accommodationFloorPlan' => 'A floorplan of some [[Accommodation]].',
163
-		    'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
164
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
165
-		    'address' => 'Physical address of the item.',
166
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
167
-		    'alternateName' => 'An alias for the item.',
168
-		    'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
169
-		    'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
170
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
171
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
172
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
173
-		    'description' => 'A description of the item.',
174
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
175
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
176
-		    'events' => 'Upcoming or past events associated with this place or organization.',
177
-		    'faxNumber' => 'The fax number.',
178
-		    'floorLevel' => 'The floor level for an [[Accommodation]] in a multi-storey building. Since counting   systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.',
179
-		    'floorSize' => 'The size of the accommodation, e.g. in square meter or squarefoot. Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard ',
180
-		    'geo' => 'The geo coordinates of the place.',
181
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
182
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
183
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
184
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
185
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
186
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
187
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
188
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
189
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
190
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
191
-		    'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
192
-		    'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
193
-		    'hasMap' => 'A URL to a map of the place.',
194
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
195
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
196
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
197
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
198
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
199
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
200
-		    'leaseLength' => 'Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.',
201
-		    'logo' => 'An associated logo.',
202
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
203
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
204
-		    'map' => 'A URL to a map of the place.',
205
-		    'maps' => 'A URL to a map of the place.',
206
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
207
-		    'name' => 'The name of the item.',
208
-		    'numberOfBathroomsTotal' => 'The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].',
209
-		    'numberOfBedrooms' => 'The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].',
210
-		    'numberOfFullBathrooms' => 'Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).',
211
-		    'numberOfPartialBathrooms' => 'Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). ',
212
-		    'numberOfRooms' => 'The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.',
213
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
214
-		    'permittedUsage' => 'Indications regarding the permitted usage of the accommodation.',
215
-		    'petsAllowed' => 'Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.',
216
-		    'photo' => 'A photograph of this place.',
217
-		    'photos' => 'Photographs of this place.',
218
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
219
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
220
-		    'review' => 'A review of the item.',
221
-		    'reviews' => 'Review of the item.',
222
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
223
-		    'slogan' => 'A slogan or motto associated with the item.',
224
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
225
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
226
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
227
-		    'telephone' => 'The telephone number.',
228
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
229
-		    'url' => 'URL of the item.',
230
-		    'yearBuilt' => 'The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). '
231
-		];
232
-	}
155
+    /**
156
+     * @inheritdoc
157
+     */
158
+    public function getSchemaPropertyDescriptions(): array
159
+    {
160
+        return [
161
+            'accommodationCategory' => 'Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields  for suggested values).',
162
+            'accommodationFloorPlan' => 'A floorplan of some [[Accommodation]].',
163
+            'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
164
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
165
+            'address' => 'Physical address of the item.',
166
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
167
+            'alternateName' => 'An alias for the item.',
168
+            'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
169
+            'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
170
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
171
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
172
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
173
+            'description' => 'A description of the item.',
174
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
175
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
176
+            'events' => 'Upcoming or past events associated with this place or organization.',
177
+            'faxNumber' => 'The fax number.',
178
+            'floorLevel' => 'The floor level for an [[Accommodation]] in a multi-storey building. Since counting   systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.',
179
+            'floorSize' => 'The size of the accommodation, e.g. in square meter or squarefoot. Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard ',
180
+            'geo' => 'The geo coordinates of the place.',
181
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
182
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
183
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
184
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
185
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
186
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
187
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
188
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
189
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
190
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
191
+            'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
192
+            'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
193
+            'hasMap' => 'A URL to a map of the place.',
194
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
195
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
196
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
197
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
198
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
199
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
200
+            'leaseLength' => 'Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.',
201
+            'logo' => 'An associated logo.',
202
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
203
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
204
+            'map' => 'A URL to a map of the place.',
205
+            'maps' => 'A URL to a map of the place.',
206
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
207
+            'name' => 'The name of the item.',
208
+            'numberOfBathroomsTotal' => 'The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].',
209
+            'numberOfBedrooms' => 'The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].',
210
+            'numberOfFullBathrooms' => 'Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).',
211
+            'numberOfPartialBathrooms' => 'Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). ',
212
+            'numberOfRooms' => 'The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.',
213
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
214
+            'permittedUsage' => 'Indications regarding the permitted usage of the accommodation.',
215
+            'petsAllowed' => 'Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.',
216
+            'photo' => 'A photograph of this place.',
217
+            'photos' => 'Photographs of this place.',
218
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
219
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
220
+            'review' => 'A review of the item.',
221
+            'reviews' => 'Review of the item.',
222
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
223
+            'slogan' => 'A slogan or motto associated with the item.',
224
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
225
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
226
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
227
+            'telephone' => 'The telephone number.',
228
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
229
+            'url' => 'URL of the item.',
230
+            'yearBuilt' => 'The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). '
231
+        ];
232
+    }
233 233
 
234 234
 
235
-	/**
236
-	 * @inheritdoc
237
-	 */
238
-	public function getGoogleRequiredSchema(): array
239
-	{
240
-		return ['description', 'name'];
241
-	}
235
+    /**
236
+     * @inheritdoc
237
+     */
238
+    public function getGoogleRequiredSchema(): array
239
+    {
240
+        return ['description', 'name'];
241
+    }
242 242
 
243 243
 
244
-	/**
245
-	 * @inheritdoc
246
-	 */
247
-	public function getGoogleRecommendedSchema(): array
248
-	{
249
-		return ['image', 'url'];
250
-	}
244
+    /**
245
+     * @inheritdoc
246
+     */
247
+    public function getGoogleRecommendedSchema(): array
248
+    {
249
+        return ['image', 'url'];
250
+    }
251 251
 
252 252
 
253
-	/**
254
-	 * @inheritdoc
255
-	 */
256
-	public function defineRules(): array
257
-	{
258
-		$rules = parent::defineRules();
259
-		    $rules = array_merge($rules, [
260
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
261
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
262
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
263
-		    ]);
253
+    /**
254
+     * @inheritdoc
255
+     */
256
+    public function defineRules(): array
257
+    {
258
+        $rules = parent::defineRules();
259
+            $rules = array_merge($rules, [
260
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
261
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
262
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
263
+            ]);
264 264
 
265
-		    return $rules;
266
-	}
265
+            return $rules;
266
+    }
267 267
 }
Please login to merge, or discard this patch.
src/models/jsonld/StatisticalPopulation.php 1 patch
Indentation   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -37,128 +37,128 @@
 block discarded – undo
37 37
  */
38 38
 class StatisticalPopulation extends MetaJsonLd implements StatisticalPopulationInterface, IntangibleInterface, ThingInterface
39 39
 {
40
-	use StatisticalPopulationTrait;
41
-	use IntangibleTrait;
42
-	use ThingTrait;
43
-
44
-	/**
45
-	 * The Schema.org Type Name
46
-	 *
47
-	 * @var string
48
-	 */
49
-	public static $schemaTypeName = 'StatisticalPopulation';
50
-
51
-	/**
52
-	 * The Schema.org Type Scope
53
-	 *
54
-	 * @var string
55
-	 */
56
-	public static $schemaTypeScope = 'https://schema.org/StatisticalPopulation';
57
-
58
-	/**
59
-	 * The Schema.org Type Extends
60
-	 *
61
-	 * @var string
62
-	 */
63
-	public static $schemaTypeExtends = 'Intangible';
64
-
65
-	/**
66
-	 * The Schema.org Type Description
67
-	 *
68
-	 * @var string
69
-	 */
70
-	public static $schemaTypeDescription = "A StatisticalPopulation is a set of instances of a certain given type that satisfy some set of constraints. The property [[populationType]] is used to specify the type. Any property that can be used on instances of that type can appear on the statistical population. For example, a [[StatisticalPopulation]] representing all [[Person]]s with a [[homeLocation]] of East Podunk California would be described by applying the appropriate [[homeLocation]] and [[populationType]] properties to a [[StatisticalPopulation]] item that stands for that set of people.\nThe properties [[numConstraints]] and [[constrainingProperty]] are used to specify which of the populations properties are used to specify the population. Note that the sense of \"population\" used here is the general sense of a statistical\npopulation, and does not imply that the population consists of people. For example, a [[populationType]] of [[Event]] or [[NewsArticle]] could be used. See also [[Observation]], and the [data and datasets](/docs/data-and-datasets.html) overview for more details.\n  ";
71
-
72
-
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyNames(): array
77
-	{
78
-		return array_keys($this->getSchemaPropertyExpectedTypes());
79
-	}
80
-
81
-
82
-	/**
83
-	 * @inheritdoc
84
-	 */
85
-	public function getSchemaPropertyExpectedTypes(): array
86
-	{
87
-		return [
88
-		    'additionalType' => ['URL'],
89
-		    'alternateName' => ['Text'],
90
-		    'constrainingProperty' => ['Integer'],
91
-		    'description' => ['Text'],
92
-		    'disambiguatingDescription' => ['Text'],
93
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
94
-		    'image' => ['URL', 'ImageObject'],
95
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
-		    'name' => ['Text'],
97
-		    'numConstraints' => ['Integer'],
98
-		    'populationType' => ['Class'],
99
-		    'potentialAction' => ['Action'],
100
-		    'sameAs' => ['URL'],
101
-		    'subjectOf' => ['Event', 'CreativeWork'],
102
-		    'url' => ['URL']
103
-		];
104
-	}
105
-
106
-
107
-	/**
108
-	 * @inheritdoc
109
-	 */
110
-	public function getSchemaPropertyDescriptions(): array
111
-	{
112
-		return [
113
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
114
-		    'alternateName' => 'An alias for the item.',
115
-		    'constrainingProperty' => 'Indicates a property used as a constraint to define a [[StatisticalPopulation]] with respect to the set of entities   corresponding to an indicated type (via [[populationType]]).',
116
-		    'description' => 'A description of the item.',
117
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
119
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
120
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
121
-		    'name' => 'The name of the item.',
122
-		    'numConstraints' => 'Indicates the number of constraints (not counting [[populationType]]) defined for a particular [[StatisticalPopulation]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalPopulation]].',
123
-		    'populationType' => 'Indicates the populationType common to all members of a [[StatisticalPopulation]].',
124
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
125
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
126
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
127
-		    'url' => 'URL of the item.'
128
-		];
129
-	}
130
-
131
-
132
-	/**
133
-	 * @inheritdoc
134
-	 */
135
-	public function getGoogleRequiredSchema(): array
136
-	{
137
-		return ['description', 'name'];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRecommendedSchema(): array
145
-	{
146
-		return ['image', 'url'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function defineRules(): array
154
-	{
155
-		$rules = parent::defineRules();
156
-		    $rules = array_merge($rules, [
157
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
158
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
159
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
160
-		    ]);
161
-
162
-		    return $rules;
163
-	}
40
+    use StatisticalPopulationTrait;
41
+    use IntangibleTrait;
42
+    use ThingTrait;
43
+
44
+    /**
45
+     * The Schema.org Type Name
46
+     *
47
+     * @var string
48
+     */
49
+    public static $schemaTypeName = 'StatisticalPopulation';
50
+
51
+    /**
52
+     * The Schema.org Type Scope
53
+     *
54
+     * @var string
55
+     */
56
+    public static $schemaTypeScope = 'https://schema.org/StatisticalPopulation';
57
+
58
+    /**
59
+     * The Schema.org Type Extends
60
+     *
61
+     * @var string
62
+     */
63
+    public static $schemaTypeExtends = 'Intangible';
64
+
65
+    /**
66
+     * The Schema.org Type Description
67
+     *
68
+     * @var string
69
+     */
70
+    public static $schemaTypeDescription = "A StatisticalPopulation is a set of instances of a certain given type that satisfy some set of constraints. The property [[populationType]] is used to specify the type. Any property that can be used on instances of that type can appear on the statistical population. For example, a [[StatisticalPopulation]] representing all [[Person]]s with a [[homeLocation]] of East Podunk California would be described by applying the appropriate [[homeLocation]] and [[populationType]] properties to a [[StatisticalPopulation]] item that stands for that set of people.\nThe properties [[numConstraints]] and [[constrainingProperty]] are used to specify which of the populations properties are used to specify the population. Note that the sense of \"population\" used here is the general sense of a statistical\npopulation, and does not imply that the population consists of people. For example, a [[populationType]] of [[Event]] or [[NewsArticle]] could be used. See also [[Observation]], and the [data and datasets](/docs/data-and-datasets.html) overview for more details.\n  ";
71
+
72
+
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyNames(): array
77
+    {
78
+        return array_keys($this->getSchemaPropertyExpectedTypes());
79
+    }
80
+
81
+
82
+    /**
83
+     * @inheritdoc
84
+     */
85
+    public function getSchemaPropertyExpectedTypes(): array
86
+    {
87
+        return [
88
+            'additionalType' => ['URL'],
89
+            'alternateName' => ['Text'],
90
+            'constrainingProperty' => ['Integer'],
91
+            'description' => ['Text'],
92
+            'disambiguatingDescription' => ['Text'],
93
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
94
+            'image' => ['URL', 'ImageObject'],
95
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
+            'name' => ['Text'],
97
+            'numConstraints' => ['Integer'],
98
+            'populationType' => ['Class'],
99
+            'potentialAction' => ['Action'],
100
+            'sameAs' => ['URL'],
101
+            'subjectOf' => ['Event', 'CreativeWork'],
102
+            'url' => ['URL']
103
+        ];
104
+    }
105
+
106
+
107
+    /**
108
+     * @inheritdoc
109
+     */
110
+    public function getSchemaPropertyDescriptions(): array
111
+    {
112
+        return [
113
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
114
+            'alternateName' => 'An alias for the item.',
115
+            'constrainingProperty' => 'Indicates a property used as a constraint to define a [[StatisticalPopulation]] with respect to the set of entities   corresponding to an indicated type (via [[populationType]]).',
116
+            'description' => 'A description of the item.',
117
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
119
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
120
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
121
+            'name' => 'The name of the item.',
122
+            'numConstraints' => 'Indicates the number of constraints (not counting [[populationType]]) defined for a particular [[StatisticalPopulation]]. This helps applications understand if they have access to a sufficiently complete description of a [[StatisticalPopulation]].',
123
+            'populationType' => 'Indicates the populationType common to all members of a [[StatisticalPopulation]].',
124
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
125
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
126
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
127
+            'url' => 'URL of the item.'
128
+        ];
129
+    }
130
+
131
+
132
+    /**
133
+     * @inheritdoc
134
+     */
135
+    public function getGoogleRequiredSchema(): array
136
+    {
137
+        return ['description', 'name'];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRecommendedSchema(): array
145
+    {
146
+        return ['image', 'url'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function defineRules(): array
154
+    {
155
+        $rules = parent::defineRules();
156
+            $rules = array_merge($rules, [
157
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
158
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
159
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
160
+            ]);
161
+
162
+            return $rules;
163
+    }
164 164
 }
Please login to merge, or discard this patch.
src/models/jsonld/SportsEvent.php 1 patch
Indentation   +208 added lines, -208 removed lines patch added patch discarded remove patch
@@ -23,212 +23,212 @@
 block discarded – undo
23 23
  */
24 24
 class SportsEvent extends MetaJsonLd implements SportsEventInterface, EventInterface, ThingInterface
25 25
 {
26
-	use SportsEventTrait;
27
-	use EventTrait;
28
-	use ThingTrait;
29
-
30
-	/**
31
-	 * The Schema.org Type Name
32
-	 *
33
-	 * @var string
34
-	 */
35
-	public static $schemaTypeName = 'SportsEvent';
36
-
37
-	/**
38
-	 * The Schema.org Type Scope
39
-	 *
40
-	 * @var string
41
-	 */
42
-	public static $schemaTypeScope = 'https://schema.org/SportsEvent';
43
-
44
-	/**
45
-	 * The Schema.org Type Extends
46
-	 *
47
-	 * @var string
48
-	 */
49
-	public static $schemaTypeExtends = 'Event';
50
-
51
-	/**
52
-	 * The Schema.org Type Description
53
-	 *
54
-	 * @var string
55
-	 */
56
-	public static $schemaTypeDescription = 'Event type: Sports event.';
57
-
58
-
59
-	/**
60
-	 * @inheritdoc
61
-	 */
62
-	public function getSchemaPropertyNames(): array
63
-	{
64
-		return array_keys($this->getSchemaPropertyExpectedTypes());
65
-	}
66
-
67
-
68
-	/**
69
-	 * @inheritdoc
70
-	 */
71
-	public function getSchemaPropertyExpectedTypes(): array
72
-	{
73
-		return [
74
-		    'about' => ['Thing'],
75
-		    'actor' => ['Person'],
76
-		    'additionalType' => ['URL'],
77
-		    'aggregateRating' => ['AggregateRating'],
78
-		    'alternateName' => ['Text'],
79
-		    'attendee' => ['Organization', 'Person'],
80
-		    'attendees' => ['Organization', 'Person'],
81
-		    'audience' => ['Audience'],
82
-		    'awayTeam' => ['SportsTeam', 'Person'],
83
-		    'competitor' => ['SportsTeam', 'Person'],
84
-		    'composer' => ['Organization', 'Person'],
85
-		    'contributor' => ['Organization', 'Person'],
86
-		    'description' => ['Text'],
87
-		    'director' => ['Person'],
88
-		    'disambiguatingDescription' => ['Text'],
89
-		    'doorTime' => ['Time', 'DateTime'],
90
-		    'duration' => ['Duration'],
91
-		    'endDate' => ['DateTime', 'Date'],
92
-		    'eventAttendanceMode' => ['EventAttendanceModeEnumeration'],
93
-		    'eventSchedule' => ['Schedule'],
94
-		    'eventStatus' => ['EventStatusType'],
95
-		    'funder' => ['Organization', 'Person'],
96
-		    'funding' => ['Grant'],
97
-		    'homeTeam' => ['SportsTeam', 'Person'],
98
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
99
-		    'image' => ['URL', 'ImageObject'],
100
-		    'inLanguage' => ['Text', 'Language'],
101
-		    'isAccessibleForFree' => ['Boolean'],
102
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
103
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
104
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
105
-		    'maximumAttendeeCapacity' => ['Integer'],
106
-		    'maximumPhysicalAttendeeCapacity' => ['Integer'],
107
-		    'maximumVirtualAttendeeCapacity' => ['Integer'],
108
-		    'name' => ['Text'],
109
-		    'offers' => ['Demand', 'Offer'],
110
-		    'organizer' => ['Organization', 'Person'],
111
-		    'performer' => ['Person', 'Organization'],
112
-		    'performers' => ['Person', 'Organization'],
113
-		    'potentialAction' => ['Action'],
114
-		    'previousStartDate' => ['Date'],
115
-		    'recordedIn' => ['CreativeWork'],
116
-		    'remainingAttendeeCapacity' => ['Integer'],
117
-		    'review' => ['Review'],
118
-		    'sameAs' => ['URL'],
119
-		    'sponsor' => ['Organization', 'Person'],
120
-		    'sport' => ['Text', 'URL'],
121
-		    'startDate' => ['DateTime', 'Date'],
122
-		    'subEvent' => ['Event'],
123
-		    'subEvents' => ['Event'],
124
-		    'subjectOf' => ['Event', 'CreativeWork'],
125
-		    'superEvent' => ['Event'],
126
-		    'translator' => ['Organization', 'Person'],
127
-		    'typicalAgeRange' => ['Text'],
128
-		    'url' => ['URL'],
129
-		    'workFeatured' => ['CreativeWork'],
130
-		    'workPerformed' => ['CreativeWork']
131
-		];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function getSchemaPropertyDescriptions(): array
139
-	{
140
-		return [
141
-		    'about' => 'The subject matter of the content.',
142
-		    'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.',
143
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
144
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
145
-		    'alternateName' => 'An alias for the item.',
146
-		    'attendee' => 'A person or organization attending the event.',
147
-		    'attendees' => 'A person attending the event.',
148
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
149
-		    'awayTeam' => 'The away team in a sports event.',
150
-		    'competitor' => 'A competitor in a sports event.',
151
-		    'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.',
152
-		    'contributor' => 'A secondary contributor to the CreativeWork or Event.',
153
-		    'description' => 'A description of the item.',
154
-		    'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.',
155
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
156
-		    'doorTime' => 'The time admission will commence.',
157
-		    'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).',
158
-		    'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
159
-		    'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.',
160
-		    'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of       repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly       gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that       is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated       [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months       or seasons.',
161
-		    'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.',
162
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
163
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
164
-		    'homeTeam' => 'The home team in a sports event.',
165
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
166
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
167
-		    'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
168
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
169
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
170
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
171
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
172
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
173
-		    'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ',
174
-		    'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ',
175
-		    'name' => 'The name of the item.',
176
-		    'offers' => 'An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.       ',
177
-		    'organizer' => 'An organizer of an Event.',
178
-		    'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.',
179
-		    'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.',
180
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
181
-		    'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.',
182
-		    'recordedIn' => 'The CreativeWork that captured all or part of this Event.',
183
-		    'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.',
184
-		    'review' => 'A review of the item.',
185
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
186
-		    'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
187
-		    'sport' => 'A type of sport (e.g. Baseball).',
188
-		    'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
189
-		    'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.',
190
-		    'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.',
191
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
192
-		    'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.',
193
-		    'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
194
-		    'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
195
-		    'url' => 'URL of the item.',
196
-		    'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent.        Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).',
197
-		    'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.'
198
-		];
199
-	}
200
-
201
-
202
-	/**
203
-	 * @inheritdoc
204
-	 */
205
-	public function getGoogleRequiredSchema(): array
206
-	{
207
-		return ['description', 'name'];
208
-	}
209
-
210
-
211
-	/**
212
-	 * @inheritdoc
213
-	 */
214
-	public function getGoogleRecommendedSchema(): array
215
-	{
216
-		return ['image', 'url'];
217
-	}
218
-
219
-
220
-	/**
221
-	 * @inheritdoc
222
-	 */
223
-	public function defineRules(): array
224
-	{
225
-		$rules = parent::defineRules();
226
-		    $rules = array_merge($rules, [
227
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
228
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
229
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
230
-		    ]);
231
-
232
-		    return $rules;
233
-	}
26
+    use SportsEventTrait;
27
+    use EventTrait;
28
+    use ThingTrait;
29
+
30
+    /**
31
+     * The Schema.org Type Name
32
+     *
33
+     * @var string
34
+     */
35
+    public static $schemaTypeName = 'SportsEvent';
36
+
37
+    /**
38
+     * The Schema.org Type Scope
39
+     *
40
+     * @var string
41
+     */
42
+    public static $schemaTypeScope = 'https://schema.org/SportsEvent';
43
+
44
+    /**
45
+     * The Schema.org Type Extends
46
+     *
47
+     * @var string
48
+     */
49
+    public static $schemaTypeExtends = 'Event';
50
+
51
+    /**
52
+     * The Schema.org Type Description
53
+     *
54
+     * @var string
55
+     */
56
+    public static $schemaTypeDescription = 'Event type: Sports event.';
57
+
58
+
59
+    /**
60
+     * @inheritdoc
61
+     */
62
+    public function getSchemaPropertyNames(): array
63
+    {
64
+        return array_keys($this->getSchemaPropertyExpectedTypes());
65
+    }
66
+
67
+
68
+    /**
69
+     * @inheritdoc
70
+     */
71
+    public function getSchemaPropertyExpectedTypes(): array
72
+    {
73
+        return [
74
+            'about' => ['Thing'],
75
+            'actor' => ['Person'],
76
+            'additionalType' => ['URL'],
77
+            'aggregateRating' => ['AggregateRating'],
78
+            'alternateName' => ['Text'],
79
+            'attendee' => ['Organization', 'Person'],
80
+            'attendees' => ['Organization', 'Person'],
81
+            'audience' => ['Audience'],
82
+            'awayTeam' => ['SportsTeam', 'Person'],
83
+            'competitor' => ['SportsTeam', 'Person'],
84
+            'composer' => ['Organization', 'Person'],
85
+            'contributor' => ['Organization', 'Person'],
86
+            'description' => ['Text'],
87
+            'director' => ['Person'],
88
+            'disambiguatingDescription' => ['Text'],
89
+            'doorTime' => ['Time', 'DateTime'],
90
+            'duration' => ['Duration'],
91
+            'endDate' => ['DateTime', 'Date'],
92
+            'eventAttendanceMode' => ['EventAttendanceModeEnumeration'],
93
+            'eventSchedule' => ['Schedule'],
94
+            'eventStatus' => ['EventStatusType'],
95
+            'funder' => ['Organization', 'Person'],
96
+            'funding' => ['Grant'],
97
+            'homeTeam' => ['SportsTeam', 'Person'],
98
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
99
+            'image' => ['URL', 'ImageObject'],
100
+            'inLanguage' => ['Text', 'Language'],
101
+            'isAccessibleForFree' => ['Boolean'],
102
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
103
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
104
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
105
+            'maximumAttendeeCapacity' => ['Integer'],
106
+            'maximumPhysicalAttendeeCapacity' => ['Integer'],
107
+            'maximumVirtualAttendeeCapacity' => ['Integer'],
108
+            'name' => ['Text'],
109
+            'offers' => ['Demand', 'Offer'],
110
+            'organizer' => ['Organization', 'Person'],
111
+            'performer' => ['Person', 'Organization'],
112
+            'performers' => ['Person', 'Organization'],
113
+            'potentialAction' => ['Action'],
114
+            'previousStartDate' => ['Date'],
115
+            'recordedIn' => ['CreativeWork'],
116
+            'remainingAttendeeCapacity' => ['Integer'],
117
+            'review' => ['Review'],
118
+            'sameAs' => ['URL'],
119
+            'sponsor' => ['Organization', 'Person'],
120
+            'sport' => ['Text', 'URL'],
121
+            'startDate' => ['DateTime', 'Date'],
122
+            'subEvent' => ['Event'],
123
+            'subEvents' => ['Event'],
124
+            'subjectOf' => ['Event', 'CreativeWork'],
125
+            'superEvent' => ['Event'],
126
+            'translator' => ['Organization', 'Person'],
127
+            'typicalAgeRange' => ['Text'],
128
+            'url' => ['URL'],
129
+            'workFeatured' => ['CreativeWork'],
130
+            'workPerformed' => ['CreativeWork']
131
+        ];
132
+    }
133
+
134
+
135
+    /**
136
+     * @inheritdoc
137
+     */
138
+    public function getSchemaPropertyDescriptions(): array
139
+    {
140
+        return [
141
+            'about' => 'The subject matter of the content.',
142
+            'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.',
143
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
144
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
145
+            'alternateName' => 'An alias for the item.',
146
+            'attendee' => 'A person or organization attending the event.',
147
+            'attendees' => 'A person attending the event.',
148
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
149
+            'awayTeam' => 'The away team in a sports event.',
150
+            'competitor' => 'A competitor in a sports event.',
151
+            'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.',
152
+            'contributor' => 'A secondary contributor to the CreativeWork or Event.',
153
+            'description' => 'A description of the item.',
154
+            'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.',
155
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
156
+            'doorTime' => 'The time admission will commence.',
157
+            'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).',
158
+            'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
159
+            'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.',
160
+            'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of       repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly       gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that       is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated       [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months       or seasons.',
161
+            'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.',
162
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
163
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
164
+            'homeTeam' => 'The home team in a sports event.',
165
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
166
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
167
+            'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
168
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
169
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
170
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
171
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
172
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
173
+            'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ',
174
+            'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ',
175
+            'name' => 'The name of the item.',
176
+            'offers' => 'An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. Use [[businessFunction]] to indicate the kind of transaction offered, i.e. sell, lease, etc. This property can also be used to describe a [[Demand]]. While this property is listed as expected on a number of common types, it can be used in others. In that case, using a second type, such as Product or a subtype of Product, can clarify the nature of the offer.       ',
177
+            'organizer' => 'An organizer of an Event.',
178
+            'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.',
179
+            'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.',
180
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
181
+            'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.',
182
+            'recordedIn' => 'The CreativeWork that captured all or part of this Event.',
183
+            'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.',
184
+            'review' => 'A review of the item.',
185
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
186
+            'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
187
+            'sport' => 'A type of sport (e.g. Baseball).',
188
+            'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
189
+            'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.',
190
+            'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.',
191
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
192
+            'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.',
193
+            'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
194
+            'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
195
+            'url' => 'URL of the item.',
196
+            'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent.        Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).',
197
+            'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.'
198
+        ];
199
+    }
200
+
201
+
202
+    /**
203
+     * @inheritdoc
204
+     */
205
+    public function getGoogleRequiredSchema(): array
206
+    {
207
+        return ['description', 'name'];
208
+    }
209
+
210
+
211
+    /**
212
+     * @inheritdoc
213
+     */
214
+    public function getGoogleRecommendedSchema(): array
215
+    {
216
+        return ['image', 'url'];
217
+    }
218
+
219
+
220
+    /**
221
+     * @inheritdoc
222
+     */
223
+    public function defineRules(): array
224
+    {
225
+        $rules = parent::defineRules();
226
+            $rules = array_merge($rules, [
227
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
228
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
229
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
230
+            ]);
231
+
232
+            return $rules;
233
+    }
234 234
 }
Please login to merge, or discard this patch.
src/models/jsonld/Suite.php 1 patch
Indentation   +222 added lines, -222 removed lines patch added patch discarded remove patch
@@ -28,243 +28,243 @@
 block discarded – undo
28 28
  */
29 29
 class Suite extends MetaJsonLd implements SuiteInterface, AccommodationInterface, PlaceInterface, ThingInterface
30 30
 {
31
-	use SuiteTrait;
32
-	use AccommodationTrait;
33
-	use PlaceTrait;
34
-	use ThingTrait;
31
+    use SuiteTrait;
32
+    use AccommodationTrait;
33
+    use PlaceTrait;
34
+    use ThingTrait;
35 35
 
36
-	/**
37
-	 * The Schema.org Type Name
38
-	 *
39
-	 * @var string
40
-	 */
41
-	public static $schemaTypeName = 'Suite';
36
+    /**
37
+     * The Schema.org Type Name
38
+     *
39
+     * @var string
40
+     */
41
+    public static $schemaTypeName = 'Suite';
42 42
 
43
-	/**
44
-	 * The Schema.org Type Scope
45
-	 *
46
-	 * @var string
47
-	 */
48
-	public static $schemaTypeScope = 'https://schema.org/Suite';
43
+    /**
44
+     * The Schema.org Type Scope
45
+     *
46
+     * @var string
47
+     */
48
+    public static $schemaTypeScope = 'https://schema.org/Suite';
49 49
 
50
-	/**
51
-	 * The Schema.org Type Extends
52
-	 *
53
-	 * @var string
54
-	 */
55
-	public static $schemaTypeExtends = 'Accommodation';
50
+    /**
51
+     * The Schema.org Type Extends
52
+     *
53
+     * @var string
54
+     */
55
+    public static $schemaTypeExtends = 'Accommodation';
56 56
 
57
-	/**
58
-	 * The Schema.org Type Description
59
-	 *
60
-	 * @var string
61
-	 */
62
-	public static $schemaTypeDescription = "A suite in a hotel or other public accommodation, denotes a class of luxury accommodations, the key feature of which is multiple rooms (source: Wikipedia, the free encyclopedia, see <a href=\"http://en.wikipedia.org/wiki/Suite_(hotel)\">http://en.wikipedia.org/wiki/Suite_(hotel)</a>).\n<br /><br />\nSee also the <a href=\"/docs/hotels.html\">dedicated document on the use of schema.org for marking up hotels and other forms of accommodations</a>.";
57
+    /**
58
+     * The Schema.org Type Description
59
+     *
60
+     * @var string
61
+     */
62
+    public static $schemaTypeDescription = "A suite in a hotel or other public accommodation, denotes a class of luxury accommodations, the key feature of which is multiple rooms (source: Wikipedia, the free encyclopedia, see <a href=\"http://en.wikipedia.org/wiki/Suite_(hotel)\">http://en.wikipedia.org/wiki/Suite_(hotel)</a>).\n<br /><br />\nSee also the <a href=\"/docs/hotels.html\">dedicated document on the use of schema.org for marking up hotels and other forms of accommodations</a>.";
63 63
 
64 64
 
65
-	/**
66
-	 * @inheritdoc
67
-	 */
68
-	public function getSchemaPropertyNames(): array
69
-	{
70
-		return array_keys($this->getSchemaPropertyExpectedTypes());
71
-	}
65
+    /**
66
+     * @inheritdoc
67
+     */
68
+    public function getSchemaPropertyNames(): array
69
+    {
70
+        return array_keys($this->getSchemaPropertyExpectedTypes());
71
+    }
72 72
 
73 73
 
74
-	/**
75
-	 * @inheritdoc
76
-	 */
77
-	public function getSchemaPropertyExpectedTypes(): array
78
-	{
79
-		return [
80
-		    'accommodationCategory' => ['Text'],
81
-		    'accommodationFloorPlan' => ['FloorPlan'],
82
-		    'additionalProperty' => ['PropertyValue'],
83
-		    'additionalType' => ['URL'],
84
-		    'address' => ['Text', 'PostalAddress'],
85
-		    'aggregateRating' => ['AggregateRating'],
86
-		    'alternateName' => ['Text'],
87
-		    'amenityFeature' => ['LocationFeatureSpecification'],
88
-		    'bed' => ['Text', 'BedDetails', 'BedType'],
89
-		    'branchCode' => ['Text'],
90
-		    'containedIn' => ['Place'],
91
-		    'containedInPlace' => ['Place'],
92
-		    'containsPlace' => ['Place'],
93
-		    'description' => ['Text'],
94
-		    'disambiguatingDescription' => ['Text'],
95
-		    'event' => ['Event'],
96
-		    'events' => ['Event'],
97
-		    'faxNumber' => ['Text'],
98
-		    'floorLevel' => ['Text'],
99
-		    'floorSize' => ['QuantitativeValue'],
100
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
101
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
102
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
103
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
104
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
105
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
106
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
107
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
108
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
109
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
110
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
111
-		    'globalLocationNumber' => ['Text'],
112
-		    'hasDriveThroughService' => ['Boolean'],
113
-		    'hasMap' => ['URL', 'Map'],
114
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
115
-		    'image' => ['URL', 'ImageObject'],
116
-		    'isAccessibleForFree' => ['Boolean'],
117
-		    'isicV4' => ['Text'],
118
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
119
-		    'latitude' => ['Number', 'Text'],
120
-		    'leaseLength' => ['QuantitativeValue', 'Duration'],
121
-		    'logo' => ['ImageObject', 'URL'],
122
-		    'longitude' => ['Text', 'Number'],
123
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
124
-		    'map' => ['URL'],
125
-		    'maps' => ['URL'],
126
-		    'maximumAttendeeCapacity' => ['Integer'],
127
-		    'name' => ['Text'],
128
-		    'numberOfBathroomsTotal' => ['Integer'],
129
-		    'numberOfBedrooms' => ['Number', 'QuantitativeValue'],
130
-		    'numberOfFullBathrooms' => ['Number'],
131
-		    'numberOfPartialBathrooms' => ['Number'],
132
-		    'numberOfRooms' => ['Number', 'QuantitativeValue'],
133
-		    'occupancy' => ['QuantitativeValue'],
134
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
135
-		    'permittedUsage' => ['Text'],
136
-		    'petsAllowed' => ['Text', 'Boolean'],
137
-		    'photo' => ['Photograph', 'ImageObject'],
138
-		    'photos' => ['ImageObject', 'Photograph'],
139
-		    'potentialAction' => ['Action'],
140
-		    'publicAccess' => ['Boolean'],
141
-		    'review' => ['Review'],
142
-		    'reviews' => ['Review'],
143
-		    'sameAs' => ['URL'],
144
-		    'slogan' => ['Text'],
145
-		    'smokingAllowed' => ['Boolean'],
146
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
147
-		    'subjectOf' => ['Event', 'CreativeWork'],
148
-		    'telephone' => ['Text'],
149
-		    'tourBookingPage' => ['URL'],
150
-		    'url' => ['URL'],
151
-		    'yearBuilt' => ['Number']
152
-		];
153
-	}
74
+    /**
75
+     * @inheritdoc
76
+     */
77
+    public function getSchemaPropertyExpectedTypes(): array
78
+    {
79
+        return [
80
+            'accommodationCategory' => ['Text'],
81
+            'accommodationFloorPlan' => ['FloorPlan'],
82
+            'additionalProperty' => ['PropertyValue'],
83
+            'additionalType' => ['URL'],
84
+            'address' => ['Text', 'PostalAddress'],
85
+            'aggregateRating' => ['AggregateRating'],
86
+            'alternateName' => ['Text'],
87
+            'amenityFeature' => ['LocationFeatureSpecification'],
88
+            'bed' => ['Text', 'BedDetails', 'BedType'],
89
+            'branchCode' => ['Text'],
90
+            'containedIn' => ['Place'],
91
+            'containedInPlace' => ['Place'],
92
+            'containsPlace' => ['Place'],
93
+            'description' => ['Text'],
94
+            'disambiguatingDescription' => ['Text'],
95
+            'event' => ['Event'],
96
+            'events' => ['Event'],
97
+            'faxNumber' => ['Text'],
98
+            'floorLevel' => ['Text'],
99
+            'floorSize' => ['QuantitativeValue'],
100
+            'geo' => ['GeoCoordinates', 'GeoShape'],
101
+            'geoContains' => ['Place', 'GeospatialGeometry'],
102
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
103
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
104
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
105
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
106
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
107
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
108
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
109
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
110
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
111
+            'globalLocationNumber' => ['Text'],
112
+            'hasDriveThroughService' => ['Boolean'],
113
+            'hasMap' => ['URL', 'Map'],
114
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
115
+            'image' => ['URL', 'ImageObject'],
116
+            'isAccessibleForFree' => ['Boolean'],
117
+            'isicV4' => ['Text'],
118
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
119
+            'latitude' => ['Number', 'Text'],
120
+            'leaseLength' => ['QuantitativeValue', 'Duration'],
121
+            'logo' => ['ImageObject', 'URL'],
122
+            'longitude' => ['Text', 'Number'],
123
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
124
+            'map' => ['URL'],
125
+            'maps' => ['URL'],
126
+            'maximumAttendeeCapacity' => ['Integer'],
127
+            'name' => ['Text'],
128
+            'numberOfBathroomsTotal' => ['Integer'],
129
+            'numberOfBedrooms' => ['Number', 'QuantitativeValue'],
130
+            'numberOfFullBathrooms' => ['Number'],
131
+            'numberOfPartialBathrooms' => ['Number'],
132
+            'numberOfRooms' => ['Number', 'QuantitativeValue'],
133
+            'occupancy' => ['QuantitativeValue'],
134
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
135
+            'permittedUsage' => ['Text'],
136
+            'petsAllowed' => ['Text', 'Boolean'],
137
+            'photo' => ['Photograph', 'ImageObject'],
138
+            'photos' => ['ImageObject', 'Photograph'],
139
+            'potentialAction' => ['Action'],
140
+            'publicAccess' => ['Boolean'],
141
+            'review' => ['Review'],
142
+            'reviews' => ['Review'],
143
+            'sameAs' => ['URL'],
144
+            'slogan' => ['Text'],
145
+            'smokingAllowed' => ['Boolean'],
146
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
147
+            'subjectOf' => ['Event', 'CreativeWork'],
148
+            'telephone' => ['Text'],
149
+            'tourBookingPage' => ['URL'],
150
+            'url' => ['URL'],
151
+            'yearBuilt' => ['Number']
152
+        ];
153
+    }
154 154
 
155 155
 
156
-	/**
157
-	 * @inheritdoc
158
-	 */
159
-	public function getSchemaPropertyDescriptions(): array
160
-	{
161
-		return [
162
-		    'accommodationCategory' => 'Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields  for suggested values).',
163
-		    'accommodationFloorPlan' => 'A floorplan of some [[Accommodation]].',
164
-		    'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
165
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
166
-		    'address' => 'Physical address of the item.',
167
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
168
-		    'alternateName' => 'An alias for the item.',
169
-		    'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
170
-		    'bed' => 'The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.       If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.',
171
-		    'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
172
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
173
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
174
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
175
-		    'description' => 'A description of the item.',
176
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
177
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
178
-		    'events' => 'Upcoming or past events associated with this place or organization.',
179
-		    'faxNumber' => 'The fax number.',
180
-		    'floorLevel' => 'The floor level for an [[Accommodation]] in a multi-storey building. Since counting   systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.',
181
-		    'floorSize' => 'The size of the accommodation, e.g. in square meter or squarefoot. Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard ',
182
-		    'geo' => 'The geo coordinates of the place.',
183
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
184
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
185
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
186
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
187
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
188
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
189
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
190
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
191
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
192
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
193
-		    'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
194
-		    'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
195
-		    'hasMap' => 'A URL to a map of the place.',
196
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
197
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
198
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
199
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
200
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
201
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
202
-		    'leaseLength' => 'Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.',
203
-		    'logo' => 'An associated logo.',
204
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
205
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
206
-		    'map' => 'A URL to a map of the place.',
207
-		    'maps' => 'A URL to a map of the place.',
208
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
209
-		    'name' => 'The name of the item.',
210
-		    'numberOfBathroomsTotal' => 'The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].',
211
-		    'numberOfBedrooms' => 'The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].',
212
-		    'numberOfFullBathrooms' => 'Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).',
213
-		    'numberOfPartialBathrooms' => 'Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). ',
214
-		    'numberOfRooms' => 'The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.',
215
-		    'occupancy' => 'The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). Typical unit code(s): C62 for person',
216
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
217
-		    'permittedUsage' => 'Indications regarding the permitted usage of the accommodation.',
218
-		    'petsAllowed' => 'Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.',
219
-		    'photo' => 'A photograph of this place.',
220
-		    'photos' => 'Photographs of this place.',
221
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
222
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
223
-		    'review' => 'A review of the item.',
224
-		    'reviews' => 'Review of the item.',
225
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
226
-		    'slogan' => 'A slogan or motto associated with the item.',
227
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
228
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
229
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
230
-		    'telephone' => 'The telephone number.',
231
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
232
-		    'url' => 'URL of the item.',
233
-		    'yearBuilt' => 'The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). '
234
-		];
235
-	}
156
+    /**
157
+     * @inheritdoc
158
+     */
159
+    public function getSchemaPropertyDescriptions(): array
160
+    {
161
+        return [
162
+            'accommodationCategory' => 'Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields  for suggested values).',
163
+            'accommodationFloorPlan' => 'A floorplan of some [[Accommodation]].',
164
+            'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
165
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
166
+            'address' => 'Physical address of the item.',
167
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
168
+            'alternateName' => 'An alias for the item.',
169
+            'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
170
+            'bed' => 'The type of bed or beds included in the accommodation. For the single case of just one bed of a certain type, you use bed directly with a text.       If you want to indicate the quantity of a certain kind of bed, use an instance of BedDetails. For more detailed information, use the amenityFeature property.',
171
+            'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
172
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
173
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
174
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
175
+            'description' => 'A description of the item.',
176
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
177
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
178
+            'events' => 'Upcoming or past events associated with this place or organization.',
179
+            'faxNumber' => 'The fax number.',
180
+            'floorLevel' => 'The floor level for an [[Accommodation]] in a multi-storey building. Since counting   systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.',
181
+            'floorSize' => 'The size of the accommodation, e.g. in square meter or squarefoot. Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard ',
182
+            'geo' => 'The geo coordinates of the place.',
183
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
184
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
185
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
186
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
187
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
188
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
189
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
190
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
191
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
192
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
193
+            'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
194
+            'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
195
+            'hasMap' => 'A URL to a map of the place.',
196
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
197
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
198
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
199
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
200
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
201
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
202
+            'leaseLength' => 'Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.',
203
+            'logo' => 'An associated logo.',
204
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
205
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
206
+            'map' => 'A URL to a map of the place.',
207
+            'maps' => 'A URL to a map of the place.',
208
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
209
+            'name' => 'The name of the item.',
210
+            'numberOfBathroomsTotal' => 'The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].',
211
+            'numberOfBedrooms' => 'The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].',
212
+            'numberOfFullBathrooms' => 'Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).',
213
+            'numberOfPartialBathrooms' => 'Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). ',
214
+            'numberOfRooms' => 'The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.',
215
+            'occupancy' => 'The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). Typical unit code(s): C62 for person',
216
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
217
+            'permittedUsage' => 'Indications regarding the permitted usage of the accommodation.',
218
+            'petsAllowed' => 'Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.',
219
+            'photo' => 'A photograph of this place.',
220
+            'photos' => 'Photographs of this place.',
221
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
222
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
223
+            'review' => 'A review of the item.',
224
+            'reviews' => 'Review of the item.',
225
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
226
+            'slogan' => 'A slogan or motto associated with the item.',
227
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
228
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
229
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
230
+            'telephone' => 'The telephone number.',
231
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
232
+            'url' => 'URL of the item.',
233
+            'yearBuilt' => 'The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). '
234
+        ];
235
+    }
236 236
 
237 237
 
238
-	/**
239
-	 * @inheritdoc
240
-	 */
241
-	public function getGoogleRequiredSchema(): array
242
-	{
243
-		return ['description', 'name'];
244
-	}
238
+    /**
239
+     * @inheritdoc
240
+     */
241
+    public function getGoogleRequiredSchema(): array
242
+    {
243
+        return ['description', 'name'];
244
+    }
245 245
 
246 246
 
247
-	/**
248
-	 * @inheritdoc
249
-	 */
250
-	public function getGoogleRecommendedSchema(): array
251
-	{
252
-		return ['image', 'url'];
253
-	}
247
+    /**
248
+     * @inheritdoc
249
+     */
250
+    public function getGoogleRecommendedSchema(): array
251
+    {
252
+        return ['image', 'url'];
253
+    }
254 254
 
255 255
 
256
-	/**
257
-	 * @inheritdoc
258
-	 */
259
-	public function defineRules(): array
260
-	{
261
-		$rules = parent::defineRules();
262
-		    $rules = array_merge($rules, [
263
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
264
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
265
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
266
-		    ]);
256
+    /**
257
+     * @inheritdoc
258
+     */
259
+    public function defineRules(): array
260
+    {
261
+        $rules = parent::defineRules();
262
+            $rules = array_merge($rules, [
263
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
264
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
265
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
266
+            ]);
267 267
 
268
-		    return $rules;
269
-	}
268
+            return $rules;
269
+    }
270 270
 }
Please login to merge, or discard this patch.
src/models/jsonld/GeospatialGeometry.php 1 patch
Indentation   +138 added lines, -138 removed lines patch added patch discarded remove patch
@@ -24,142 +24,142 @@
 block discarded – undo
24 24
  */
25 25
 class GeospatialGeometry extends MetaJsonLd implements GeospatialGeometryInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use GeospatialGeometryTrait;
28
-	use IntangibleTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'GeospatialGeometry';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/GeospatialGeometry';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'Intangible';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = '(Eventually to be defined as) a supertype of GeoShape designed to accommodate definitions from Geo-Spatial best practices.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'additionalType' => ['URL'],
76
-		    'alternateName' => ['Text'],
77
-		    'description' => ['Text'],
78
-		    'disambiguatingDescription' => ['Text'],
79
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
80
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
81
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
82
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
83
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
84
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
85
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
86
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
87
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
88
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
89
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
90
-		    'image' => ['URL', 'ImageObject'],
91
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
92
-		    'name' => ['Text'],
93
-		    'potentialAction' => ['Action'],
94
-		    'sameAs' => ['URL'],
95
-		    'subjectOf' => ['Event', 'CreativeWork'],
96
-		    'url' => ['URL']
97
-		];
98
-	}
99
-
100
-
101
-	/**
102
-	 * @inheritdoc
103
-	 */
104
-	public function getSchemaPropertyDescriptions(): array
105
-	{
106
-		return [
107
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
108
-		    'alternateName' => 'An alias for the item.',
109
-		    'description' => 'A description of the item.',
110
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
111
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
112
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
113
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
114
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
115
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
116
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
117
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
118
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
119
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
120
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
121
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
124
-		    'name' => 'The name of the item.',
125
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
126
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
127
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
128
-		    'url' => 'URL of the item.'
129
-		];
130
-	}
131
-
132
-
133
-	/**
134
-	 * @inheritdoc
135
-	 */
136
-	public function getGoogleRequiredSchema(): array
137
-	{
138
-		return ['description', 'name'];
139
-	}
140
-
141
-
142
-	/**
143
-	 * @inheritdoc
144
-	 */
145
-	public function getGoogleRecommendedSchema(): array
146
-	{
147
-		return ['image', 'url'];
148
-	}
149
-
150
-
151
-	/**
152
-	 * @inheritdoc
153
-	 */
154
-	public function defineRules(): array
155
-	{
156
-		$rules = parent::defineRules();
157
-		    $rules = array_merge($rules, [
158
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
159
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
160
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
161
-		    ]);
162
-
163
-		    return $rules;
164
-	}
27
+    use GeospatialGeometryTrait;
28
+    use IntangibleTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'GeospatialGeometry';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/GeospatialGeometry';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'Intangible';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = '(Eventually to be defined as) a supertype of GeoShape designed to accommodate definitions from Geo-Spatial best practices.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'additionalType' => ['URL'],
76
+            'alternateName' => ['Text'],
77
+            'description' => ['Text'],
78
+            'disambiguatingDescription' => ['Text'],
79
+            'geoContains' => ['Place', 'GeospatialGeometry'],
80
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
81
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
82
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
83
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
84
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
85
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
86
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
87
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
88
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
89
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
90
+            'image' => ['URL', 'ImageObject'],
91
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
92
+            'name' => ['Text'],
93
+            'potentialAction' => ['Action'],
94
+            'sameAs' => ['URL'],
95
+            'subjectOf' => ['Event', 'CreativeWork'],
96
+            'url' => ['URL']
97
+        ];
98
+    }
99
+
100
+
101
+    /**
102
+     * @inheritdoc
103
+     */
104
+    public function getSchemaPropertyDescriptions(): array
105
+    {
106
+        return [
107
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
108
+            'alternateName' => 'An alias for the item.',
109
+            'description' => 'A description of the item.',
110
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
111
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
112
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
113
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
114
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
115
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
116
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
117
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
118
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
119
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
120
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
121
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
124
+            'name' => 'The name of the item.',
125
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
126
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
127
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
128
+            'url' => 'URL of the item.'
129
+        ];
130
+    }
131
+
132
+
133
+    /**
134
+     * @inheritdoc
135
+     */
136
+    public function getGoogleRequiredSchema(): array
137
+    {
138
+        return ['description', 'name'];
139
+    }
140
+
141
+
142
+    /**
143
+     * @inheritdoc
144
+     */
145
+    public function getGoogleRecommendedSchema(): array
146
+    {
147
+        return ['image', 'url'];
148
+    }
149
+
150
+
151
+    /**
152
+     * @inheritdoc
153
+     */
154
+    public function defineRules(): array
155
+    {
156
+        $rules = parent::defineRules();
157
+            $rules = array_merge($rules, [
158
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
159
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
160
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
161
+            ]);
162
+
163
+            return $rules;
164
+    }
165 165
 }
Please login to merge, or discard this patch.
src/models/jsonld/HobbyShop.php 1 patch
Indentation   +310 added lines, -310 removed lines patch added patch discarded remove patch
@@ -23,331 +23,331 @@
 block discarded – undo
23 23
  */
24 24
 class HobbyShop extends MetaJsonLd implements HobbyShopInterface, StoreInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface
25 25
 {
26
-	use HobbyShopTrait;
27
-	use StoreTrait;
28
-	use LocalBusinessTrait;
29
-	use PlaceTrait;
30
-	use ThingTrait;
31
-	use OrganizationTrait;
26
+    use HobbyShopTrait;
27
+    use StoreTrait;
28
+    use LocalBusinessTrait;
29
+    use PlaceTrait;
30
+    use ThingTrait;
31
+    use OrganizationTrait;
32 32
 
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'HobbyShop';
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'HobbyShop';
39 39
 
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/HobbyShop';
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/HobbyShop';
46 46
 
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'Store';
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'Store';
53 53
 
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A store that sells materials useful or necessary for various hobbies.';
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A store that sells materials useful or necessary for various hobbies.';
60 60
 
61 61
 
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69 69
 
70 70
 
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
78
-		    'additionalProperty' => ['PropertyValue'],
79
-		    'additionalType' => ['URL'],
80
-		    'address' => ['Text', 'PostalAddress'],
81
-		    'aggregateRating' => ['AggregateRating'],
82
-		    'alternateName' => ['Text'],
83
-		    'alumni' => ['Person'],
84
-		    'amenityFeature' => ['LocationFeatureSpecification'],
85
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
86
-		    'award' => ['Text'],
87
-		    'awards' => ['Text'],
88
-		    'branchCode' => ['Text'],
89
-		    'branchOf' => ['Organization'],
90
-		    'brand' => ['Brand', 'Organization'],
91
-		    'contactPoint' => ['ContactPoint'],
92
-		    'contactPoints' => ['ContactPoint'],
93
-		    'containedIn' => ['Place'],
94
-		    'containedInPlace' => ['Place'],
95
-		    'containsPlace' => ['Place'],
96
-		    'correctionsPolicy' => ['URL', 'CreativeWork'],
97
-		    'currenciesAccepted' => ['Text'],
98
-		    'department' => ['Organization'],
99
-		    'description' => ['Text'],
100
-		    'disambiguatingDescription' => ['Text'],
101
-		    'dissolutionDate' => ['Date'],
102
-		    'diversityPolicy' => ['URL', 'CreativeWork'],
103
-		    'diversityStaffingReport' => ['Article', 'URL'],
104
-		    'duns' => ['Text'],
105
-		    'email' => ['Text'],
106
-		    'employee' => ['Person'],
107
-		    'employees' => ['Person'],
108
-		    'ethicsPolicy' => ['CreativeWork', 'URL'],
109
-		    'event' => ['Event'],
110
-		    'events' => ['Event'],
111
-		    'faxNumber' => ['Text'],
112
-		    'founder' => ['Person'],
113
-		    'founders' => ['Person'],
114
-		    'foundingDate' => ['Date'],
115
-		    'foundingLocation' => ['Place'],
116
-		    'funder' => ['Organization', 'Person'],
117
-		    'funding' => ['Grant'],
118
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
119
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
120
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
121
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
122
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
123
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
124
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
125
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
126
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
127
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
128
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
129
-		    'globalLocationNumber' => ['Text'],
130
-		    'hasCredential' => ['EducationalOccupationalCredential'],
131
-		    'hasDriveThroughService' => ['Boolean'],
132
-		    'hasMap' => ['URL', 'Map'],
133
-		    'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
134
-		    'hasOfferCatalog' => ['OfferCatalog'],
135
-		    'hasPOS' => ['Place'],
136
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
137
-		    'image' => ['URL', 'ImageObject'],
138
-		    'interactionStatistic' => ['InteractionCounter'],
139
-		    'isAccessibleForFree' => ['Boolean'],
140
-		    'isicV4' => ['Text'],
141
-		    'iso6523Code' => ['Text'],
142
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
143
-		    'knowsAbout' => ['Thing', 'Text', 'URL'],
144
-		    'knowsLanguage' => ['Text', 'Language'],
145
-		    'latitude' => ['Number', 'Text'],
146
-		    'legalName' => ['Text'],
147
-		    'leiCode' => ['Text'],
148
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
149
-		    'logo' => ['ImageObject', 'URL'],
150
-		    'longitude' => ['Text', 'Number'],
151
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
152
-		    'makesOffer' => ['Offer'],
153
-		    'map' => ['URL'],
154
-		    'maps' => ['URL'],
155
-		    'maximumAttendeeCapacity' => ['Integer'],
156
-		    'member' => ['Organization', 'Person'],
157
-		    'memberOf' => ['Organization', 'ProgramMembership'],
158
-		    'members' => ['Organization', 'Person'],
159
-		    'naics' => ['Text'],
160
-		    'name' => ['Text'],
161
-		    'nonprofitStatus' => ['NonprofitType'],
162
-		    'numberOfEmployees' => ['QuantitativeValue'],
163
-		    'openingHours' => ['Text'],
164
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
165
-		    'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
166
-		    'owns' => ['Product', 'OwnershipInfo'],
167
-		    'parentOrganization' => ['Organization'],
168
-		    'paymentAccepted' => ['Text'],
169
-		    'photo' => ['Photograph', 'ImageObject'],
170
-		    'photos' => ['ImageObject', 'Photograph'],
171
-		    'potentialAction' => ['Action'],
172
-		    'priceRange' => ['Text'],
173
-		    'publicAccess' => ['Boolean'],
174
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
175
-		    'review' => ['Review'],
176
-		    'reviews' => ['Review'],
177
-		    'sameAs' => ['URL'],
178
-		    'seeks' => ['Demand'],
179
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
180
-		    'slogan' => ['Text'],
181
-		    'smokingAllowed' => ['Boolean'],
182
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
183
-		    'sponsor' => ['Organization', 'Person'],
184
-		    'subOrganization' => ['Organization'],
185
-		    'subjectOf' => ['Event', 'CreativeWork'],
186
-		    'taxID' => ['Text'],
187
-		    'telephone' => ['Text'],
188
-		    'tourBookingPage' => ['URL'],
189
-		    'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
190
-		    'url' => ['URL'],
191
-		    'vatID' => ['Text']
192
-		];
193
-	}
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
78
+            'additionalProperty' => ['PropertyValue'],
79
+            'additionalType' => ['URL'],
80
+            'address' => ['Text', 'PostalAddress'],
81
+            'aggregateRating' => ['AggregateRating'],
82
+            'alternateName' => ['Text'],
83
+            'alumni' => ['Person'],
84
+            'amenityFeature' => ['LocationFeatureSpecification'],
85
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
86
+            'award' => ['Text'],
87
+            'awards' => ['Text'],
88
+            'branchCode' => ['Text'],
89
+            'branchOf' => ['Organization'],
90
+            'brand' => ['Brand', 'Organization'],
91
+            'contactPoint' => ['ContactPoint'],
92
+            'contactPoints' => ['ContactPoint'],
93
+            'containedIn' => ['Place'],
94
+            'containedInPlace' => ['Place'],
95
+            'containsPlace' => ['Place'],
96
+            'correctionsPolicy' => ['URL', 'CreativeWork'],
97
+            'currenciesAccepted' => ['Text'],
98
+            'department' => ['Organization'],
99
+            'description' => ['Text'],
100
+            'disambiguatingDescription' => ['Text'],
101
+            'dissolutionDate' => ['Date'],
102
+            'diversityPolicy' => ['URL', 'CreativeWork'],
103
+            'diversityStaffingReport' => ['Article', 'URL'],
104
+            'duns' => ['Text'],
105
+            'email' => ['Text'],
106
+            'employee' => ['Person'],
107
+            'employees' => ['Person'],
108
+            'ethicsPolicy' => ['CreativeWork', 'URL'],
109
+            'event' => ['Event'],
110
+            'events' => ['Event'],
111
+            'faxNumber' => ['Text'],
112
+            'founder' => ['Person'],
113
+            'founders' => ['Person'],
114
+            'foundingDate' => ['Date'],
115
+            'foundingLocation' => ['Place'],
116
+            'funder' => ['Organization', 'Person'],
117
+            'funding' => ['Grant'],
118
+            'geo' => ['GeoCoordinates', 'GeoShape'],
119
+            'geoContains' => ['Place', 'GeospatialGeometry'],
120
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
121
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
122
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
123
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
124
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
125
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
126
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
127
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
128
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
129
+            'globalLocationNumber' => ['Text'],
130
+            'hasCredential' => ['EducationalOccupationalCredential'],
131
+            'hasDriveThroughService' => ['Boolean'],
132
+            'hasMap' => ['URL', 'Map'],
133
+            'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
134
+            'hasOfferCatalog' => ['OfferCatalog'],
135
+            'hasPOS' => ['Place'],
136
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
137
+            'image' => ['URL', 'ImageObject'],
138
+            'interactionStatistic' => ['InteractionCounter'],
139
+            'isAccessibleForFree' => ['Boolean'],
140
+            'isicV4' => ['Text'],
141
+            'iso6523Code' => ['Text'],
142
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
143
+            'knowsAbout' => ['Thing', 'Text', 'URL'],
144
+            'knowsLanguage' => ['Text', 'Language'],
145
+            'latitude' => ['Number', 'Text'],
146
+            'legalName' => ['Text'],
147
+            'leiCode' => ['Text'],
148
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
149
+            'logo' => ['ImageObject', 'URL'],
150
+            'longitude' => ['Text', 'Number'],
151
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
152
+            'makesOffer' => ['Offer'],
153
+            'map' => ['URL'],
154
+            'maps' => ['URL'],
155
+            'maximumAttendeeCapacity' => ['Integer'],
156
+            'member' => ['Organization', 'Person'],
157
+            'memberOf' => ['Organization', 'ProgramMembership'],
158
+            'members' => ['Organization', 'Person'],
159
+            'naics' => ['Text'],
160
+            'name' => ['Text'],
161
+            'nonprofitStatus' => ['NonprofitType'],
162
+            'numberOfEmployees' => ['QuantitativeValue'],
163
+            'openingHours' => ['Text'],
164
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
165
+            'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
166
+            'owns' => ['Product', 'OwnershipInfo'],
167
+            'parentOrganization' => ['Organization'],
168
+            'paymentAccepted' => ['Text'],
169
+            'photo' => ['Photograph', 'ImageObject'],
170
+            'photos' => ['ImageObject', 'Photograph'],
171
+            'potentialAction' => ['Action'],
172
+            'priceRange' => ['Text'],
173
+            'publicAccess' => ['Boolean'],
174
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
175
+            'review' => ['Review'],
176
+            'reviews' => ['Review'],
177
+            'sameAs' => ['URL'],
178
+            'seeks' => ['Demand'],
179
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
180
+            'slogan' => ['Text'],
181
+            'smokingAllowed' => ['Boolean'],
182
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
183
+            'sponsor' => ['Organization', 'Person'],
184
+            'subOrganization' => ['Organization'],
185
+            'subjectOf' => ['Event', 'CreativeWork'],
186
+            'taxID' => ['Text'],
187
+            'telephone' => ['Text'],
188
+            'tourBookingPage' => ['URL'],
189
+            'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
190
+            'url' => ['URL'],
191
+            'vatID' => ['Text']
192
+        ];
193
+    }
194 194
 
195 195
 
196
-	/**
197
-	 * @inheritdoc
198
-	 */
199
-	public function getSchemaPropertyDescriptions(): array
200
-	{
201
-		return [
202
-		    'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.',
203
-		    'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
204
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
205
-		    'address' => 'Physical address of the item.',
206
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
207
-		    'alternateName' => 'An alias for the item.',
208
-		    'alumni' => 'Alumni of an organization.',
209
-		    'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
210
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
211
-		    'award' => 'An award won by or for this item.',
212
-		    'awards' => 'Awards won by or for this item.',
213
-		    'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
214
-		    'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
215
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
216
-		    'contactPoint' => 'A contact point for a person or organization.',
217
-		    'contactPoints' => 'A contact point for a person or organization.',
218
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
219
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
220
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
221
-		    'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
222
-		    'currenciesAccepted' => 'The currency accepted.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
223
-		    'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.',
224
-		    'description' => 'A description of the item.',
225
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
226
-		    'dissolutionDate' => 'The date that this organization was dissolved.',
227
-		    'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.',
228
-		    'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.',
229
-		    'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
230
-		    'email' => 'Email address.',
231
-		    'employee' => 'Someone working for this organization.',
232
-		    'employees' => 'People working for this organization.',
233
-		    'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.',
234
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
235
-		    'events' => 'Upcoming or past events associated with this place or organization.',
236
-		    'faxNumber' => 'The fax number.',
237
-		    'founder' => 'A person who founded this organization.',
238
-		    'founders' => 'A person who founded this organization.',
239
-		    'foundingDate' => 'The date that this organization was founded.',
240
-		    'foundingLocation' => 'The place where the Organization was founded.',
241
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
242
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
243
-		    'geo' => 'The geo coordinates of the place.',
244
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
245
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
246
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
247
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
248
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
249
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
250
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
251
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
252
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
253
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
254
-		    'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
255
-		    'hasCredential' => 'A credential awarded to the Person or Organization.',
256
-		    'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
257
-		    'hasMap' => 'A URL to a map of the place.',
258
-		    'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
259
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
260
-		    'hasPOS' => 'Points-of-Sales operated by the organization or person.',
261
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
262
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
263
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
264
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
265
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
266
-		    'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ',
267
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
268
-		    'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.',
269
-		    'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).',
270
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
271
-		    'legalName' => 'The official name of the organization, e.g. the registered company name.',
272
-		    'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
273
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
274
-		    'logo' => 'An associated logo.',
275
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
276
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
277
-		    'makesOffer' => 'A pointer to products or services offered by the organization or person.',
278
-		    'map' => 'A URL to a map of the place.',
279
-		    'maps' => 'A URL to a map of the place.',
280
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
281
-		    'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
282
-		    'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
283
-		    'members' => 'A member of this organization.',
284
-		    'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
285
-		    'name' => 'The name of the item.',
286
-		    'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
287
-		    'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
288
-		    'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
289
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
290
-		    'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence.   Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.',
291
-		    'owns' => 'Products owned by the organization or person.',
292
-		    'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
293
-		    'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
294
-		    'photo' => 'A photograph of this place.',
295
-		    'photos' => 'Photographs of this place.',
296
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
297
-		    'priceRange' => 'The price range of the business, for example ```$$$```.',
298
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
299
-		    'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
300
-		    'review' => 'A review of the item.',
301
-		    'reviews' => 'Review of the item.',
302
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
303
-		    'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
304
-		    'serviceArea' => 'The geographic area where the service is provided.',
305
-		    'slogan' => 'A slogan or motto associated with the item.',
306
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
307
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
308
-		    'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
309
-		    'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
310
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
311
-		    'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
312
-		    'telephone' => 'The telephone number.',
313
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
314
-		    'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
315
-		    'url' => 'URL of the item.',
316
-		    'vatID' => 'The Value-added Tax ID of the organization or person.'
317
-		];
318
-	}
196
+    /**
197
+     * @inheritdoc
198
+     */
199
+    public function getSchemaPropertyDescriptions(): array
200
+    {
201
+        return [
202
+            'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.',
203
+            'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
204
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
205
+            'address' => 'Physical address of the item.',
206
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
207
+            'alternateName' => 'An alias for the item.',
208
+            'alumni' => 'Alumni of an organization.',
209
+            'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
210
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
211
+            'award' => 'An award won by or for this item.',
212
+            'awards' => 'Awards won by or for this item.',
213
+            'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
214
+            'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
215
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
216
+            'contactPoint' => 'A contact point for a person or organization.',
217
+            'contactPoints' => 'A contact point for a person or organization.',
218
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
219
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
220
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
221
+            'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
222
+            'currenciesAccepted' => 'The currency accepted.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
223
+            'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.',
224
+            'description' => 'A description of the item.',
225
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
226
+            'dissolutionDate' => 'The date that this organization was dissolved.',
227
+            'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.',
228
+            'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.',
229
+            'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
230
+            'email' => 'Email address.',
231
+            'employee' => 'Someone working for this organization.',
232
+            'employees' => 'People working for this organization.',
233
+            'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.',
234
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
235
+            'events' => 'Upcoming or past events associated with this place or organization.',
236
+            'faxNumber' => 'The fax number.',
237
+            'founder' => 'A person who founded this organization.',
238
+            'founders' => 'A person who founded this organization.',
239
+            'foundingDate' => 'The date that this organization was founded.',
240
+            'foundingLocation' => 'The place where the Organization was founded.',
241
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
242
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
243
+            'geo' => 'The geo coordinates of the place.',
244
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
245
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
246
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
247
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
248
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
249
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
250
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
251
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
252
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
253
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
254
+            'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
255
+            'hasCredential' => 'A credential awarded to the Person or Organization.',
256
+            'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
257
+            'hasMap' => 'A URL to a map of the place.',
258
+            'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
259
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
260
+            'hasPOS' => 'Points-of-Sales operated by the organization or person.',
261
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
262
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
263
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
264
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
265
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
266
+            'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ',
267
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
268
+            'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.',
269
+            'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).',
270
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
271
+            'legalName' => 'The official name of the organization, e.g. the registered company name.',
272
+            'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
273
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
274
+            'logo' => 'An associated logo.',
275
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
276
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
277
+            'makesOffer' => 'A pointer to products or services offered by the organization or person.',
278
+            'map' => 'A URL to a map of the place.',
279
+            'maps' => 'A URL to a map of the place.',
280
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
281
+            'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
282
+            'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
283
+            'members' => 'A member of this organization.',
284
+            'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
285
+            'name' => 'The name of the item.',
286
+            'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
287
+            'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
288
+            'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
289
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
290
+            'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence.   Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.',
291
+            'owns' => 'Products owned by the organization or person.',
292
+            'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
293
+            'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
294
+            'photo' => 'A photograph of this place.',
295
+            'photos' => 'Photographs of this place.',
296
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
297
+            'priceRange' => 'The price range of the business, for example ```$$$```.',
298
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
299
+            'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
300
+            'review' => 'A review of the item.',
301
+            'reviews' => 'Review of the item.',
302
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
303
+            'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
304
+            'serviceArea' => 'The geographic area where the service is provided.',
305
+            'slogan' => 'A slogan or motto associated with the item.',
306
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
307
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
308
+            'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
309
+            'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
310
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
311
+            'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
312
+            'telephone' => 'The telephone number.',
313
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
314
+            'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
315
+            'url' => 'URL of the item.',
316
+            'vatID' => 'The Value-added Tax ID of the organization or person.'
317
+        ];
318
+    }
319 319
 
320 320
 
321
-	/**
322
-	 * @inheritdoc
323
-	 */
324
-	public function getGoogleRequiredSchema(): array
325
-	{
326
-		return ['description', 'name'];
327
-	}
321
+    /**
322
+     * @inheritdoc
323
+     */
324
+    public function getGoogleRequiredSchema(): array
325
+    {
326
+        return ['description', 'name'];
327
+    }
328 328
 
329 329
 
330
-	/**
331
-	 * @inheritdoc
332
-	 */
333
-	public function getGoogleRecommendedSchema(): array
334
-	{
335
-		return ['image', 'url'];
336
-	}
330
+    /**
331
+     * @inheritdoc
332
+     */
333
+    public function getGoogleRecommendedSchema(): array
334
+    {
335
+        return ['image', 'url'];
336
+    }
337 337
 
338 338
 
339
-	/**
340
-	 * @inheritdoc
341
-	 */
342
-	public function defineRules(): array
343
-	{
344
-		$rules = parent::defineRules();
345
-		    $rules = array_merge($rules, [
346
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
347
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
348
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
349
-		    ]);
339
+    /**
340
+     * @inheritdoc
341
+     */
342
+    public function defineRules(): array
343
+    {
344
+        $rules = parent::defineRules();
345
+            $rules = array_merge($rules, [
346
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
347
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
348
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
349
+            ]);
350 350
 
351
-		    return $rules;
352
-	}
351
+            return $rules;
352
+    }
353 353
 }
Please login to merge, or discard this patch.
src/models/jsonld/Protein.php 1 patch
Indentation   +146 added lines, -146 removed lines patch added patch discarded remove patch
@@ -29,150 +29,150 @@
 block discarded – undo
29 29
  */
30 30
 class Protein extends MetaJsonLd implements ProteinInterface, BioChemEntityInterface, ThingInterface
31 31
 {
32
-	use ProteinTrait;
33
-	use BioChemEntityTrait;
34
-	use ThingTrait;
35
-
36
-	/**
37
-	 * The Schema.org Type Name
38
-	 *
39
-	 * @var string
40
-	 */
41
-	public static $schemaTypeName = 'Protein';
42
-
43
-	/**
44
-	 * The Schema.org Type Scope
45
-	 *
46
-	 * @var string
47
-	 */
48
-	public static $schemaTypeScope = 'https://schema.org/Protein';
49
-
50
-	/**
51
-	 * The Schema.org Type Extends
52
-	 *
53
-	 * @var string
54
-	 */
55
-	public static $schemaTypeExtends = 'BioChemEntity';
56
-
57
-	/**
58
-	 * The Schema.org Type Description
59
-	 *
60
-	 * @var string
61
-	 */
62
-	public static $schemaTypeDescription = 'Protein is here used in its widest possible definition, as classes of amino acid based molecules. Amyloid-beta Protein in human (UniProt P05067), eukaryota (e.g. an OrthoDB group) or even a single molecule that one can point to are all of type schema:Protein. A protein can thus be a subclass of another protein, e.g. schema:Protein as a UniProt record can have multiple isoforms inside it which would also be schema:Protein. They can be imagined, synthetic, hypothetical or naturally occurring.';
63
-
64
-
65
-	/**
66
-	 * @inheritdoc
67
-	 */
68
-	public function getSchemaPropertyNames(): array
69
-	{
70
-		return array_keys($this->getSchemaPropertyExpectedTypes());
71
-	}
72
-
73
-
74
-	/**
75
-	 * @inheritdoc
76
-	 */
77
-	public function getSchemaPropertyExpectedTypes(): array
78
-	{
79
-		return [
80
-		    'additionalType' => ['URL'],
81
-		    'alternateName' => ['Text'],
82
-		    'associatedDisease' => ['MedicalCondition', 'URL', 'PropertyValue'],
83
-		    'bioChemInteraction' => ['BioChemEntity'],
84
-		    'bioChemSimilarity' => ['BioChemEntity'],
85
-		    'biologicalRole' => ['DefinedTerm'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'funding' => ['Grant'],
89
-		    'hasBioChemEntityPart' => ['BioChemEntity'],
90
-		    'hasBioPolymerSequence' => ['Text'],
91
-		    'hasMolecularFunction' => ['URL', 'DefinedTerm', 'PropertyValue'],
92
-		    'hasRepresentation' => ['Text', 'URL', 'PropertyValue'],
93
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
94
-		    'image' => ['URL', 'ImageObject'],
95
-		    'isEncodedByBioChemEntity' => ['Gene'],
96
-		    'isInvolvedInBiologicalProcess' => ['DefinedTerm', 'PropertyValue', 'URL'],
97
-		    'isLocatedInSubcellularLocation' => ['URL', 'DefinedTerm', 'PropertyValue'],
98
-		    'isPartOfBioChemEntity' => ['BioChemEntity'],
99
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
100
-		    'name' => ['Text'],
101
-		    'potentialAction' => ['Action'],
102
-		    'sameAs' => ['URL'],
103
-		    'subjectOf' => ['Event', 'CreativeWork'],
104
-		    'taxonomicRange' => ['URL', 'DefinedTerm', 'Text', 'Taxon'],
105
-		    'url' => ['URL']
106
-		];
107
-	}
108
-
109
-
110
-	/**
111
-	 * @inheritdoc
112
-	 */
113
-	public function getSchemaPropertyDescriptions(): array
114
-	{
115
-		return [
116
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
-		    'alternateName' => 'An alias for the item.',
118
-		    'associatedDisease' => 'Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue.',
119
-		    'bioChemInteraction' => 'A BioChemEntity that is known to interact with this item.',
120
-		    'bioChemSimilarity' => 'A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.',
121
-		    'biologicalRole' => 'A role played by the BioChemEntity within a biological context.',
122
-		    'description' => 'A description of the item.',
123
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
124
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
125
-		    'hasBioChemEntityPart' => 'Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part. ',
126
-		    'hasBioPolymerSequence' => 'A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.',
127
-		    'hasMolecularFunction' => 'Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.',
128
-		    'hasRepresentation' => 'A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.',
129
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
130
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
131
-		    'isEncodedByBioChemEntity' => 'Another BioChemEntity encoding by this one.',
132
-		    'isInvolvedInBiologicalProcess' => 'Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence.',
133
-		    'isLocatedInSubcellularLocation' => 'Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence.',
134
-		    'isPartOfBioChemEntity' => 'Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity. ',
135
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
136
-		    'name' => 'The name of the item.',
137
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
138
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
139
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
140
-		    'taxonomicRange' => 'The taxonomic grouping of the organism that expresses, encodes, or in some way related to the BioChemEntity.',
141
-		    'url' => 'URL of the item.'
142
-		];
143
-	}
144
-
145
-
146
-	/**
147
-	 * @inheritdoc
148
-	 */
149
-	public function getGoogleRequiredSchema(): array
150
-	{
151
-		return ['description', 'name'];
152
-	}
153
-
154
-
155
-	/**
156
-	 * @inheritdoc
157
-	 */
158
-	public function getGoogleRecommendedSchema(): array
159
-	{
160
-		return ['image', 'url'];
161
-	}
162
-
163
-
164
-	/**
165
-	 * @inheritdoc
166
-	 */
167
-	public function defineRules(): array
168
-	{
169
-		$rules = parent::defineRules();
170
-		    $rules = array_merge($rules, [
171
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
172
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
173
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
174
-		    ]);
175
-
176
-		    return $rules;
177
-	}
32
+    use ProteinTrait;
33
+    use BioChemEntityTrait;
34
+    use ThingTrait;
35
+
36
+    /**
37
+     * The Schema.org Type Name
38
+     *
39
+     * @var string
40
+     */
41
+    public static $schemaTypeName = 'Protein';
42
+
43
+    /**
44
+     * The Schema.org Type Scope
45
+     *
46
+     * @var string
47
+     */
48
+    public static $schemaTypeScope = 'https://schema.org/Protein';
49
+
50
+    /**
51
+     * The Schema.org Type Extends
52
+     *
53
+     * @var string
54
+     */
55
+    public static $schemaTypeExtends = 'BioChemEntity';
56
+
57
+    /**
58
+     * The Schema.org Type Description
59
+     *
60
+     * @var string
61
+     */
62
+    public static $schemaTypeDescription = 'Protein is here used in its widest possible definition, as classes of amino acid based molecules. Amyloid-beta Protein in human (UniProt P05067), eukaryota (e.g. an OrthoDB group) or even a single molecule that one can point to are all of type schema:Protein. A protein can thus be a subclass of another protein, e.g. schema:Protein as a UniProt record can have multiple isoforms inside it which would also be schema:Protein. They can be imagined, synthetic, hypothetical or naturally occurring.';
63
+
64
+
65
+    /**
66
+     * @inheritdoc
67
+     */
68
+    public function getSchemaPropertyNames(): array
69
+    {
70
+        return array_keys($this->getSchemaPropertyExpectedTypes());
71
+    }
72
+
73
+
74
+    /**
75
+     * @inheritdoc
76
+     */
77
+    public function getSchemaPropertyExpectedTypes(): array
78
+    {
79
+        return [
80
+            'additionalType' => ['URL'],
81
+            'alternateName' => ['Text'],
82
+            'associatedDisease' => ['MedicalCondition', 'URL', 'PropertyValue'],
83
+            'bioChemInteraction' => ['BioChemEntity'],
84
+            'bioChemSimilarity' => ['BioChemEntity'],
85
+            'biologicalRole' => ['DefinedTerm'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'funding' => ['Grant'],
89
+            'hasBioChemEntityPart' => ['BioChemEntity'],
90
+            'hasBioPolymerSequence' => ['Text'],
91
+            'hasMolecularFunction' => ['URL', 'DefinedTerm', 'PropertyValue'],
92
+            'hasRepresentation' => ['Text', 'URL', 'PropertyValue'],
93
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
94
+            'image' => ['URL', 'ImageObject'],
95
+            'isEncodedByBioChemEntity' => ['Gene'],
96
+            'isInvolvedInBiologicalProcess' => ['DefinedTerm', 'PropertyValue', 'URL'],
97
+            'isLocatedInSubcellularLocation' => ['URL', 'DefinedTerm', 'PropertyValue'],
98
+            'isPartOfBioChemEntity' => ['BioChemEntity'],
99
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
100
+            'name' => ['Text'],
101
+            'potentialAction' => ['Action'],
102
+            'sameAs' => ['URL'],
103
+            'subjectOf' => ['Event', 'CreativeWork'],
104
+            'taxonomicRange' => ['URL', 'DefinedTerm', 'Text', 'Taxon'],
105
+            'url' => ['URL']
106
+        ];
107
+    }
108
+
109
+
110
+    /**
111
+     * @inheritdoc
112
+     */
113
+    public function getSchemaPropertyDescriptions(): array
114
+    {
115
+        return [
116
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
+            'alternateName' => 'An alias for the item.',
118
+            'associatedDisease' => 'Disease associated to this BioChemEntity. Such disease can be a MedicalCondition or a URL. If you want to add an evidence supporting the association, please use PropertyValue.',
119
+            'bioChemInteraction' => 'A BioChemEntity that is known to interact with this item.',
120
+            'bioChemSimilarity' => 'A similar BioChemEntity, e.g., obtained by fingerprint similarity algorithms.',
121
+            'biologicalRole' => 'A role played by the BioChemEntity within a biological context.',
122
+            'description' => 'A description of the item.',
123
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
124
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
125
+            'hasBioChemEntityPart' => 'Indicates a BioChemEntity that (in some sense) has this BioChemEntity as a part. ',
126
+            'hasBioPolymerSequence' => 'A symbolic representation of a BioChemEntity. For example, a nucleotide sequence of a Gene or an amino acid sequence of a Protein.',
127
+            'hasMolecularFunction' => 'Molecular function performed by this BioChemEntity; please use PropertyValue if you want to include any evidence.',
128
+            'hasRepresentation' => 'A common representation such as a protein sequence or chemical structure for this entity. For images use schema.org/image.',
129
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
130
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
131
+            'isEncodedByBioChemEntity' => 'Another BioChemEntity encoding by this one.',
132
+            'isInvolvedInBiologicalProcess' => 'Biological process this BioChemEntity is involved in; please use PropertyValue if you want to include any evidence.',
133
+            'isLocatedInSubcellularLocation' => 'Subcellular location where this BioChemEntity is located; please use PropertyValue if you want to include any evidence.',
134
+            'isPartOfBioChemEntity' => 'Indicates a BioChemEntity that is (in some sense) a part of this BioChemEntity. ',
135
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
136
+            'name' => 'The name of the item.',
137
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
138
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
139
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
140
+            'taxonomicRange' => 'The taxonomic grouping of the organism that expresses, encodes, or in some way related to the BioChemEntity.',
141
+            'url' => 'URL of the item.'
142
+        ];
143
+    }
144
+
145
+
146
+    /**
147
+     * @inheritdoc
148
+     */
149
+    public function getGoogleRequiredSchema(): array
150
+    {
151
+        return ['description', 'name'];
152
+    }
153
+
154
+
155
+    /**
156
+     * @inheritdoc
157
+     */
158
+    public function getGoogleRecommendedSchema(): array
159
+    {
160
+        return ['image', 'url'];
161
+    }
162
+
163
+
164
+    /**
165
+     * @inheritdoc
166
+     */
167
+    public function defineRules(): array
168
+    {
169
+        $rules = parent::defineRules();
170
+            $rules = array_merge($rules, [
171
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
172
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
173
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
174
+            ]);
175
+
176
+            return $rules;
177
+    }
178 178
 }
Please login to merge, or discard this patch.
src/models/jsonld/GardenStore.php 1 patch
Indentation   +310 added lines, -310 removed lines patch added patch discarded remove patch
@@ -23,331 +23,331 @@
 block discarded – undo
23 23
  */
24 24
 class GardenStore extends MetaJsonLd implements GardenStoreInterface, StoreInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface
25 25
 {
26
-	use GardenStoreTrait;
27
-	use StoreTrait;
28
-	use LocalBusinessTrait;
29
-	use PlaceTrait;
30
-	use ThingTrait;
31
-	use OrganizationTrait;
26
+    use GardenStoreTrait;
27
+    use StoreTrait;
28
+    use LocalBusinessTrait;
29
+    use PlaceTrait;
30
+    use ThingTrait;
31
+    use OrganizationTrait;
32 32
 
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'GardenStore';
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'GardenStore';
39 39
 
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/GardenStore';
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/GardenStore';
46 46
 
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'Store';
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'Store';
53 53
 
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A garden store.';
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A garden store.';
60 60
 
61 61
 
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69 69
 
70 70
 
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
78
-		    'additionalProperty' => ['PropertyValue'],
79
-		    'additionalType' => ['URL'],
80
-		    'address' => ['Text', 'PostalAddress'],
81
-		    'aggregateRating' => ['AggregateRating'],
82
-		    'alternateName' => ['Text'],
83
-		    'alumni' => ['Person'],
84
-		    'amenityFeature' => ['LocationFeatureSpecification'],
85
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
86
-		    'award' => ['Text'],
87
-		    'awards' => ['Text'],
88
-		    'branchCode' => ['Text'],
89
-		    'branchOf' => ['Organization'],
90
-		    'brand' => ['Brand', 'Organization'],
91
-		    'contactPoint' => ['ContactPoint'],
92
-		    'contactPoints' => ['ContactPoint'],
93
-		    'containedIn' => ['Place'],
94
-		    'containedInPlace' => ['Place'],
95
-		    'containsPlace' => ['Place'],
96
-		    'correctionsPolicy' => ['URL', 'CreativeWork'],
97
-		    'currenciesAccepted' => ['Text'],
98
-		    'department' => ['Organization'],
99
-		    'description' => ['Text'],
100
-		    'disambiguatingDescription' => ['Text'],
101
-		    'dissolutionDate' => ['Date'],
102
-		    'diversityPolicy' => ['URL', 'CreativeWork'],
103
-		    'diversityStaffingReport' => ['Article', 'URL'],
104
-		    'duns' => ['Text'],
105
-		    'email' => ['Text'],
106
-		    'employee' => ['Person'],
107
-		    'employees' => ['Person'],
108
-		    'ethicsPolicy' => ['CreativeWork', 'URL'],
109
-		    'event' => ['Event'],
110
-		    'events' => ['Event'],
111
-		    'faxNumber' => ['Text'],
112
-		    'founder' => ['Person'],
113
-		    'founders' => ['Person'],
114
-		    'foundingDate' => ['Date'],
115
-		    'foundingLocation' => ['Place'],
116
-		    'funder' => ['Organization', 'Person'],
117
-		    'funding' => ['Grant'],
118
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
119
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
120
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
121
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
122
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
123
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
124
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
125
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
126
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
127
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
128
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
129
-		    'globalLocationNumber' => ['Text'],
130
-		    'hasCredential' => ['EducationalOccupationalCredential'],
131
-		    'hasDriveThroughService' => ['Boolean'],
132
-		    'hasMap' => ['URL', 'Map'],
133
-		    'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
134
-		    'hasOfferCatalog' => ['OfferCatalog'],
135
-		    'hasPOS' => ['Place'],
136
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
137
-		    'image' => ['URL', 'ImageObject'],
138
-		    'interactionStatistic' => ['InteractionCounter'],
139
-		    'isAccessibleForFree' => ['Boolean'],
140
-		    'isicV4' => ['Text'],
141
-		    'iso6523Code' => ['Text'],
142
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
143
-		    'knowsAbout' => ['Thing', 'Text', 'URL'],
144
-		    'knowsLanguage' => ['Text', 'Language'],
145
-		    'latitude' => ['Number', 'Text'],
146
-		    'legalName' => ['Text'],
147
-		    'leiCode' => ['Text'],
148
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
149
-		    'logo' => ['ImageObject', 'URL'],
150
-		    'longitude' => ['Text', 'Number'],
151
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
152
-		    'makesOffer' => ['Offer'],
153
-		    'map' => ['URL'],
154
-		    'maps' => ['URL'],
155
-		    'maximumAttendeeCapacity' => ['Integer'],
156
-		    'member' => ['Organization', 'Person'],
157
-		    'memberOf' => ['Organization', 'ProgramMembership'],
158
-		    'members' => ['Organization', 'Person'],
159
-		    'naics' => ['Text'],
160
-		    'name' => ['Text'],
161
-		    'nonprofitStatus' => ['NonprofitType'],
162
-		    'numberOfEmployees' => ['QuantitativeValue'],
163
-		    'openingHours' => ['Text'],
164
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
165
-		    'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
166
-		    'owns' => ['Product', 'OwnershipInfo'],
167
-		    'parentOrganization' => ['Organization'],
168
-		    'paymentAccepted' => ['Text'],
169
-		    'photo' => ['Photograph', 'ImageObject'],
170
-		    'photos' => ['ImageObject', 'Photograph'],
171
-		    'potentialAction' => ['Action'],
172
-		    'priceRange' => ['Text'],
173
-		    'publicAccess' => ['Boolean'],
174
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
175
-		    'review' => ['Review'],
176
-		    'reviews' => ['Review'],
177
-		    'sameAs' => ['URL'],
178
-		    'seeks' => ['Demand'],
179
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
180
-		    'slogan' => ['Text'],
181
-		    'smokingAllowed' => ['Boolean'],
182
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
183
-		    'sponsor' => ['Organization', 'Person'],
184
-		    'subOrganization' => ['Organization'],
185
-		    'subjectOf' => ['Event', 'CreativeWork'],
186
-		    'taxID' => ['Text'],
187
-		    'telephone' => ['Text'],
188
-		    'tourBookingPage' => ['URL'],
189
-		    'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
190
-		    'url' => ['URL'],
191
-		    'vatID' => ['Text']
192
-		];
193
-	}
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
78
+            'additionalProperty' => ['PropertyValue'],
79
+            'additionalType' => ['URL'],
80
+            'address' => ['Text', 'PostalAddress'],
81
+            'aggregateRating' => ['AggregateRating'],
82
+            'alternateName' => ['Text'],
83
+            'alumni' => ['Person'],
84
+            'amenityFeature' => ['LocationFeatureSpecification'],
85
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
86
+            'award' => ['Text'],
87
+            'awards' => ['Text'],
88
+            'branchCode' => ['Text'],
89
+            'branchOf' => ['Organization'],
90
+            'brand' => ['Brand', 'Organization'],
91
+            'contactPoint' => ['ContactPoint'],
92
+            'contactPoints' => ['ContactPoint'],
93
+            'containedIn' => ['Place'],
94
+            'containedInPlace' => ['Place'],
95
+            'containsPlace' => ['Place'],
96
+            'correctionsPolicy' => ['URL', 'CreativeWork'],
97
+            'currenciesAccepted' => ['Text'],
98
+            'department' => ['Organization'],
99
+            'description' => ['Text'],
100
+            'disambiguatingDescription' => ['Text'],
101
+            'dissolutionDate' => ['Date'],
102
+            'diversityPolicy' => ['URL', 'CreativeWork'],
103
+            'diversityStaffingReport' => ['Article', 'URL'],
104
+            'duns' => ['Text'],
105
+            'email' => ['Text'],
106
+            'employee' => ['Person'],
107
+            'employees' => ['Person'],
108
+            'ethicsPolicy' => ['CreativeWork', 'URL'],
109
+            'event' => ['Event'],
110
+            'events' => ['Event'],
111
+            'faxNumber' => ['Text'],
112
+            'founder' => ['Person'],
113
+            'founders' => ['Person'],
114
+            'foundingDate' => ['Date'],
115
+            'foundingLocation' => ['Place'],
116
+            'funder' => ['Organization', 'Person'],
117
+            'funding' => ['Grant'],
118
+            'geo' => ['GeoCoordinates', 'GeoShape'],
119
+            'geoContains' => ['Place', 'GeospatialGeometry'],
120
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
121
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
122
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
123
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
124
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
125
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
126
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
127
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
128
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
129
+            'globalLocationNumber' => ['Text'],
130
+            'hasCredential' => ['EducationalOccupationalCredential'],
131
+            'hasDriveThroughService' => ['Boolean'],
132
+            'hasMap' => ['URL', 'Map'],
133
+            'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
134
+            'hasOfferCatalog' => ['OfferCatalog'],
135
+            'hasPOS' => ['Place'],
136
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
137
+            'image' => ['URL', 'ImageObject'],
138
+            'interactionStatistic' => ['InteractionCounter'],
139
+            'isAccessibleForFree' => ['Boolean'],
140
+            'isicV4' => ['Text'],
141
+            'iso6523Code' => ['Text'],
142
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
143
+            'knowsAbout' => ['Thing', 'Text', 'URL'],
144
+            'knowsLanguage' => ['Text', 'Language'],
145
+            'latitude' => ['Number', 'Text'],
146
+            'legalName' => ['Text'],
147
+            'leiCode' => ['Text'],
148
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
149
+            'logo' => ['ImageObject', 'URL'],
150
+            'longitude' => ['Text', 'Number'],
151
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
152
+            'makesOffer' => ['Offer'],
153
+            'map' => ['URL'],
154
+            'maps' => ['URL'],
155
+            'maximumAttendeeCapacity' => ['Integer'],
156
+            'member' => ['Organization', 'Person'],
157
+            'memberOf' => ['Organization', 'ProgramMembership'],
158
+            'members' => ['Organization', 'Person'],
159
+            'naics' => ['Text'],
160
+            'name' => ['Text'],
161
+            'nonprofitStatus' => ['NonprofitType'],
162
+            'numberOfEmployees' => ['QuantitativeValue'],
163
+            'openingHours' => ['Text'],
164
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
165
+            'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
166
+            'owns' => ['Product', 'OwnershipInfo'],
167
+            'parentOrganization' => ['Organization'],
168
+            'paymentAccepted' => ['Text'],
169
+            'photo' => ['Photograph', 'ImageObject'],
170
+            'photos' => ['ImageObject', 'Photograph'],
171
+            'potentialAction' => ['Action'],
172
+            'priceRange' => ['Text'],
173
+            'publicAccess' => ['Boolean'],
174
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
175
+            'review' => ['Review'],
176
+            'reviews' => ['Review'],
177
+            'sameAs' => ['URL'],
178
+            'seeks' => ['Demand'],
179
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
180
+            'slogan' => ['Text'],
181
+            'smokingAllowed' => ['Boolean'],
182
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
183
+            'sponsor' => ['Organization', 'Person'],
184
+            'subOrganization' => ['Organization'],
185
+            'subjectOf' => ['Event', 'CreativeWork'],
186
+            'taxID' => ['Text'],
187
+            'telephone' => ['Text'],
188
+            'tourBookingPage' => ['URL'],
189
+            'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
190
+            'url' => ['URL'],
191
+            'vatID' => ['Text']
192
+        ];
193
+    }
194 194
 
195 195
 
196
-	/**
197
-	 * @inheritdoc
198
-	 */
199
-	public function getSchemaPropertyDescriptions(): array
200
-	{
201
-		return [
202
-		    'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.',
203
-		    'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
204
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
205
-		    'address' => 'Physical address of the item.',
206
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
207
-		    'alternateName' => 'An alias for the item.',
208
-		    'alumni' => 'Alumni of an organization.',
209
-		    'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
210
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
211
-		    'award' => 'An award won by or for this item.',
212
-		    'awards' => 'Awards won by or for this item.',
213
-		    'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
214
-		    'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
215
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
216
-		    'contactPoint' => 'A contact point for a person or organization.',
217
-		    'contactPoints' => 'A contact point for a person or organization.',
218
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
219
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
220
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
221
-		    'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
222
-		    'currenciesAccepted' => 'The currency accepted.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
223
-		    'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.',
224
-		    'description' => 'A description of the item.',
225
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
226
-		    'dissolutionDate' => 'The date that this organization was dissolved.',
227
-		    'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.',
228
-		    'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.',
229
-		    'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
230
-		    'email' => 'Email address.',
231
-		    'employee' => 'Someone working for this organization.',
232
-		    'employees' => 'People working for this organization.',
233
-		    'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.',
234
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
235
-		    'events' => 'Upcoming or past events associated with this place or organization.',
236
-		    'faxNumber' => 'The fax number.',
237
-		    'founder' => 'A person who founded this organization.',
238
-		    'founders' => 'A person who founded this organization.',
239
-		    'foundingDate' => 'The date that this organization was founded.',
240
-		    'foundingLocation' => 'The place where the Organization was founded.',
241
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
242
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
243
-		    'geo' => 'The geo coordinates of the place.',
244
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
245
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
246
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
247
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
248
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
249
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
250
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
251
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
252
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
253
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
254
-		    'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
255
-		    'hasCredential' => 'A credential awarded to the Person or Organization.',
256
-		    'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
257
-		    'hasMap' => 'A URL to a map of the place.',
258
-		    'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
259
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
260
-		    'hasPOS' => 'Points-of-Sales operated by the organization or person.',
261
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
262
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
263
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
264
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
265
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
266
-		    'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ',
267
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
268
-		    'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.',
269
-		    'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).',
270
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
271
-		    'legalName' => 'The official name of the organization, e.g. the registered company name.',
272
-		    'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
273
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
274
-		    'logo' => 'An associated logo.',
275
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
276
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
277
-		    'makesOffer' => 'A pointer to products or services offered by the organization or person.',
278
-		    'map' => 'A URL to a map of the place.',
279
-		    'maps' => 'A URL to a map of the place.',
280
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
281
-		    'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
282
-		    'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
283
-		    'members' => 'A member of this organization.',
284
-		    'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
285
-		    'name' => 'The name of the item.',
286
-		    'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
287
-		    'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
288
-		    'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
289
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
290
-		    'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence.   Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.',
291
-		    'owns' => 'Products owned by the organization or person.',
292
-		    'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
293
-		    'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
294
-		    'photo' => 'A photograph of this place.',
295
-		    'photos' => 'Photographs of this place.',
296
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
297
-		    'priceRange' => 'The price range of the business, for example ```$$$```.',
298
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
299
-		    'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
300
-		    'review' => 'A review of the item.',
301
-		    'reviews' => 'Review of the item.',
302
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
303
-		    'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
304
-		    'serviceArea' => 'The geographic area where the service is provided.',
305
-		    'slogan' => 'A slogan or motto associated with the item.',
306
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
307
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
308
-		    'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
309
-		    'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
310
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
311
-		    'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
312
-		    'telephone' => 'The telephone number.',
313
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
314
-		    'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
315
-		    'url' => 'URL of the item.',
316
-		    'vatID' => 'The Value-added Tax ID of the organization or person.'
317
-		];
318
-	}
196
+    /**
197
+     * @inheritdoc
198
+     */
199
+    public function getSchemaPropertyDescriptions(): array
200
+    {
201
+        return [
202
+            'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.',
203
+            'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
204
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
205
+            'address' => 'Physical address of the item.',
206
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
207
+            'alternateName' => 'An alias for the item.',
208
+            'alumni' => 'Alumni of an organization.',
209
+            'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
210
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
211
+            'award' => 'An award won by or for this item.',
212
+            'awards' => 'Awards won by or for this item.',
213
+            'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
214
+            'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
215
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
216
+            'contactPoint' => 'A contact point for a person or organization.',
217
+            'contactPoints' => 'A contact point for a person or organization.',
218
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
219
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
220
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
221
+            'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
222
+            'currenciesAccepted' => 'The currency accepted.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
223
+            'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.',
224
+            'description' => 'A description of the item.',
225
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
226
+            'dissolutionDate' => 'The date that this organization was dissolved.',
227
+            'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.',
228
+            'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.',
229
+            'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
230
+            'email' => 'Email address.',
231
+            'employee' => 'Someone working for this organization.',
232
+            'employees' => 'People working for this organization.',
233
+            'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.',
234
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
235
+            'events' => 'Upcoming or past events associated with this place or organization.',
236
+            'faxNumber' => 'The fax number.',
237
+            'founder' => 'A person who founded this organization.',
238
+            'founders' => 'A person who founded this organization.',
239
+            'foundingDate' => 'The date that this organization was founded.',
240
+            'foundingLocation' => 'The place where the Organization was founded.',
241
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
242
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
243
+            'geo' => 'The geo coordinates of the place.',
244
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
245
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
246
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
247
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
248
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
249
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
250
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
251
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
252
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
253
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
254
+            'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
255
+            'hasCredential' => 'A credential awarded to the Person or Organization.',
256
+            'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
257
+            'hasMap' => 'A URL to a map of the place.',
258
+            'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
259
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
260
+            'hasPOS' => 'Points-of-Sales operated by the organization or person.',
261
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
262
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
263
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
264
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
265
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
266
+            'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ',
267
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
268
+            'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.',
269
+            'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).',
270
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
271
+            'legalName' => 'The official name of the organization, e.g. the registered company name.',
272
+            'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
273
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
274
+            'logo' => 'An associated logo.',
275
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
276
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
277
+            'makesOffer' => 'A pointer to products or services offered by the organization or person.',
278
+            'map' => 'A URL to a map of the place.',
279
+            'maps' => 'A URL to a map of the place.',
280
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
281
+            'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
282
+            'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
283
+            'members' => 'A member of this organization.',
284
+            'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
285
+            'name' => 'The name of the item.',
286
+            'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
287
+            'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
288
+            'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
289
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
290
+            'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence.   Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.',
291
+            'owns' => 'Products owned by the organization or person.',
292
+            'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
293
+            'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
294
+            'photo' => 'A photograph of this place.',
295
+            'photos' => 'Photographs of this place.',
296
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
297
+            'priceRange' => 'The price range of the business, for example ```$$$```.',
298
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
299
+            'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
300
+            'review' => 'A review of the item.',
301
+            'reviews' => 'Review of the item.',
302
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
303
+            'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
304
+            'serviceArea' => 'The geographic area where the service is provided.',
305
+            'slogan' => 'A slogan or motto associated with the item.',
306
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
307
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
308
+            'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
309
+            'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
310
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
311
+            'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
312
+            'telephone' => 'The telephone number.',
313
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
314
+            'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
315
+            'url' => 'URL of the item.',
316
+            'vatID' => 'The Value-added Tax ID of the organization or person.'
317
+        ];
318
+    }
319 319
 
320 320
 
321
-	/**
322
-	 * @inheritdoc
323
-	 */
324
-	public function getGoogleRequiredSchema(): array
325
-	{
326
-		return ['description', 'name'];
327
-	}
321
+    /**
322
+     * @inheritdoc
323
+     */
324
+    public function getGoogleRequiredSchema(): array
325
+    {
326
+        return ['description', 'name'];
327
+    }
328 328
 
329 329
 
330
-	/**
331
-	 * @inheritdoc
332
-	 */
333
-	public function getGoogleRecommendedSchema(): array
334
-	{
335
-		return ['image', 'url'];
336
-	}
330
+    /**
331
+     * @inheritdoc
332
+     */
333
+    public function getGoogleRecommendedSchema(): array
334
+    {
335
+        return ['image', 'url'];
336
+    }
337 337
 
338 338
 
339
-	/**
340
-	 * @inheritdoc
341
-	 */
342
-	public function defineRules(): array
343
-	{
344
-		$rules = parent::defineRules();
345
-		    $rules = array_merge($rules, [
346
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
347
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
348
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
349
-		    ]);
339
+    /**
340
+     * @inheritdoc
341
+     */
342
+    public function defineRules(): array
343
+    {
344
+        $rules = parent::defineRules();
345
+            $rules = array_merge($rules, [
346
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
347
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
348
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
349
+            ]);
350 350
 
351
-		    return $rules;
352
-	}
351
+            return $rules;
352
+    }
353 353
 }
Please login to merge, or discard this patch.
src/models/jsonld/Eye.php 1 patch
Indentation   +153 added lines, -153 removed lines patch added patch discarded remove patch
@@ -23,157 +23,157 @@
 block discarded – undo
23 23
  */
24 24
 class Eye extends MetaJsonLd implements EyeInterface, PhysicalExamInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface
25 25
 {
26
-	use EyeTrait;
27
-	use PhysicalExamTrait;
28
-	use MedicalProcedureTrait;
29
-	use MedicalEntityTrait;
30
-	use ThingTrait;
31
-	use MedicalEnumerationTrait;
32
-	use EnumerationTrait;
33
-	use IntangibleTrait;
34
-
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static $schemaTypeName = 'Eye';
41
-
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/Eye';
48
-
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeExtends = 'PhysicalExam';
55
-
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeDescription = 'Eye or ophthalmological function assessment with clinical examination.';
62
-
63
-
64
-	/**
65
-	 * @inheritdoc
66
-	 */
67
-	public function getSchemaPropertyNames(): array
68
-	{
69
-		return array_keys($this->getSchemaPropertyExpectedTypes());
70
-	}
71
-
72
-
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyExpectedTypes(): array
77
-	{
78
-		return [
79
-		    'additionalType' => ['URL'],
80
-		    'alternateName' => ['Text'],
81
-		    'bodyLocation' => ['Text'],
82
-		    'code' => ['MedicalCode'],
83
-		    'description' => ['Text'],
84
-		    'disambiguatingDescription' => ['Text'],
85
-		    'followup' => ['Text'],
86
-		    'funding' => ['Grant'],
87
-		    'guideline' => ['MedicalGuideline'],
88
-		    'howPerformed' => ['Text'],
89
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
90
-		    'image' => ['URL', 'ImageObject'],
91
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
92
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
93
-		    'medicineSystem' => ['MedicineSystem'],
94
-		    'name' => ['Text'],
95
-		    'potentialAction' => ['Action'],
96
-		    'preparation' => ['Text', 'MedicalEntity'],
97
-		    'procedureType' => ['MedicalProcedureType'],
98
-		    'recognizingAuthority' => ['Organization'],
99
-		    'relevantSpecialty' => ['MedicalSpecialty'],
100
-		    'sameAs' => ['URL'],
101
-		    'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
102
-		    'study' => ['MedicalStudy'],
103
-		    'subjectOf' => ['Event', 'CreativeWork'],
104
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
105
-		    'url' => ['URL']
106
-		];
107
-	}
108
-
109
-
110
-	/**
111
-	 * @inheritdoc
112
-	 */
113
-	public function getSchemaPropertyDescriptions(): array
114
-	{
115
-		return [
116
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
-		    'alternateName' => 'An alias for the item.',
118
-		    'bodyLocation' => 'Location in the body of the anatomical structure.',
119
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
120
-		    'description' => 'A description of the item.',
121
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
122
-		    'followup' => 'Typical or recommended followup care after the procedure is performed.',
123
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
124
-		    'guideline' => 'A medical guideline related to this entity.',
125
-		    'howPerformed' => 'How the procedure is performed.',
126
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
127
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
128
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
129
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
130
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
131
-		    'name' => 'The name of the item.',
132
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
133
-		    'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
134
-		    'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
135
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
136
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
137
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
138
-		    'status' => 'The status of the study (enumerated).',
139
-		    'study' => 'A medical study or trial related to this entity.',
140
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
141
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
142
-		    'url' => 'URL of the item.'
143
-		];
144
-	}
145
-
146
-
147
-	/**
148
-	 * @inheritdoc
149
-	 */
150
-	public function getGoogleRequiredSchema(): array
151
-	{
152
-		return ['description', 'name'];
153
-	}
154
-
155
-
156
-	/**
157
-	 * @inheritdoc
158
-	 */
159
-	public function getGoogleRecommendedSchema(): array
160
-	{
161
-		return ['image', 'url'];
162
-	}
163
-
164
-
165
-	/**
166
-	 * @inheritdoc
167
-	 */
168
-	public function defineRules(): array
169
-	{
170
-		$rules = parent::defineRules();
171
-		    $rules = array_merge($rules, [
172
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
173
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
174
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
175
-		    ]);
176
-
177
-		    return $rules;
178
-	}
26
+    use EyeTrait;
27
+    use PhysicalExamTrait;
28
+    use MedicalProcedureTrait;
29
+    use MedicalEntityTrait;
30
+    use ThingTrait;
31
+    use MedicalEnumerationTrait;
32
+    use EnumerationTrait;
33
+    use IntangibleTrait;
34
+
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static $schemaTypeName = 'Eye';
41
+
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/Eye';
48
+
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeExtends = 'PhysicalExam';
55
+
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeDescription = 'Eye or ophthalmological function assessment with clinical examination.';
62
+
63
+
64
+    /**
65
+     * @inheritdoc
66
+     */
67
+    public function getSchemaPropertyNames(): array
68
+    {
69
+        return array_keys($this->getSchemaPropertyExpectedTypes());
70
+    }
71
+
72
+
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyExpectedTypes(): array
77
+    {
78
+        return [
79
+            'additionalType' => ['URL'],
80
+            'alternateName' => ['Text'],
81
+            'bodyLocation' => ['Text'],
82
+            'code' => ['MedicalCode'],
83
+            'description' => ['Text'],
84
+            'disambiguatingDescription' => ['Text'],
85
+            'followup' => ['Text'],
86
+            'funding' => ['Grant'],
87
+            'guideline' => ['MedicalGuideline'],
88
+            'howPerformed' => ['Text'],
89
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
90
+            'image' => ['URL', 'ImageObject'],
91
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
92
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
93
+            'medicineSystem' => ['MedicineSystem'],
94
+            'name' => ['Text'],
95
+            'potentialAction' => ['Action'],
96
+            'preparation' => ['Text', 'MedicalEntity'],
97
+            'procedureType' => ['MedicalProcedureType'],
98
+            'recognizingAuthority' => ['Organization'],
99
+            'relevantSpecialty' => ['MedicalSpecialty'],
100
+            'sameAs' => ['URL'],
101
+            'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
102
+            'study' => ['MedicalStudy'],
103
+            'subjectOf' => ['Event', 'CreativeWork'],
104
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
105
+            'url' => ['URL']
106
+        ];
107
+    }
108
+
109
+
110
+    /**
111
+     * @inheritdoc
112
+     */
113
+    public function getSchemaPropertyDescriptions(): array
114
+    {
115
+        return [
116
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
+            'alternateName' => 'An alias for the item.',
118
+            'bodyLocation' => 'Location in the body of the anatomical structure.',
119
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
120
+            'description' => 'A description of the item.',
121
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
122
+            'followup' => 'Typical or recommended followup care after the procedure is performed.',
123
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
124
+            'guideline' => 'A medical guideline related to this entity.',
125
+            'howPerformed' => 'How the procedure is performed.',
126
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
127
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
128
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
129
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
130
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
131
+            'name' => 'The name of the item.',
132
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
133
+            'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
134
+            'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
135
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
136
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
137
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
138
+            'status' => 'The status of the study (enumerated).',
139
+            'study' => 'A medical study or trial related to this entity.',
140
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
141
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
142
+            'url' => 'URL of the item.'
143
+        ];
144
+    }
145
+
146
+
147
+    /**
148
+     * @inheritdoc
149
+     */
150
+    public function getGoogleRequiredSchema(): array
151
+    {
152
+        return ['description', 'name'];
153
+    }
154
+
155
+
156
+    /**
157
+     * @inheritdoc
158
+     */
159
+    public function getGoogleRecommendedSchema(): array
160
+    {
161
+        return ['image', 'url'];
162
+    }
163
+
164
+
165
+    /**
166
+     * @inheritdoc
167
+     */
168
+    public function defineRules(): array
169
+    {
170
+        $rules = parent::defineRules();
171
+            $rules = array_merge($rules, [
172
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
173
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
174
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
175
+            ]);
176
+
177
+            return $rules;
178
+    }
179 179
 }
Please login to merge, or discard this patch.