Passed
Push — develop ( e888e4...569633 )
by Andrew
19:20 queued 10:31
created
src/models/jsonld/InvestmentFund.php 1 patch
Indentation   +177 added lines, -177 removed lines patch added patch discarded remove patch
@@ -25,181 +25,181 @@
 block discarded – undo
25 25
  */
26 26
 class InvestmentFund extends MetaJsonLd implements InvestmentFundInterface, InvestmentOrDepositInterface, FinancialProductInterface, ServiceInterface, IntangibleInterface, ThingInterface
27 27
 {
28
-	use InvestmentFundTrait;
29
-	use InvestmentOrDepositTrait;
30
-	use FinancialProductTrait;
31
-	use ServiceTrait;
32
-	use IntangibleTrait;
33
-	use ThingTrait;
34
-
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static $schemaTypeName = 'InvestmentFund';
41
-
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/InvestmentFund';
48
-
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeExtends = 'InvestmentOrDeposit';
55
-
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeDescription = 'A company or fund that gathers capital from a number of investors to create a pool of money that is then re-invested into stocks, bonds and other assets.';
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
-		    'aggregateRating' => ['AggregateRating'],
81
-		    'alternateName' => ['Text'],
82
-		    'amount' => ['MonetaryAmount', 'Number'],
83
-		    'annualPercentageRate' => ['Number', 'QuantitativeValue'],
84
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
85
-		    'audience' => ['Audience'],
86
-		    'availableChannel' => ['ServiceChannel'],
87
-		    'award' => ['Text'],
88
-		    'brand' => ['Brand', 'Organization'],
89
-		    'broker' => ['Person', 'Organization'],
90
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
91
-		    'description' => ['Text'],
92
-		    'disambiguatingDescription' => ['Text'],
93
-		    'feesAndCommissionsSpecification' => ['URL', 'Text'],
94
-		    'hasOfferCatalog' => ['OfferCatalog'],
95
-		    'hoursAvailable' => ['OpeningHoursSpecification'],
96
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
97
-		    'image' => ['URL', 'ImageObject'],
98
-		    'interestRate' => ['Number', 'QuantitativeValue'],
99
-		    'isRelatedTo' => ['Product', 'Service'],
100
-		    'isSimilarTo' => ['Product', 'Service'],
101
-		    'logo' => ['ImageObject', 'URL'],
102
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
103
-		    'name' => ['Text'],
104
-		    'offers' => ['Demand', 'Offer'],
105
-		    'potentialAction' => ['Action'],
106
-		    'produces' => ['Thing'],
107
-		    'provider' => ['Organization', 'Person'],
108
-		    'providerMobility' => ['Text'],
109
-		    'review' => ['Review'],
110
-		    'sameAs' => ['URL'],
111
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
112
-		    'serviceAudience' => ['Audience'],
113
-		    'serviceOutput' => ['Thing'],
114
-		    'serviceType' => ['Text', 'GovernmentBenefitsType'],
115
-		    'slogan' => ['Text'],
116
-		    'subjectOf' => ['Event', 'CreativeWork'],
117
-		    'termsOfService' => ['URL', 'Text'],
118
-		    'url' => ['URL']
119
-		];
120
-	}
121
-
122
-
123
-	/**
124
-	 * @inheritdoc
125
-	 */
126
-	public function getSchemaPropertyDescriptions(): array
127
-	{
128
-		return [
129
-		    '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.',
130
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
131
-		    'alternateName' => 'An alias for the item.',
132
-		    'amount' => 'The amount of money.',
133
-		    'annualPercentageRate' => 'The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.',
134
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
135
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
136
-		    'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
137
-		    'award' => 'An award won by or for this item.',
138
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
139
-		    'broker' => 'An entity that arranges for an exchange between a buyer and a seller.  In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.  If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.',
140
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
141
-		    'description' => 'A description of the item.',
142
-		    '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.',
143
-		    'feesAndCommissionsSpecification' => 'Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.',
144
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
145
-		    'hoursAvailable' => 'The hours during which this service or contact is available.',
146
-		    '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.         ',
147
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
148
-		    'interestRate' => 'The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.',
149
-		    'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
150
-		    'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
151
-		    'logo' => 'An associated logo.',
152
-		    '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.',
153
-		    'name' => 'The name of the item.',
154
-		    '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.       ',
155
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
156
-		    'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
157
-		    'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
158
-		    'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
159
-		    'review' => 'A review of the item.',
160
-		    '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.',
161
-		    'serviceArea' => 'The geographic area where the service is provided.',
162
-		    'serviceAudience' => 'The audience eligible for this service.',
163
-		    'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
164
-		    'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
165
-		    'slogan' => 'A slogan or motto associated with the item.',
166
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
167
-		    'termsOfService' => 'Human-readable terms of service documentation.',
168
-		    'url' => 'URL of the item.'
169
-		];
170
-	}
171
-
172
-
173
-	/**
174
-	 * @inheritdoc
175
-	 */
176
-	public function getGoogleRequiredSchema(): array
177
-	{
178
-		return ['description', 'name'];
179
-	}
180
-
181
-
182
-	/**
183
-	 * @inheritdoc
184
-	 */
185
-	public function getGoogleRecommendedSchema(): array
186
-	{
187
-		return ['image', 'url'];
188
-	}
189
-
190
-
191
-	/**
192
-	 * @inheritdoc
193
-	 */
194
-	public function defineRules(): array
195
-	{
196
-		$rules = parent::defineRules();
197
-		    $rules = array_merge($rules, [
198
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
199
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
200
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
201
-		    ]);
202
-
203
-		    return $rules;
204
-	}
28
+    use InvestmentFundTrait;
29
+    use InvestmentOrDepositTrait;
30
+    use FinancialProductTrait;
31
+    use ServiceTrait;
32
+    use IntangibleTrait;
33
+    use ThingTrait;
34
+
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static $schemaTypeName = 'InvestmentFund';
41
+
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/InvestmentFund';
48
+
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeExtends = 'InvestmentOrDeposit';
55
+
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeDescription = 'A company or fund that gathers capital from a number of investors to create a pool of money that is then re-invested into stocks, bonds and other assets.';
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
+            'aggregateRating' => ['AggregateRating'],
81
+            'alternateName' => ['Text'],
82
+            'amount' => ['MonetaryAmount', 'Number'],
83
+            'annualPercentageRate' => ['Number', 'QuantitativeValue'],
84
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
85
+            'audience' => ['Audience'],
86
+            'availableChannel' => ['ServiceChannel'],
87
+            'award' => ['Text'],
88
+            'brand' => ['Brand', 'Organization'],
89
+            'broker' => ['Person', 'Organization'],
90
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
91
+            'description' => ['Text'],
92
+            'disambiguatingDescription' => ['Text'],
93
+            'feesAndCommissionsSpecification' => ['URL', 'Text'],
94
+            'hasOfferCatalog' => ['OfferCatalog'],
95
+            'hoursAvailable' => ['OpeningHoursSpecification'],
96
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
97
+            'image' => ['URL', 'ImageObject'],
98
+            'interestRate' => ['Number', 'QuantitativeValue'],
99
+            'isRelatedTo' => ['Product', 'Service'],
100
+            'isSimilarTo' => ['Product', 'Service'],
101
+            'logo' => ['ImageObject', 'URL'],
102
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
103
+            'name' => ['Text'],
104
+            'offers' => ['Demand', 'Offer'],
105
+            'potentialAction' => ['Action'],
106
+            'produces' => ['Thing'],
107
+            'provider' => ['Organization', 'Person'],
108
+            'providerMobility' => ['Text'],
109
+            'review' => ['Review'],
110
+            'sameAs' => ['URL'],
111
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
112
+            'serviceAudience' => ['Audience'],
113
+            'serviceOutput' => ['Thing'],
114
+            'serviceType' => ['Text', 'GovernmentBenefitsType'],
115
+            'slogan' => ['Text'],
116
+            'subjectOf' => ['Event', 'CreativeWork'],
117
+            'termsOfService' => ['URL', 'Text'],
118
+            'url' => ['URL']
119
+        ];
120
+    }
121
+
122
+
123
+    /**
124
+     * @inheritdoc
125
+     */
126
+    public function getSchemaPropertyDescriptions(): array
127
+    {
128
+        return [
129
+            '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.',
130
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
131
+            'alternateName' => 'An alias for the item.',
132
+            'amount' => 'The amount of money.',
133
+            'annualPercentageRate' => 'The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.',
134
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
135
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
136
+            'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
137
+            'award' => 'An award won by or for this item.',
138
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
139
+            'broker' => 'An entity that arranges for an exchange between a buyer and a seller.  In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.  If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.',
140
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
141
+            'description' => 'A description of the item.',
142
+            '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.',
143
+            'feesAndCommissionsSpecification' => 'Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.',
144
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
145
+            'hoursAvailable' => 'The hours during which this service or contact is available.',
146
+            '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.         ',
147
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
148
+            'interestRate' => 'The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.',
149
+            'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
150
+            'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
151
+            'logo' => 'An associated logo.',
152
+            '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.',
153
+            'name' => 'The name of the item.',
154
+            '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.       ',
155
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
156
+            'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
157
+            'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
158
+            'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
159
+            'review' => 'A review of the item.',
160
+            '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.',
161
+            'serviceArea' => 'The geographic area where the service is provided.',
162
+            'serviceAudience' => 'The audience eligible for this service.',
163
+            'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
164
+            'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
165
+            'slogan' => 'A slogan or motto associated with the item.',
166
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
167
+            'termsOfService' => 'Human-readable terms of service documentation.',
168
+            'url' => 'URL of the item.'
169
+        ];
170
+    }
171
+
172
+
173
+    /**
174
+     * @inheritdoc
175
+     */
176
+    public function getGoogleRequiredSchema(): array
177
+    {
178
+        return ['description', 'name'];
179
+    }
180
+
181
+
182
+    /**
183
+     * @inheritdoc
184
+     */
185
+    public function getGoogleRecommendedSchema(): array
186
+    {
187
+        return ['image', 'url'];
188
+    }
189
+
190
+
191
+    /**
192
+     * @inheritdoc
193
+     */
194
+    public function defineRules(): array
195
+    {
196
+        $rules = parent::defineRules();
197
+            $rules = array_merge($rules, [
198
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
199
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
200
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
201
+            ]);
202
+
203
+            return $rules;
204
+    }
205 205
 }
Please login to merge, or discard this patch.
src/models/jsonld/Diagnostic.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -23,127 +23,127 @@
 block discarded – undo
23 23
  */
24 24
 class Diagnostic extends MetaJsonLd implements DiagnosticInterface, MedicalDevicePurposeInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use DiagnosticTrait;
27
-	use MedicalDevicePurposeTrait;
28
-	use MedicalEnumerationTrait;
29
-	use EnumerationTrait;
30
-	use IntangibleTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'Diagnostic';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/Diagnostic';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'MedicalDevicePurpose';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A medical device used for diagnostic purposes.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    '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.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    '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.',
104
-		    '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.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    '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.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    '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.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
26
+    use DiagnosticTrait;
27
+    use MedicalDevicePurposeTrait;
28
+    use MedicalEnumerationTrait;
29
+    use EnumerationTrait;
30
+    use IntangibleTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'Diagnostic';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/Diagnostic';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'MedicalDevicePurpose';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A medical device used for diagnostic purposes.';
60
+
61
+
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69
+
70
+
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'additionalType' => ['URL'],
78
+            'alternateName' => ['Text'],
79
+            'description' => ['Text'],
80
+            'disambiguatingDescription' => ['Text'],
81
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
82
+            'image' => ['URL', 'ImageObject'],
83
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
+            'name' => ['Text'],
85
+            'potentialAction' => ['Action'],
86
+            'sameAs' => ['URL'],
87
+            'subjectOf' => ['Event', 'CreativeWork'],
88
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
+            'url' => ['URL']
90
+        ];
91
+    }
92
+
93
+
94
+    /**
95
+     * @inheritdoc
96
+     */
97
+    public function getSchemaPropertyDescriptions(): array
98
+    {
99
+        return [
100
+            '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.',
101
+            'alternateName' => 'An alias for the item.',
102
+            'description' => 'A description of the item.',
103
+            '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.',
104
+            '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.         ',
105
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
+            '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.',
107
+            'name' => 'The name of the item.',
108
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
+            '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.',
110
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
+            'url' => 'URL of the item.'
113
+        ];
114
+    }
115
+
116
+
117
+    /**
118
+     * @inheritdoc
119
+     */
120
+    public function getGoogleRequiredSchema(): array
121
+    {
122
+        return ['description', 'name'];
123
+    }
124
+
125
+
126
+    /**
127
+     * @inheritdoc
128
+     */
129
+    public function getGoogleRecommendedSchema(): array
130
+    {
131
+        return ['image', 'url'];
132
+    }
133
+
134
+
135
+    /**
136
+     * @inheritdoc
137
+     */
138
+    public function defineRules(): array
139
+    {
140
+        $rules = parent::defineRules();
141
+            $rules = array_merge($rules, [
142
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
+            ]);
146
+
147
+            return $rules;
148
+    }
149 149
 }
Please login to merge, or discard this patch.
src/models/jsonld/RentAction.php 1 patch
Indentation   +153 added lines, -153 removed lines patch added patch discarded remove patch
@@ -25,157 +25,157 @@
 block discarded – undo
25 25
  */
26 26
 class RentAction extends MetaJsonLd implements RentActionInterface, TradeActionInterface, ActionInterface, ThingInterface
27 27
 {
28
-	use RentActionTrait;
29
-	use TradeActionTrait;
30
-	use ActionTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'RentAction';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/RentAction';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'TradeAction';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'The act of giving money in return for temporary use, but not ownership, of an object such as a vehicle or property. For example, an agent rents a property from a landlord in exchange for a periodic payment.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'actionStatus' => ['ActionStatusType'],
78
-		    'additionalType' => ['URL'],
79
-		    'agent' => ['Organization', 'Person'],
80
-		    'alternateName' => ['Text'],
81
-		    'description' => ['Text'],
82
-		    'disambiguatingDescription' => ['Text'],
83
-		    'endTime' => ['DateTime', 'Time'],
84
-		    'error' => ['Thing'],
85
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
86
-		    'image' => ['URL', 'ImageObject'],
87
-		    'instrument' => ['Thing'],
88
-		    'landlord' => ['Person', 'Organization'],
89
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
90
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
91
-		    'name' => ['Text'],
92
-		    'object' => ['Thing'],
93
-		    'participant' => ['Organization', 'Person'],
94
-		    'potentialAction' => ['Action'],
95
-		    'price' => ['Text', 'Number'],
96
-		    'priceCurrency' => ['Text'],
97
-		    'priceSpecification' => ['PriceSpecification'],
98
-		    'provider' => ['Organization', 'Person'],
99
-		    'realEstateAgent' => ['RealEstateAgent'],
100
-		    'result' => ['Thing'],
101
-		    'sameAs' => ['URL'],
102
-		    'startTime' => ['Time', 'DateTime'],
103
-		    'subjectOf' => ['Event', 'CreativeWork'],
104
-		    'target' => ['URL', 'EntryPoint'],
105
-		    'url' => ['URL']
106
-		];
107
-	}
108
-
109
-
110
-	/**
111
-	 * @inheritdoc
112
-	 */
113
-	public function getSchemaPropertyDescriptions(): array
114
-	{
115
-		return [
116
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
117
-		    '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.',
118
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
119
-		    'alternateName' => 'An alias for the item.',
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
-		    'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
123
-		    'error' => 'For failed actions, more information on the cause of the failure.',
124
-		    '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.         ',
125
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
126
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
127
-		    'landlord' => 'A sub property of participant. The owner of the real estate property.',
128
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
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
-		    'name' => 'The name of the item.',
131
-		    'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
132
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
133
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
134
-		    'price' => 'The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.  Usage guidelines:  * Use the [[priceCurrency]] property (with 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") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as \'$\' in the value. * Use \'.\' (Unicode \'FULL STOP\' (U+002E)) rather than \',\' to indicate a decimal point. Avoid using these symbols as a readability separator. * Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting. * Use values from 0123456789 (Unicode \'DIGIT ZERO\' (U+0030) to \'DIGIT NINE\' (U+0039)) rather than superficially similar Unicode symbols.       ',
135
-		    'priceCurrency' => 'The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.  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".',
136
-		    'priceSpecification' => 'One or more detailed price specifications, indicating the unit price and delivery or payment charges.',
137
-		    'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
138
-		    'realEstateAgent' => 'A sub property of participant. The real estate agent involved in the action.',
139
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
140
-		    '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.',
141
-		    'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
142
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
143
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
144
-		    'url' => 'URL of the item.'
145
-		];
146
-	}
147
-
148
-
149
-	/**
150
-	 * @inheritdoc
151
-	 */
152
-	public function getGoogleRequiredSchema(): array
153
-	{
154
-		return ['description', 'name'];
155
-	}
156
-
157
-
158
-	/**
159
-	 * @inheritdoc
160
-	 */
161
-	public function getGoogleRecommendedSchema(): array
162
-	{
163
-		return ['image', 'url'];
164
-	}
165
-
166
-
167
-	/**
168
-	 * @inheritdoc
169
-	 */
170
-	public function defineRules(): array
171
-	{
172
-		$rules = parent::defineRules();
173
-		    $rules = array_merge($rules, [
174
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
175
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
176
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
177
-		    ]);
178
-
179
-		    return $rules;
180
-	}
28
+    use RentActionTrait;
29
+    use TradeActionTrait;
30
+    use ActionTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'RentAction';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/RentAction';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'TradeAction';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'The act of giving money in return for temporary use, but not ownership, of an object such as a vehicle or property. For example, an agent rents a property from a landlord in exchange for a periodic payment.';
60
+
61
+
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69
+
70
+
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'actionStatus' => ['ActionStatusType'],
78
+            'additionalType' => ['URL'],
79
+            'agent' => ['Organization', 'Person'],
80
+            'alternateName' => ['Text'],
81
+            'description' => ['Text'],
82
+            'disambiguatingDescription' => ['Text'],
83
+            'endTime' => ['DateTime', 'Time'],
84
+            'error' => ['Thing'],
85
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
86
+            'image' => ['URL', 'ImageObject'],
87
+            'instrument' => ['Thing'],
88
+            'landlord' => ['Person', 'Organization'],
89
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
90
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
91
+            'name' => ['Text'],
92
+            'object' => ['Thing'],
93
+            'participant' => ['Organization', 'Person'],
94
+            'potentialAction' => ['Action'],
95
+            'price' => ['Text', 'Number'],
96
+            'priceCurrency' => ['Text'],
97
+            'priceSpecification' => ['PriceSpecification'],
98
+            'provider' => ['Organization', 'Person'],
99
+            'realEstateAgent' => ['RealEstateAgent'],
100
+            'result' => ['Thing'],
101
+            'sameAs' => ['URL'],
102
+            'startTime' => ['Time', 'DateTime'],
103
+            'subjectOf' => ['Event', 'CreativeWork'],
104
+            'target' => ['URL', 'EntryPoint'],
105
+            'url' => ['URL']
106
+        ];
107
+    }
108
+
109
+
110
+    /**
111
+     * @inheritdoc
112
+     */
113
+    public function getSchemaPropertyDescriptions(): array
114
+    {
115
+        return [
116
+            'actionStatus' => 'Indicates the current disposition of the Action.',
117
+            '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.',
118
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
119
+            'alternateName' => 'An alias for the item.',
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
+            'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
123
+            'error' => 'For failed actions, more information on the cause of the failure.',
124
+            '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.         ',
125
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
126
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
127
+            'landlord' => 'A sub property of participant. The owner of the real estate property.',
128
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
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
+            'name' => 'The name of the item.',
131
+            'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
132
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
133
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
134
+            'price' => 'The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.  Usage guidelines:  * Use the [[priceCurrency]] property (with 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") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as \'$\' in the value. * Use \'.\' (Unicode \'FULL STOP\' (U+002E)) rather than \',\' to indicate a decimal point. Avoid using these symbols as a readability separator. * Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting. * Use values from 0123456789 (Unicode \'DIGIT ZERO\' (U+0030) to \'DIGIT NINE\' (U+0039)) rather than superficially similar Unicode symbols.       ',
135
+            'priceCurrency' => 'The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.  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".',
136
+            'priceSpecification' => 'One or more detailed price specifications, indicating the unit price and delivery or payment charges.',
137
+            'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
138
+            'realEstateAgent' => 'A sub property of participant. The real estate agent involved in the action.',
139
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
140
+            '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.',
141
+            'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
142
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
143
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
144
+            'url' => 'URL of the item.'
145
+        ];
146
+    }
147
+
148
+
149
+    /**
150
+     * @inheritdoc
151
+     */
152
+    public function getGoogleRequiredSchema(): array
153
+    {
154
+        return ['description', 'name'];
155
+    }
156
+
157
+
158
+    /**
159
+     * @inheritdoc
160
+     */
161
+    public function getGoogleRecommendedSchema(): array
162
+    {
163
+        return ['image', 'url'];
164
+    }
165
+
166
+
167
+    /**
168
+     * @inheritdoc
169
+     */
170
+    public function defineRules(): array
171
+    {
172
+        $rules = parent::defineRules();
173
+            $rules = array_merge($rules, [
174
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
175
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
176
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
177
+            ]);
178
+
179
+            return $rules;
180
+    }
181 181
 }
Please login to merge, or discard this patch.
src/models/jsonld/SatireOrParodyContent.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -40,126 +40,126 @@
 block discarded – undo
40 40
  */
41 41
 class SatireOrParodyContent extends MetaJsonLd implements SatireOrParodyContentInterface, MediaManipulationRatingEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
42 42
 {
43
-	use SatireOrParodyContentTrait;
44
-	use MediaManipulationRatingEnumerationTrait;
45
-	use EnumerationTrait;
46
-	use IntangibleTrait;
47
-	use ThingTrait;
48
-
49
-	/**
50
-	 * The Schema.org Type Name
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeName = 'SatireOrParodyContent';
55
-
56
-	/**
57
-	 * The Schema.org Type Scope
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeScope = 'https://schema.org/SatireOrParodyContent';
62
-
63
-	/**
64
-	 * The Schema.org Type Extends
65
-	 *
66
-	 * @var string
67
-	 */
68
-	public static $schemaTypeExtends = 'MediaManipulationRatingEnumeration';
69
-
70
-	/**
71
-	 * The Schema.org Type Description
72
-	 *
73
-	 * @var string
74
-	 */
75
-	public static $schemaTypeDescription = "Content coded 'satire or parody content' in a [[MediaReview]], considered in the context of how it was published or shared.\n\nFor a [[VideoObject]] to be 'satire or parody content': A video that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)\n\nFor an [[ImageObject]] to be 'satire or parody content': An image that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)\n\nFor an [[ImageObject]] with embedded text to be 'satire or parody content': An image that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)\n\nFor an [[AudioObject]] to be 'satire or parody content': Audio that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)";
76
-
77
-
78
-	/**
79
-	 * @inheritdoc
80
-	 */
81
-	public function getSchemaPropertyNames(): array
82
-	{
83
-		return array_keys($this->getSchemaPropertyExpectedTypes());
84
-	}
85
-
86
-
87
-	/**
88
-	 * @inheritdoc
89
-	 */
90
-	public function getSchemaPropertyExpectedTypes(): array
91
-	{
92
-		return [
93
-		    'additionalType' => ['URL'],
94
-		    'alternateName' => ['Text'],
95
-		    'description' => ['Text'],
96
-		    'disambiguatingDescription' => ['Text'],
97
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
98
-		    'image' => ['URL', 'ImageObject'],
99
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
100
-		    'name' => ['Text'],
101
-		    'potentialAction' => ['Action'],
102
-		    'sameAs' => ['URL'],
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
-		    'description' => 'A description of the item.',
119
-		    '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.',
120
-		    '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.         ',
121
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
-		    '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.',
123
-		    'name' => 'The name of the item.',
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
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
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
-	}
43
+    use SatireOrParodyContentTrait;
44
+    use MediaManipulationRatingEnumerationTrait;
45
+    use EnumerationTrait;
46
+    use IntangibleTrait;
47
+    use ThingTrait;
48
+
49
+    /**
50
+     * The Schema.org Type Name
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeName = 'SatireOrParodyContent';
55
+
56
+    /**
57
+     * The Schema.org Type Scope
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeScope = 'https://schema.org/SatireOrParodyContent';
62
+
63
+    /**
64
+     * The Schema.org Type Extends
65
+     *
66
+     * @var string
67
+     */
68
+    public static $schemaTypeExtends = 'MediaManipulationRatingEnumeration';
69
+
70
+    /**
71
+     * The Schema.org Type Description
72
+     *
73
+     * @var string
74
+     */
75
+    public static $schemaTypeDescription = "Content coded 'satire or parody content' in a [[MediaReview]], considered in the context of how it was published or shared.\n\nFor a [[VideoObject]] to be 'satire or parody content': A video that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)\n\nFor an [[ImageObject]] to be 'satire or parody content': An image that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)\n\nFor an [[ImageObject]] with embedded text to be 'satire or parody content': An image that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)\n\nFor an [[AudioObject]] to be 'satire or parody content': Audio that was created as political or humorous commentary and is presented in that context. (Reshares of satire/parody content that do not include relevant context are more likely to fall under the “missing context” rating.)";
76
+
77
+
78
+    /**
79
+     * @inheritdoc
80
+     */
81
+    public function getSchemaPropertyNames(): array
82
+    {
83
+        return array_keys($this->getSchemaPropertyExpectedTypes());
84
+    }
85
+
86
+
87
+    /**
88
+     * @inheritdoc
89
+     */
90
+    public function getSchemaPropertyExpectedTypes(): array
91
+    {
92
+        return [
93
+            'additionalType' => ['URL'],
94
+            'alternateName' => ['Text'],
95
+            'description' => ['Text'],
96
+            'disambiguatingDescription' => ['Text'],
97
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
98
+            'image' => ['URL', 'ImageObject'],
99
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
100
+            'name' => ['Text'],
101
+            'potentialAction' => ['Action'],
102
+            'sameAs' => ['URL'],
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
+            'description' => 'A description of the item.',
119
+            '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.',
120
+            '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.         ',
121
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
+            '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.',
123
+            'name' => 'The name of the item.',
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
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
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/Optician.php 1 patch
Indentation   +310 added lines, -310 removed lines patch added patch discarded remove patch
@@ -24,331 +24,331 @@
 block discarded – undo
24 24
  */
25 25
 class Optician extends MetaJsonLd implements OpticianInterface, MedicalBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface
26 26
 {
27
-	use OpticianTrait;
28
-	use MedicalBusinessTrait;
29
-	use LocalBusinessTrait;
30
-	use PlaceTrait;
31
-	use ThingTrait;
32
-	use OrganizationTrait;
27
+    use OpticianTrait;
28
+    use MedicalBusinessTrait;
29
+    use LocalBusinessTrait;
30
+    use PlaceTrait;
31
+    use ThingTrait;
32
+    use OrganizationTrait;
33 33
 
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'Optician';
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'Optician';
40 40
 
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/Optician';
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/Optician';
47 47
 
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'MedicalBusiness';
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'MedicalBusiness';
54 54
 
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'A store that sells reading glasses and similar devices for improving vision.';
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'A store that sells reading glasses and similar devices for improving vision.';
61 61
 
62 62
 
63
-	/**
64
-	 * @inheritdoc
65
-	 */
66
-	public function getSchemaPropertyNames(): array
67
-	{
68
-		return array_keys($this->getSchemaPropertyExpectedTypes());
69
-	}
63
+    /**
64
+     * @inheritdoc
65
+     */
66
+    public function getSchemaPropertyNames(): array
67
+    {
68
+        return array_keys($this->getSchemaPropertyExpectedTypes());
69
+    }
70 70
 
71 71
 
72
-	/**
73
-	 * @inheritdoc
74
-	 */
75
-	public function getSchemaPropertyExpectedTypes(): array
76
-	{
77
-		return [
78
-		    'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
79
-		    'additionalProperty' => ['PropertyValue'],
80
-		    'additionalType' => ['URL'],
81
-		    'address' => ['Text', 'PostalAddress'],
82
-		    'aggregateRating' => ['AggregateRating'],
83
-		    'alternateName' => ['Text'],
84
-		    'alumni' => ['Person'],
85
-		    'amenityFeature' => ['LocationFeatureSpecification'],
86
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
87
-		    'award' => ['Text'],
88
-		    'awards' => ['Text'],
89
-		    'branchCode' => ['Text'],
90
-		    'branchOf' => ['Organization'],
91
-		    'brand' => ['Brand', 'Organization'],
92
-		    'contactPoint' => ['ContactPoint'],
93
-		    'contactPoints' => ['ContactPoint'],
94
-		    'containedIn' => ['Place'],
95
-		    'containedInPlace' => ['Place'],
96
-		    'containsPlace' => ['Place'],
97
-		    'correctionsPolicy' => ['URL', 'CreativeWork'],
98
-		    'currenciesAccepted' => ['Text'],
99
-		    'department' => ['Organization'],
100
-		    'description' => ['Text'],
101
-		    'disambiguatingDescription' => ['Text'],
102
-		    'dissolutionDate' => ['Date'],
103
-		    'diversityPolicy' => ['URL', 'CreativeWork'],
104
-		    'diversityStaffingReport' => ['Article', 'URL'],
105
-		    'duns' => ['Text'],
106
-		    'email' => ['Text'],
107
-		    'employee' => ['Person'],
108
-		    'employees' => ['Person'],
109
-		    'ethicsPolicy' => ['CreativeWork', 'URL'],
110
-		    'event' => ['Event'],
111
-		    'events' => ['Event'],
112
-		    'faxNumber' => ['Text'],
113
-		    'founder' => ['Person'],
114
-		    'founders' => ['Person'],
115
-		    'foundingDate' => ['Date'],
116
-		    'foundingLocation' => ['Place'],
117
-		    'funder' => ['Organization', 'Person'],
118
-		    'funding' => ['Grant'],
119
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
120
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
121
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
122
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
123
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
124
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
125
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
126
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
127
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
128
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
129
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
130
-		    'globalLocationNumber' => ['Text'],
131
-		    'hasCredential' => ['EducationalOccupationalCredential'],
132
-		    'hasDriveThroughService' => ['Boolean'],
133
-		    'hasMap' => ['URL', 'Map'],
134
-		    'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
135
-		    'hasOfferCatalog' => ['OfferCatalog'],
136
-		    'hasPOS' => ['Place'],
137
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
138
-		    'image' => ['URL', 'ImageObject'],
139
-		    'interactionStatistic' => ['InteractionCounter'],
140
-		    'isAccessibleForFree' => ['Boolean'],
141
-		    'isicV4' => ['Text'],
142
-		    'iso6523Code' => ['Text'],
143
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
144
-		    'knowsAbout' => ['Thing', 'Text', 'URL'],
145
-		    'knowsLanguage' => ['Text', 'Language'],
146
-		    'latitude' => ['Number', 'Text'],
147
-		    'legalName' => ['Text'],
148
-		    'leiCode' => ['Text'],
149
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
150
-		    'logo' => ['ImageObject', 'URL'],
151
-		    'longitude' => ['Text', 'Number'],
152
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
153
-		    'makesOffer' => ['Offer'],
154
-		    'map' => ['URL'],
155
-		    'maps' => ['URL'],
156
-		    'maximumAttendeeCapacity' => ['Integer'],
157
-		    'member' => ['Organization', 'Person'],
158
-		    'memberOf' => ['Organization', 'ProgramMembership'],
159
-		    'members' => ['Organization', 'Person'],
160
-		    'naics' => ['Text'],
161
-		    'name' => ['Text'],
162
-		    'nonprofitStatus' => ['NonprofitType'],
163
-		    'numberOfEmployees' => ['QuantitativeValue'],
164
-		    'openingHours' => ['Text'],
165
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
166
-		    'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
167
-		    'owns' => ['Product', 'OwnershipInfo'],
168
-		    'parentOrganization' => ['Organization'],
169
-		    'paymentAccepted' => ['Text'],
170
-		    'photo' => ['Photograph', 'ImageObject'],
171
-		    'photos' => ['ImageObject', 'Photograph'],
172
-		    'potentialAction' => ['Action'],
173
-		    'priceRange' => ['Text'],
174
-		    'publicAccess' => ['Boolean'],
175
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
176
-		    'review' => ['Review'],
177
-		    'reviews' => ['Review'],
178
-		    'sameAs' => ['URL'],
179
-		    'seeks' => ['Demand'],
180
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
181
-		    'slogan' => ['Text'],
182
-		    'smokingAllowed' => ['Boolean'],
183
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
184
-		    'sponsor' => ['Organization', 'Person'],
185
-		    'subOrganization' => ['Organization'],
186
-		    'subjectOf' => ['Event', 'CreativeWork'],
187
-		    'taxID' => ['Text'],
188
-		    'telephone' => ['Text'],
189
-		    'tourBookingPage' => ['URL'],
190
-		    'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
191
-		    'url' => ['URL'],
192
-		    'vatID' => ['Text']
193
-		];
194
-	}
72
+    /**
73
+     * @inheritdoc
74
+     */
75
+    public function getSchemaPropertyExpectedTypes(): array
76
+    {
77
+        return [
78
+            'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
79
+            'additionalProperty' => ['PropertyValue'],
80
+            'additionalType' => ['URL'],
81
+            'address' => ['Text', 'PostalAddress'],
82
+            'aggregateRating' => ['AggregateRating'],
83
+            'alternateName' => ['Text'],
84
+            'alumni' => ['Person'],
85
+            'amenityFeature' => ['LocationFeatureSpecification'],
86
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
87
+            'award' => ['Text'],
88
+            'awards' => ['Text'],
89
+            'branchCode' => ['Text'],
90
+            'branchOf' => ['Organization'],
91
+            'brand' => ['Brand', 'Organization'],
92
+            'contactPoint' => ['ContactPoint'],
93
+            'contactPoints' => ['ContactPoint'],
94
+            'containedIn' => ['Place'],
95
+            'containedInPlace' => ['Place'],
96
+            'containsPlace' => ['Place'],
97
+            'correctionsPolicy' => ['URL', 'CreativeWork'],
98
+            'currenciesAccepted' => ['Text'],
99
+            'department' => ['Organization'],
100
+            'description' => ['Text'],
101
+            'disambiguatingDescription' => ['Text'],
102
+            'dissolutionDate' => ['Date'],
103
+            'diversityPolicy' => ['URL', 'CreativeWork'],
104
+            'diversityStaffingReport' => ['Article', 'URL'],
105
+            'duns' => ['Text'],
106
+            'email' => ['Text'],
107
+            'employee' => ['Person'],
108
+            'employees' => ['Person'],
109
+            'ethicsPolicy' => ['CreativeWork', 'URL'],
110
+            'event' => ['Event'],
111
+            'events' => ['Event'],
112
+            'faxNumber' => ['Text'],
113
+            'founder' => ['Person'],
114
+            'founders' => ['Person'],
115
+            'foundingDate' => ['Date'],
116
+            'foundingLocation' => ['Place'],
117
+            'funder' => ['Organization', 'Person'],
118
+            'funding' => ['Grant'],
119
+            'geo' => ['GeoCoordinates', 'GeoShape'],
120
+            'geoContains' => ['Place', 'GeospatialGeometry'],
121
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
122
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
123
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
124
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
125
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
126
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
127
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
128
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
129
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
130
+            'globalLocationNumber' => ['Text'],
131
+            'hasCredential' => ['EducationalOccupationalCredential'],
132
+            'hasDriveThroughService' => ['Boolean'],
133
+            'hasMap' => ['URL', 'Map'],
134
+            'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
135
+            'hasOfferCatalog' => ['OfferCatalog'],
136
+            'hasPOS' => ['Place'],
137
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
138
+            'image' => ['URL', 'ImageObject'],
139
+            'interactionStatistic' => ['InteractionCounter'],
140
+            'isAccessibleForFree' => ['Boolean'],
141
+            'isicV4' => ['Text'],
142
+            'iso6523Code' => ['Text'],
143
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
144
+            'knowsAbout' => ['Thing', 'Text', 'URL'],
145
+            'knowsLanguage' => ['Text', 'Language'],
146
+            'latitude' => ['Number', 'Text'],
147
+            'legalName' => ['Text'],
148
+            'leiCode' => ['Text'],
149
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
150
+            'logo' => ['ImageObject', 'URL'],
151
+            'longitude' => ['Text', 'Number'],
152
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
153
+            'makesOffer' => ['Offer'],
154
+            'map' => ['URL'],
155
+            'maps' => ['URL'],
156
+            'maximumAttendeeCapacity' => ['Integer'],
157
+            'member' => ['Organization', 'Person'],
158
+            'memberOf' => ['Organization', 'ProgramMembership'],
159
+            'members' => ['Organization', 'Person'],
160
+            'naics' => ['Text'],
161
+            'name' => ['Text'],
162
+            'nonprofitStatus' => ['NonprofitType'],
163
+            'numberOfEmployees' => ['QuantitativeValue'],
164
+            'openingHours' => ['Text'],
165
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
166
+            'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
167
+            'owns' => ['Product', 'OwnershipInfo'],
168
+            'parentOrganization' => ['Organization'],
169
+            'paymentAccepted' => ['Text'],
170
+            'photo' => ['Photograph', 'ImageObject'],
171
+            'photos' => ['ImageObject', 'Photograph'],
172
+            'potentialAction' => ['Action'],
173
+            'priceRange' => ['Text'],
174
+            'publicAccess' => ['Boolean'],
175
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
176
+            'review' => ['Review'],
177
+            'reviews' => ['Review'],
178
+            'sameAs' => ['URL'],
179
+            'seeks' => ['Demand'],
180
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
181
+            'slogan' => ['Text'],
182
+            'smokingAllowed' => ['Boolean'],
183
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
184
+            'sponsor' => ['Organization', 'Person'],
185
+            'subOrganization' => ['Organization'],
186
+            'subjectOf' => ['Event', 'CreativeWork'],
187
+            'taxID' => ['Text'],
188
+            'telephone' => ['Text'],
189
+            'tourBookingPage' => ['URL'],
190
+            'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
191
+            'url' => ['URL'],
192
+            'vatID' => ['Text']
193
+        ];
194
+    }
195 195
 
196 196
 
197
-	/**
198
-	 * @inheritdoc
199
-	 */
200
-	public function getSchemaPropertyDescriptions(): array
201
-	{
202
-		return [
203
-		    '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.',
204
-		    '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. ',
205
-		    '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.',
206
-		    'address' => 'Physical address of the item.',
207
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
208
-		    'alternateName' => 'An alias for the item.',
209
-		    'alumni' => 'Alumni of an organization.',
210
-		    '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.',
211
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
212
-		    'award' => 'An award won by or for this item.',
213
-		    'awards' => 'Awards won by or for this item.',
214
-		    '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.       ',
215
-		    'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
216
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
217
-		    'contactPoint' => 'A contact point for a person or organization.',
218
-		    'contactPoints' => 'A contact point for a person or organization.',
219
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
220
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
221
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
222
-		    'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
223
-		    '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".',
224
-		    '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.',
225
-		    'description' => 'A description of the item.',
226
-		    '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.',
227
-		    'dissolutionDate' => 'The date that this organization was dissolved.',
228
-		    '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.',
229
-		    '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.',
230
-		    'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
231
-		    'email' => 'Email address.',
232
-		    'employee' => 'Someone working for this organization.',
233
-		    'employees' => 'People working for this organization.',
234
-		    '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.',
235
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
236
-		    'events' => 'Upcoming or past events associated with this place or organization.',
237
-		    'faxNumber' => 'The fax number.',
238
-		    'founder' => 'A person who founded this organization.',
239
-		    'founders' => 'A person who founded this organization.',
240
-		    'foundingDate' => 'The date that this organization was founded.',
241
-		    'foundingLocation' => 'The place where the Organization was founded.',
242
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
243
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
244
-		    'geo' => 'The geo coordinates of the place.',
245
-		    '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).',
246
-		    '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).',
247
-		    '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).',
248
-		    '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).',
249
-		    '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).)',
250
-		    '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).',
251
-		    '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).',
252
-		    '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).',
253
-		    '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).)',
254
-		    '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).',
255
-		    '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.',
256
-		    'hasCredential' => 'A credential awarded to the Person or Organization.',
257
-		    '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.',
258
-		    'hasMap' => 'A URL to a map of the place.',
259
-		    'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
260
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
261
-		    'hasPOS' => 'Points-of-Sales operated by the organization or person.',
262
-		    '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.         ',
263
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
264
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
265
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
266
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
267
-		    '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. ',
268
-		    '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.',
269
-		    '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.',
270
-		    '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).',
271
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
272
-		    'legalName' => 'The official name of the organization, e.g. the registered company name.',
273
-		    'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
274
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
275
-		    'logo' => 'An associated logo.',
276
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
277
-		    '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.',
278
-		    'makesOffer' => 'A pointer to products or services offered by the organization or person.',
279
-		    'map' => 'A URL to a map of the place.',
280
-		    'maps' => 'A URL to a map of the place.',
281
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
282
-		    'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
283
-		    'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
284
-		    'members' => 'A member of this organization.',
285
-		    'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
286
-		    'name' => 'The name of the item.',
287
-		    'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
288
-		    'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
289
-		    '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>.',
290
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
291
-		    '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.',
292
-		    'owns' => 'Products owned by the organization or person.',
293
-		    'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
294
-		    'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
295
-		    'photo' => 'A photograph of this place.',
296
-		    'photos' => 'Photographs of this place.',
297
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
298
-		    'priceRange' => 'The price range of the business, for example ```$$$```.',
299
-		    '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',
300
-		    '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. ',
301
-		    'review' => 'A review of the item.',
302
-		    'reviews' => 'Review of the item.',
303
-		    '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.',
304
-		    'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
305
-		    'serviceArea' => 'The geographic area where the service is provided.',
306
-		    'slogan' => 'A slogan or motto associated with the item.',
307
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
308
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
309
-		    '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.',
310
-		    'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
311
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
312
-		    'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
313
-		    'telephone' => 'The telephone number.',
314
-		    '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.',
315
-		    'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
316
-		    'url' => 'URL of the item.',
317
-		    'vatID' => 'The Value-added Tax ID of the organization or person.'
318
-		];
319
-	}
197
+    /**
198
+     * @inheritdoc
199
+     */
200
+    public function getSchemaPropertyDescriptions(): array
201
+    {
202
+        return [
203
+            '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.',
204
+            '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. ',
205
+            '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.',
206
+            'address' => 'Physical address of the item.',
207
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
208
+            'alternateName' => 'An alias for the item.',
209
+            'alumni' => 'Alumni of an organization.',
210
+            '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.',
211
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
212
+            'award' => 'An award won by or for this item.',
213
+            'awards' => 'Awards won by or for this item.',
214
+            '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.       ',
215
+            'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
216
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
217
+            'contactPoint' => 'A contact point for a person or organization.',
218
+            'contactPoints' => 'A contact point for a person or organization.',
219
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
220
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
221
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
222
+            'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
223
+            '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".',
224
+            '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.',
225
+            'description' => 'A description of the item.',
226
+            '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.',
227
+            'dissolutionDate' => 'The date that this organization was dissolved.',
228
+            '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.',
229
+            '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.',
230
+            'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
231
+            'email' => 'Email address.',
232
+            'employee' => 'Someone working for this organization.',
233
+            'employees' => 'People working for this organization.',
234
+            '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.',
235
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
236
+            'events' => 'Upcoming or past events associated with this place or organization.',
237
+            'faxNumber' => 'The fax number.',
238
+            'founder' => 'A person who founded this organization.',
239
+            'founders' => 'A person who founded this organization.',
240
+            'foundingDate' => 'The date that this organization was founded.',
241
+            'foundingLocation' => 'The place where the Organization was founded.',
242
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
243
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
244
+            'geo' => 'The geo coordinates of the place.',
245
+            '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).',
246
+            '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).',
247
+            '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).',
248
+            '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).',
249
+            '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).)',
250
+            '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).',
251
+            '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).',
252
+            '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).',
253
+            '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).)',
254
+            '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).',
255
+            '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.',
256
+            'hasCredential' => 'A credential awarded to the Person or Organization.',
257
+            '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.',
258
+            'hasMap' => 'A URL to a map of the place.',
259
+            'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
260
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
261
+            'hasPOS' => 'Points-of-Sales operated by the organization or person.',
262
+            '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.         ',
263
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
264
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
265
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
266
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
267
+            '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. ',
268
+            '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.',
269
+            '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.',
270
+            '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).',
271
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
272
+            'legalName' => 'The official name of the organization, e.g. the registered company name.',
273
+            'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
274
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
275
+            'logo' => 'An associated logo.',
276
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
277
+            '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.',
278
+            'makesOffer' => 'A pointer to products or services offered by the organization or person.',
279
+            'map' => 'A URL to a map of the place.',
280
+            'maps' => 'A URL to a map of the place.',
281
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
282
+            'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
283
+            'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
284
+            'members' => 'A member of this organization.',
285
+            'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
286
+            'name' => 'The name of the item.',
287
+            'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
288
+            'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
289
+            '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>.',
290
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
291
+            '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.',
292
+            'owns' => 'Products owned by the organization or person.',
293
+            'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
294
+            'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
295
+            'photo' => 'A photograph of this place.',
296
+            'photos' => 'Photographs of this place.',
297
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
298
+            'priceRange' => 'The price range of the business, for example ```$$$```.',
299
+            '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',
300
+            '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. ',
301
+            'review' => 'A review of the item.',
302
+            'reviews' => 'Review of the item.',
303
+            '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.',
304
+            'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
305
+            'serviceArea' => 'The geographic area where the service is provided.',
306
+            'slogan' => 'A slogan or motto associated with the item.',
307
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
308
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
309
+            '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.',
310
+            'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
311
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
312
+            'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
313
+            'telephone' => 'The telephone number.',
314
+            '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.',
315
+            'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
316
+            'url' => 'URL of the item.',
317
+            'vatID' => 'The Value-added Tax ID of the organization or person.'
318
+        ];
319
+    }
320 320
 
321 321
 
322
-	/**
323
-	 * @inheritdoc
324
-	 */
325
-	public function getGoogleRequiredSchema(): array
326
-	{
327
-		return ['description', 'name'];
328
-	}
322
+    /**
323
+     * @inheritdoc
324
+     */
325
+    public function getGoogleRequiredSchema(): array
326
+    {
327
+        return ['description', 'name'];
328
+    }
329 329
 
330 330
 
331
-	/**
332
-	 * @inheritdoc
333
-	 */
334
-	public function getGoogleRecommendedSchema(): array
335
-	{
336
-		return ['image', 'url'];
337
-	}
331
+    /**
332
+     * @inheritdoc
333
+     */
334
+    public function getGoogleRecommendedSchema(): array
335
+    {
336
+        return ['image', 'url'];
337
+    }
338 338
 
339 339
 
340
-	/**
341
-	 * @inheritdoc
342
-	 */
343
-	public function defineRules(): array
344
-	{
345
-		$rules = parent::defineRules();
346
-		    $rules = array_merge($rules, [
347
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
348
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
349
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
350
-		    ]);
340
+    /**
341
+     * @inheritdoc
342
+     */
343
+    public function defineRules(): array
344
+    {
345
+        $rules = parent::defineRules();
346
+            $rules = array_merge($rules, [
347
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
348
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
349
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
350
+            ]);
351 351
 
352
-		    return $rules;
353
-	}
352
+            return $rules;
353
+    }
354 354
 }
Please login to merge, or discard this patch.
src/models/jsonld/OpeningHoursSpecification.php 1 patch
Indentation   +129 added lines, -129 removed lines patch added patch discarded remove patch
@@ -27,133 +27,133 @@
 block discarded – undo
27 27
  */
28 28
 class OpeningHoursSpecification extends MetaJsonLd implements OpeningHoursSpecificationInterface, StructuredValueInterface, IntangibleInterface, ThingInterface
29 29
 {
30
-	use OpeningHoursSpecificationTrait;
31
-	use StructuredValueTrait;
32
-	use IntangibleTrait;
33
-	use ThingTrait;
34
-
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static $schemaTypeName = 'OpeningHoursSpecification';
41
-
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/OpeningHoursSpecification';
48
-
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeExtends = 'StructuredValue';
55
-
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeDescription = "A structured value providing information about the opening hours of a place or a certain service inside a place.\\n\\n\nThe place is __open__ if the [[opens]] property is specified, and __closed__ otherwise.\\n\\nIf the value for the [[closes]] property is less than the value for the [[opens]] property then the hour range is assumed to span over the next day.\n      ";
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
-		    'closes' => ['Time'],
82
-		    'dayOfWeek' => ['DayOfWeek'],
83
-		    'description' => ['Text'],
84
-		    'disambiguatingDescription' => ['Text'],
85
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
86
-		    'image' => ['URL', 'ImageObject'],
87
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
88
-		    'name' => ['Text'],
89
-		    'opens' => ['Time'],
90
-		    'potentialAction' => ['Action'],
91
-		    'sameAs' => ['URL'],
92
-		    'subjectOf' => ['Event', 'CreativeWork'],
93
-		    'url' => ['URL'],
94
-		    'validFrom' => ['Date', 'DateTime'],
95
-		    'validThrough' => ['Date', 'DateTime']
96
-		];
97
-	}
98
-
99
-
100
-	/**
101
-	 * @inheritdoc
102
-	 */
103
-	public function getSchemaPropertyDescriptions(): array
104
-	{
105
-		return [
106
-		    '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.',
107
-		    'alternateName' => 'An alias for the item.',
108
-		    'closes' => 'The closing hour of the place or service on the given day(s) of the week.',
109
-		    'dayOfWeek' => 'The day of the week for which these opening hours are valid.',
110
-		    'description' => 'A description of the item.',
111
-		    '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.',
112
-		    '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.         ',
113
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
114
-		    '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.',
115
-		    'name' => 'The name of the item.',
116
-		    'opens' => 'The opening hour of the place or service on the given day(s) of the week.',
117
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
118
-		    '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.',
119
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
120
-		    'url' => 'URL of the item.',
121
-		    'validFrom' => 'The date when the item becomes valid.',
122
-		    'validThrough' => 'The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.'
123
-		];
124
-	}
125
-
126
-
127
-	/**
128
-	 * @inheritdoc
129
-	 */
130
-	public function getGoogleRequiredSchema(): array
131
-	{
132
-		return ['description', 'name'];
133
-	}
134
-
135
-
136
-	/**
137
-	 * @inheritdoc
138
-	 */
139
-	public function getGoogleRecommendedSchema(): array
140
-	{
141
-		return ['image', 'url'];
142
-	}
143
-
144
-
145
-	/**
146
-	 * @inheritdoc
147
-	 */
148
-	public function defineRules(): array
149
-	{
150
-		$rules = parent::defineRules();
151
-		    $rules = array_merge($rules, [
152
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
153
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
154
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
155
-		    ]);
156
-
157
-		    return $rules;
158
-	}
30
+    use OpeningHoursSpecificationTrait;
31
+    use StructuredValueTrait;
32
+    use IntangibleTrait;
33
+    use ThingTrait;
34
+
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static $schemaTypeName = 'OpeningHoursSpecification';
41
+
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/OpeningHoursSpecification';
48
+
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeExtends = 'StructuredValue';
55
+
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeDescription = "A structured value providing information about the opening hours of a place or a certain service inside a place.\\n\\n\nThe place is __open__ if the [[opens]] property is specified, and __closed__ otherwise.\\n\\nIf the value for the [[closes]] property is less than the value for the [[opens]] property then the hour range is assumed to span over the next day.\n      ";
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
+            'closes' => ['Time'],
82
+            'dayOfWeek' => ['DayOfWeek'],
83
+            'description' => ['Text'],
84
+            'disambiguatingDescription' => ['Text'],
85
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
86
+            'image' => ['URL', 'ImageObject'],
87
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
88
+            'name' => ['Text'],
89
+            'opens' => ['Time'],
90
+            'potentialAction' => ['Action'],
91
+            'sameAs' => ['URL'],
92
+            'subjectOf' => ['Event', 'CreativeWork'],
93
+            'url' => ['URL'],
94
+            'validFrom' => ['Date', 'DateTime'],
95
+            'validThrough' => ['Date', 'DateTime']
96
+        ];
97
+    }
98
+
99
+
100
+    /**
101
+     * @inheritdoc
102
+     */
103
+    public function getSchemaPropertyDescriptions(): array
104
+    {
105
+        return [
106
+            '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.',
107
+            'alternateName' => 'An alias for the item.',
108
+            'closes' => 'The closing hour of the place or service on the given day(s) of the week.',
109
+            'dayOfWeek' => 'The day of the week for which these opening hours are valid.',
110
+            'description' => 'A description of the item.',
111
+            '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.',
112
+            '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.         ',
113
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
114
+            '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.',
115
+            'name' => 'The name of the item.',
116
+            'opens' => 'The opening hour of the place or service on the given day(s) of the week.',
117
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
118
+            '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.',
119
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
120
+            'url' => 'URL of the item.',
121
+            'validFrom' => 'The date when the item becomes valid.',
122
+            'validThrough' => 'The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.'
123
+        ];
124
+    }
125
+
126
+
127
+    /**
128
+     * @inheritdoc
129
+     */
130
+    public function getGoogleRequiredSchema(): array
131
+    {
132
+        return ['description', 'name'];
133
+    }
134
+
135
+
136
+    /**
137
+     * @inheritdoc
138
+     */
139
+    public function getGoogleRecommendedSchema(): array
140
+    {
141
+        return ['image', 'url'];
142
+    }
143
+
144
+
145
+    /**
146
+     * @inheritdoc
147
+     */
148
+    public function defineRules(): array
149
+    {
150
+        $rules = parent::defineRules();
151
+            $rules = array_merge($rules, [
152
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
153
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
154
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
155
+            ]);
156
+
157
+            return $rules;
158
+    }
159 159
 }
Please login to merge, or discard this patch.
src/models/jsonld/LeftHandDriving.php 1 patch
Indentation   +139 added lines, -139 removed lines patch added patch discarded remove patch
@@ -24,143 +24,143 @@
 block discarded – undo
24 24
  */
25 25
 class LeftHandDriving extends MetaJsonLd implements LeftHandDrivingInterface, SteeringPositionValueInterface, QualitativeValueInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use LeftHandDrivingTrait;
28
-	use SteeringPositionValueTrait;
29
-	use QualitativeValueTrait;
30
-	use EnumerationTrait;
31
-	use IntangibleTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'LeftHandDriving';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/LeftHandDriving';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'SteeringPositionValue';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'The steering position is on the left side of the vehicle (viewed from the main direction of driving).';
61
-
62
-
63
-	/**
64
-	 * @inheritdoc
65
-	 */
66
-	public function getSchemaPropertyNames(): array
67
-	{
68
-		return array_keys($this->getSchemaPropertyExpectedTypes());
69
-	}
70
-
71
-
72
-	/**
73
-	 * @inheritdoc
74
-	 */
75
-	public function getSchemaPropertyExpectedTypes(): array
76
-	{
77
-		return [
78
-		    'additionalProperty' => ['PropertyValue'],
79
-		    'additionalType' => ['URL'],
80
-		    'alternateName' => ['Text'],
81
-		    'description' => ['Text'],
82
-		    'disambiguatingDescription' => ['Text'],
83
-		    'equal' => ['QualitativeValue'],
84
-		    'greater' => ['QualitativeValue'],
85
-		    'greaterOrEqual' => ['QualitativeValue'],
86
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
87
-		    'image' => ['URL', 'ImageObject'],
88
-		    'lesser' => ['QualitativeValue'],
89
-		    'lesserOrEqual' => ['QualitativeValue'],
90
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
91
-		    'name' => ['Text'],
92
-		    'nonEqual' => ['QualitativeValue'],
93
-		    'potentialAction' => ['Action'],
94
-		    'sameAs' => ['URL'],
95
-		    'subjectOf' => ['Event', 'CreativeWork'],
96
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
97
-		    'url' => ['URL'],
98
-		    'valueReference' => ['Enumeration', 'QualitativeValue', 'DefinedTerm', 'StructuredValue', 'PropertyValue', 'Text', 'MeasurementTypeEnumeration', 'QuantitativeValue']
99
-		];
100
-	}
101
-
102
-
103
-	/**
104
-	 * @inheritdoc
105
-	 */
106
-	public function getSchemaPropertyDescriptions(): array
107
-	{
108
-		return [
109
-		    '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. ',
110
-		    '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.',
111
-		    'alternateName' => 'An alias for the item.',
112
-		    'description' => 'A description of the item.',
113
-		    '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.',
114
-		    'equal' => 'This ordering relation for qualitative values indicates that the subject is equal to the object.',
115
-		    'greater' => 'This ordering relation for qualitative values indicates that the subject is greater than the object.',
116
-		    'greaterOrEqual' => 'This ordering relation for qualitative values indicates that the subject is greater than or equal to the object.',
117
-		    '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.         ',
118
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
119
-		    'lesser' => 'This ordering relation for qualitative values indicates that the subject is lesser than the object.',
120
-		    'lesserOrEqual' => 'This ordering relation for qualitative values indicates that the subject is lesser than or equal to the object.',
121
-		    '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.',
122
-		    'name' => 'The name of the item.',
123
-		    'nonEqual' => 'This ordering relation for qualitative values indicates that the subject is not equal to the object.',
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
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
128
-		    'url' => 'URL of the item.',
129
-		    'valueReference' => 'A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.'
130
-		];
131
-	}
132
-
133
-
134
-	/**
135
-	 * @inheritdoc
136
-	 */
137
-	public function getGoogleRequiredSchema(): array
138
-	{
139
-		return ['description', 'name'];
140
-	}
141
-
142
-
143
-	/**
144
-	 * @inheritdoc
145
-	 */
146
-	public function getGoogleRecommendedSchema(): array
147
-	{
148
-		return ['image', 'url'];
149
-	}
150
-
151
-
152
-	/**
153
-	 * @inheritdoc
154
-	 */
155
-	public function defineRules(): array
156
-	{
157
-		$rules = parent::defineRules();
158
-		    $rules = array_merge($rules, [
159
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
160
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
161
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
162
-		    ]);
163
-
164
-		    return $rules;
165
-	}
27
+    use LeftHandDrivingTrait;
28
+    use SteeringPositionValueTrait;
29
+    use QualitativeValueTrait;
30
+    use EnumerationTrait;
31
+    use IntangibleTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'LeftHandDriving';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/LeftHandDriving';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'SteeringPositionValue';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'The steering position is on the left side of the vehicle (viewed from the main direction of driving).';
61
+
62
+
63
+    /**
64
+     * @inheritdoc
65
+     */
66
+    public function getSchemaPropertyNames(): array
67
+    {
68
+        return array_keys($this->getSchemaPropertyExpectedTypes());
69
+    }
70
+
71
+
72
+    /**
73
+     * @inheritdoc
74
+     */
75
+    public function getSchemaPropertyExpectedTypes(): array
76
+    {
77
+        return [
78
+            'additionalProperty' => ['PropertyValue'],
79
+            'additionalType' => ['URL'],
80
+            'alternateName' => ['Text'],
81
+            'description' => ['Text'],
82
+            'disambiguatingDescription' => ['Text'],
83
+            'equal' => ['QualitativeValue'],
84
+            'greater' => ['QualitativeValue'],
85
+            'greaterOrEqual' => ['QualitativeValue'],
86
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
87
+            'image' => ['URL', 'ImageObject'],
88
+            'lesser' => ['QualitativeValue'],
89
+            'lesserOrEqual' => ['QualitativeValue'],
90
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
91
+            'name' => ['Text'],
92
+            'nonEqual' => ['QualitativeValue'],
93
+            'potentialAction' => ['Action'],
94
+            'sameAs' => ['URL'],
95
+            'subjectOf' => ['Event', 'CreativeWork'],
96
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
97
+            'url' => ['URL'],
98
+            'valueReference' => ['Enumeration', 'QualitativeValue', 'DefinedTerm', 'StructuredValue', 'PropertyValue', 'Text', 'MeasurementTypeEnumeration', 'QuantitativeValue']
99
+        ];
100
+    }
101
+
102
+
103
+    /**
104
+     * @inheritdoc
105
+     */
106
+    public function getSchemaPropertyDescriptions(): array
107
+    {
108
+        return [
109
+            '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. ',
110
+            '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.',
111
+            'alternateName' => 'An alias for the item.',
112
+            'description' => 'A description of the item.',
113
+            '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.',
114
+            'equal' => 'This ordering relation for qualitative values indicates that the subject is equal to the object.',
115
+            'greater' => 'This ordering relation for qualitative values indicates that the subject is greater than the object.',
116
+            'greaterOrEqual' => 'This ordering relation for qualitative values indicates that the subject is greater than or equal to the object.',
117
+            '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.         ',
118
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
119
+            'lesser' => 'This ordering relation for qualitative values indicates that the subject is lesser than the object.',
120
+            'lesserOrEqual' => 'This ordering relation for qualitative values indicates that the subject is lesser than or equal to the object.',
121
+            '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.',
122
+            'name' => 'The name of the item.',
123
+            'nonEqual' => 'This ordering relation for qualitative values indicates that the subject is not equal to the object.',
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
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
128
+            'url' => 'URL of the item.',
129
+            'valueReference' => 'A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.'
130
+        ];
131
+    }
132
+
133
+
134
+    /**
135
+     * @inheritdoc
136
+     */
137
+    public function getGoogleRequiredSchema(): array
138
+    {
139
+        return ['description', 'name'];
140
+    }
141
+
142
+
143
+    /**
144
+     * @inheritdoc
145
+     */
146
+    public function getGoogleRecommendedSchema(): array
147
+    {
148
+        return ['image', 'url'];
149
+    }
150
+
151
+
152
+    /**
153
+     * @inheritdoc
154
+     */
155
+    public function defineRules(): array
156
+    {
157
+        $rules = parent::defineRules();
158
+            $rules = array_merge($rules, [
159
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
160
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
161
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
162
+            ]);
163
+
164
+            return $rules;
165
+    }
166 166
 }
Please login to merge, or discard this patch.
src/models/jsonld/DrugPrescriptionStatus.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -24,126 +24,126 @@
 block discarded – undo
24 24
  */
25 25
 class DrugPrescriptionStatus extends MetaJsonLd implements DrugPrescriptionStatusInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use DrugPrescriptionStatusTrait;
28
-	use MedicalEnumerationTrait;
29
-	use EnumerationTrait;
30
-	use IntangibleTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'DrugPrescriptionStatus';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/DrugPrescriptionStatus';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'MedicalEnumeration';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'Indicates whether this drug is available by prescription or over-the-counter.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    '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.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    '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.',
104
-		    '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.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    '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.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    '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.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
27
+    use DrugPrescriptionStatusTrait;
28
+    use MedicalEnumerationTrait;
29
+    use EnumerationTrait;
30
+    use IntangibleTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'DrugPrescriptionStatus';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/DrugPrescriptionStatus';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'MedicalEnumeration';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'Indicates whether this drug is available by prescription or over-the-counter.';
60
+
61
+
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69
+
70
+
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'additionalType' => ['URL'],
78
+            'alternateName' => ['Text'],
79
+            'description' => ['Text'],
80
+            'disambiguatingDescription' => ['Text'],
81
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
82
+            'image' => ['URL', 'ImageObject'],
83
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
+            'name' => ['Text'],
85
+            'potentialAction' => ['Action'],
86
+            'sameAs' => ['URL'],
87
+            'subjectOf' => ['Event', 'CreativeWork'],
88
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
+            'url' => ['URL']
90
+        ];
91
+    }
92
+
93
+
94
+    /**
95
+     * @inheritdoc
96
+     */
97
+    public function getSchemaPropertyDescriptions(): array
98
+    {
99
+        return [
100
+            '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.',
101
+            'alternateName' => 'An alias for the item.',
102
+            'description' => 'A description of the item.',
103
+            '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.',
104
+            '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.         ',
105
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
+            '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.',
107
+            'name' => 'The name of the item.',
108
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
+            '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.',
110
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
+            'url' => 'URL of the item.'
113
+        ];
114
+    }
115
+
116
+
117
+    /**
118
+     * @inheritdoc
119
+     */
120
+    public function getGoogleRequiredSchema(): array
121
+    {
122
+        return ['description', 'name'];
123
+    }
124
+
125
+
126
+    /**
127
+     * @inheritdoc
128
+     */
129
+    public function getGoogleRecommendedSchema(): array
130
+    {
131
+        return ['image', 'url'];
132
+    }
133
+
134
+
135
+    /**
136
+     * @inheritdoc
137
+     */
138
+    public function defineRules(): array
139
+    {
140
+        $rules = parent::defineRules();
141
+            $rules = array_merge($rules, [
142
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
+            ]);
146
+
147
+            return $rules;
148
+    }
149 149
 }
Please login to merge, or discard this patch.
src/models/jsonld/MedicalAudienceType.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -23,126 +23,126 @@
 block discarded – undo
23 23
  */
24 24
 class MedicalAudienceType extends MetaJsonLd implements MedicalAudienceTypeInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use MedicalAudienceTypeTrait;
27
-	use MedicalEnumerationTrait;
28
-	use EnumerationTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'MedicalAudienceType';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/MedicalAudienceType';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'MedicalEnumeration';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'Target audiences types for medical web pages. Enumerated type.';
59
-
60
-
61
-	/**
62
-	 * @inheritdoc
63
-	 */
64
-	public function getSchemaPropertyNames(): array
65
-	{
66
-		return array_keys($this->getSchemaPropertyExpectedTypes());
67
-	}
68
-
69
-
70
-	/**
71
-	 * @inheritdoc
72
-	 */
73
-	public function getSchemaPropertyExpectedTypes(): array
74
-	{
75
-		return [
76
-		    'additionalType' => ['URL'],
77
-		    'alternateName' => ['Text'],
78
-		    'description' => ['Text'],
79
-		    'disambiguatingDescription' => ['Text'],
80
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
81
-		    'image' => ['URL', 'ImageObject'],
82
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
83
-		    'name' => ['Text'],
84
-		    'potentialAction' => ['Action'],
85
-		    'sameAs' => ['URL'],
86
-		    'subjectOf' => ['Event', 'CreativeWork'],
87
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
88
-		    'url' => ['URL']
89
-		];
90
-	}
91
-
92
-
93
-	/**
94
-	 * @inheritdoc
95
-	 */
96
-	public function getSchemaPropertyDescriptions(): array
97
-	{
98
-		return [
99
-		    '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.',
100
-		    'alternateName' => 'An alias for the item.',
101
-		    'description' => 'A description of the item.',
102
-		    '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.',
103
-		    '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.         ',
104
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
105
-		    '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.',
106
-		    'name' => 'The name of the item.',
107
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
108
-		    '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.',
109
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
110
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
111
-		    'url' => 'URL of the item.'
112
-		];
113
-	}
114
-
115
-
116
-	/**
117
-	 * @inheritdoc
118
-	 */
119
-	public function getGoogleRequiredSchema(): array
120
-	{
121
-		return ['description', 'name'];
122
-	}
123
-
124
-
125
-	/**
126
-	 * @inheritdoc
127
-	 */
128
-	public function getGoogleRecommendedSchema(): array
129
-	{
130
-		return ['image', 'url'];
131
-	}
132
-
133
-
134
-	/**
135
-	 * @inheritdoc
136
-	 */
137
-	public function defineRules(): array
138
-	{
139
-		$rules = parent::defineRules();
140
-		    $rules = array_merge($rules, [
141
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
142
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
143
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
144
-		    ]);
145
-
146
-		    return $rules;
147
-	}
26
+    use MedicalAudienceTypeTrait;
27
+    use MedicalEnumerationTrait;
28
+    use EnumerationTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'MedicalAudienceType';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/MedicalAudienceType';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'MedicalEnumeration';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'Target audiences types for medical web pages. Enumerated type.';
59
+
60
+
61
+    /**
62
+     * @inheritdoc
63
+     */
64
+    public function getSchemaPropertyNames(): array
65
+    {
66
+        return array_keys($this->getSchemaPropertyExpectedTypes());
67
+    }
68
+
69
+
70
+    /**
71
+     * @inheritdoc
72
+     */
73
+    public function getSchemaPropertyExpectedTypes(): array
74
+    {
75
+        return [
76
+            'additionalType' => ['URL'],
77
+            'alternateName' => ['Text'],
78
+            'description' => ['Text'],
79
+            'disambiguatingDescription' => ['Text'],
80
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
81
+            'image' => ['URL', 'ImageObject'],
82
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
83
+            'name' => ['Text'],
84
+            'potentialAction' => ['Action'],
85
+            'sameAs' => ['URL'],
86
+            'subjectOf' => ['Event', 'CreativeWork'],
87
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
88
+            'url' => ['URL']
89
+        ];
90
+    }
91
+
92
+
93
+    /**
94
+     * @inheritdoc
95
+     */
96
+    public function getSchemaPropertyDescriptions(): array
97
+    {
98
+        return [
99
+            '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.',
100
+            'alternateName' => 'An alias for the item.',
101
+            'description' => 'A description of the item.',
102
+            '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.',
103
+            '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.         ',
104
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
105
+            '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.',
106
+            'name' => 'The name of the item.',
107
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
108
+            '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.',
109
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
110
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
111
+            'url' => 'URL of the item.'
112
+        ];
113
+    }
114
+
115
+
116
+    /**
117
+     * @inheritdoc
118
+     */
119
+    public function getGoogleRequiredSchema(): array
120
+    {
121
+        return ['description', 'name'];
122
+    }
123
+
124
+
125
+    /**
126
+     * @inheritdoc
127
+     */
128
+    public function getGoogleRecommendedSchema(): array
129
+    {
130
+        return ['image', 'url'];
131
+    }
132
+
133
+
134
+    /**
135
+     * @inheritdoc
136
+     */
137
+    public function defineRules(): array
138
+    {
139
+        $rules = parent::defineRules();
140
+            $rules = array_merge($rules, [
141
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
142
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
143
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
144
+            ]);
145
+
146
+            return $rules;
147
+    }
148 148
 }
Please login to merge, or discard this patch.