Passed
Push — develop ( 4f138b...630b57 )
by Andrew
22:11 queued 11:30
created
src/models/jsonld/StoreCreditRefund.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 StoreCreditRefund extends MetaJsonLd implements StoreCreditRefundInterface, RefundTypeEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use StoreCreditRefundTrait;
28
-	use RefundTypeEnumerationTrait;
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 = 'StoreCreditRefund';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/StoreCreditRefund';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'RefundTypeEnumeration';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'Specifies that the customer receives a store credit as refund when returning a product.';
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 StoreCreditRefundTrait;
28
+    use RefundTypeEnumerationTrait;
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 = 'StoreCreditRefund';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/StoreCreditRefund';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'RefundTypeEnumeration';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'Specifies that the customer receives a store credit as refund when returning a product.';
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/TradeAction.php 1 patch
Indentation   +148 added lines, -148 removed lines patch added patch discarded remove patch
@@ -25,152 +25,152 @@
 block discarded – undo
25 25
  */
26 26
 class TradeAction extends MetaJsonLd implements TradeActionInterface, ActionInterface, ThingInterface
27 27
 {
28
-	use TradeActionTrait;
29
-	use ActionTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'TradeAction';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/TradeAction';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'Action';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'The act of participating in an exchange of goods and services for monetary compensation. An agent trades an object, product or service with a participant in exchange for a one time or periodic payment.';
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
-		    'actionStatus' => ['ActionStatusType'],
77
-		    'additionalType' => ['URL'],
78
-		    'agent' => ['Organization', 'Person'],
79
-		    'alternateName' => ['Text'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'endTime' => ['DateTime', 'Time'],
83
-		    'error' => ['Thing'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'instrument' => ['Thing'],
87
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
-		    'name' => ['Text'],
90
-		    'object' => ['Thing'],
91
-		    'participant' => ['Organization', 'Person'],
92
-		    'potentialAction' => ['Action'],
93
-		    'price' => ['Text', 'Number'],
94
-		    'priceCurrency' => ['Text'],
95
-		    'priceSpecification' => ['PriceSpecification'],
96
-		    'provider' => ['Organization', 'Person'],
97
-		    'result' => ['Thing'],
98
-		    'sameAs' => ['URL'],
99
-		    'startTime' => ['Time', 'DateTime'],
100
-		    'subjectOf' => ['Event', 'CreativeWork'],
101
-		    'target' => ['URL', 'EntryPoint'],
102
-		    'url' => ['URL']
103
-		];
104
-	}
105
-
106
-
107
-	/**
108
-	 * @inheritdoc
109
-	 */
110
-	public function getSchemaPropertyDescriptions(): array
111
-	{
112
-		return [
113
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
114
-		    '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.',
115
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
116
-		    'alternateName' => 'An alias for the item.',
117
-		    'description' => 'A description of the item.',
118
-		    '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.',
119
-		    '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.',
120
-		    'error' => 'For failed actions, more information on the cause of the failure.',
121
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
124
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
125
-		    '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.',
126
-		    'name' => 'The name of the item.',
127
-		    '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*.',
128
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
129
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
130
-		    '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.       ',
131
-		    '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".',
132
-		    'priceSpecification' => 'One or more detailed price specifications, indicating the unit price and delivery or payment charges.',
133
-		    '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.',
134
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
135
-		    '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.',
136
-		    '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.',
137
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
138
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
139
-		    'url' => 'URL of the item.'
140
-		];
141
-	}
142
-
143
-
144
-	/**
145
-	 * @inheritdoc
146
-	 */
147
-	public function getGoogleRequiredSchema(): array
148
-	{
149
-		return ['description', 'name'];
150
-	}
151
-
152
-
153
-	/**
154
-	 * @inheritdoc
155
-	 */
156
-	public function getGoogleRecommendedSchema(): array
157
-	{
158
-		return ['image', 'url'];
159
-	}
160
-
161
-
162
-	/**
163
-	 * @inheritdoc
164
-	 */
165
-	public function defineRules(): array
166
-	{
167
-		$rules = parent::defineRules();
168
-		    $rules = array_merge($rules, [
169
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
170
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
171
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
172
-		    ]);
173
-
174
-		    return $rules;
175
-	}
28
+    use TradeActionTrait;
29
+    use ActionTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'TradeAction';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/TradeAction';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'Action';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'The act of participating in an exchange of goods and services for monetary compensation. An agent trades an object, product or service with a participant in exchange for a one time or periodic payment.';
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
+            'actionStatus' => ['ActionStatusType'],
77
+            'additionalType' => ['URL'],
78
+            'agent' => ['Organization', 'Person'],
79
+            'alternateName' => ['Text'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'endTime' => ['DateTime', 'Time'],
83
+            'error' => ['Thing'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'instrument' => ['Thing'],
87
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
+            'name' => ['Text'],
90
+            'object' => ['Thing'],
91
+            'participant' => ['Organization', 'Person'],
92
+            'potentialAction' => ['Action'],
93
+            'price' => ['Text', 'Number'],
94
+            'priceCurrency' => ['Text'],
95
+            'priceSpecification' => ['PriceSpecification'],
96
+            'provider' => ['Organization', 'Person'],
97
+            'result' => ['Thing'],
98
+            'sameAs' => ['URL'],
99
+            'startTime' => ['Time', 'DateTime'],
100
+            'subjectOf' => ['Event', 'CreativeWork'],
101
+            'target' => ['URL', 'EntryPoint'],
102
+            'url' => ['URL']
103
+        ];
104
+    }
105
+
106
+
107
+    /**
108
+     * @inheritdoc
109
+     */
110
+    public function getSchemaPropertyDescriptions(): array
111
+    {
112
+        return [
113
+            'actionStatus' => 'Indicates the current disposition of the Action.',
114
+            '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.',
115
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
116
+            'alternateName' => 'An alias for the item.',
117
+            'description' => 'A description of the item.',
118
+            '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.',
119
+            '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.',
120
+            'error' => 'For failed actions, more information on the cause of the failure.',
121
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
124
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
125
+            '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.',
126
+            'name' => 'The name of the item.',
127
+            '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*.',
128
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
129
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
130
+            '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.       ',
131
+            '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".',
132
+            'priceSpecification' => 'One or more detailed price specifications, indicating the unit price and delivery or payment charges.',
133
+            '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.',
134
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
135
+            '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.',
136
+            '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.',
137
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
138
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
139
+            'url' => 'URL of the item.'
140
+        ];
141
+    }
142
+
143
+
144
+    /**
145
+     * @inheritdoc
146
+     */
147
+    public function getGoogleRequiredSchema(): array
148
+    {
149
+        return ['description', 'name'];
150
+    }
151
+
152
+
153
+    /**
154
+     * @inheritdoc
155
+     */
156
+    public function getGoogleRecommendedSchema(): array
157
+    {
158
+        return ['image', 'url'];
159
+    }
160
+
161
+
162
+    /**
163
+     * @inheritdoc
164
+     */
165
+    public function defineRules(): array
166
+    {
167
+        $rules = parent::defineRules();
168
+            $rules = array_merge($rules, [
169
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
170
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
171
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
172
+            ]);
173
+
174
+            return $rules;
175
+    }
176 176
 }
Please login to merge, or discard this patch.
src/models/jsonld/BusinessFunction.php 1 patch
Indentation   +121 added lines, -121 removed lines patch added patch discarded remove patch
@@ -36,125 +36,125 @@
 block discarded – undo
36 36
  */
37 37
 class BusinessFunction extends MetaJsonLd implements BusinessFunctionInterface, EnumerationInterface, IntangibleInterface, ThingInterface
38 38
 {
39
-	use BusinessFunctionTrait;
40
-	use EnumerationTrait;
41
-	use IntangibleTrait;
42
-	use ThingTrait;
43
-
44
-	/**
45
-	 * The Schema.org Type Name
46
-	 *
47
-	 * @var string
48
-	 */
49
-	public static $schemaTypeName = 'BusinessFunction';
50
-
51
-	/**
52
-	 * The Schema.org Type Scope
53
-	 *
54
-	 * @var string
55
-	 */
56
-	public static $schemaTypeScope = 'https://schema.org/BusinessFunction';
57
-
58
-	/**
59
-	 * The Schema.org Type Extends
60
-	 *
61
-	 * @var string
62
-	 */
63
-	public static $schemaTypeExtends = 'Enumeration';
64
-
65
-	/**
66
-	 * The Schema.org Type Description
67
-	 *
68
-	 * @var string
69
-	 */
70
-	public static $schemaTypeDescription = "The business function specifies the type of activity or access (i.e., the bundle of rights) offered by the organization or business person through the offer. Typical are sell, rental or lease, maintenance or repair, manufacture / produce, recycle / dispose, engineering / construction, or installation. Proprietary specifications of access rights are also instances of this class.\\n\\nCommonly used values:\\n\\n* http://purl.org/goodrelations/v1#ConstructionInstallation\\n* http://purl.org/goodrelations/v1#Dispose\\n* http://purl.org/goodrelations/v1#LeaseOut\\n* http://purl.org/goodrelations/v1#Maintain\\n* http://purl.org/goodrelations/v1#ProvideService\\n* http://purl.org/goodrelations/v1#Repair\\n* http://purl.org/goodrelations/v1#Sell\\n* http://purl.org/goodrelations/v1#Buy\n        ";
71
-
72
-
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyNames(): array
77
-	{
78
-		return array_keys($this->getSchemaPropertyExpectedTypes());
79
-	}
80
-
81
-
82
-	/**
83
-	 * @inheritdoc
84
-	 */
85
-	public function getSchemaPropertyExpectedTypes(): array
86
-	{
87
-		return [
88
-		    'additionalType' => ['URL'],
89
-		    'alternateName' => ['Text'],
90
-		    'description' => ['Text'],
91
-		    'disambiguatingDescription' => ['Text'],
92
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
93
-		    'image' => ['URL', 'ImageObject'],
94
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
95
-		    'name' => ['Text'],
96
-		    'potentialAction' => ['Action'],
97
-		    'sameAs' => ['URL'],
98
-		    'subjectOf' => ['Event', 'CreativeWork'],
99
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
100
-		    'url' => ['URL']
101
-		];
102
-	}
103
-
104
-
105
-	/**
106
-	 * @inheritdoc
107
-	 */
108
-	public function getSchemaPropertyDescriptions(): array
109
-	{
110
-		return [
111
-		    '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.',
112
-		    'alternateName' => 'An alias for the item.',
113
-		    'description' => 'A description of the item.',
114
-		    '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.',
115
-		    '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.         ',
116
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
117
-		    '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.',
118
-		    'name' => 'The name of the item.',
119
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
120
-		    '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.',
121
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
122
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
123
-		    'url' => 'URL of the item.'
124
-		];
125
-	}
126
-
127
-
128
-	/**
129
-	 * @inheritdoc
130
-	 */
131
-	public function getGoogleRequiredSchema(): array
132
-	{
133
-		return ['description', 'name'];
134
-	}
135
-
136
-
137
-	/**
138
-	 * @inheritdoc
139
-	 */
140
-	public function getGoogleRecommendedSchema(): array
141
-	{
142
-		return ['image', 'url'];
143
-	}
144
-
145
-
146
-	/**
147
-	 * @inheritdoc
148
-	 */
149
-	public function defineRules(): array
150
-	{
151
-		$rules = parent::defineRules();
152
-		    $rules = array_merge($rules, [
153
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
154
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
155
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
156
-		    ]);
157
-
158
-		    return $rules;
159
-	}
39
+    use BusinessFunctionTrait;
40
+    use EnumerationTrait;
41
+    use IntangibleTrait;
42
+    use ThingTrait;
43
+
44
+    /**
45
+     * The Schema.org Type Name
46
+     *
47
+     * @var string
48
+     */
49
+    public static $schemaTypeName = 'BusinessFunction';
50
+
51
+    /**
52
+     * The Schema.org Type Scope
53
+     *
54
+     * @var string
55
+     */
56
+    public static $schemaTypeScope = 'https://schema.org/BusinessFunction';
57
+
58
+    /**
59
+     * The Schema.org Type Extends
60
+     *
61
+     * @var string
62
+     */
63
+    public static $schemaTypeExtends = 'Enumeration';
64
+
65
+    /**
66
+     * The Schema.org Type Description
67
+     *
68
+     * @var string
69
+     */
70
+    public static $schemaTypeDescription = "The business function specifies the type of activity or access (i.e., the bundle of rights) offered by the organization or business person through the offer. Typical are sell, rental or lease, maintenance or repair, manufacture / produce, recycle / dispose, engineering / construction, or installation. Proprietary specifications of access rights are also instances of this class.\\n\\nCommonly used values:\\n\\n* http://purl.org/goodrelations/v1#ConstructionInstallation\\n* http://purl.org/goodrelations/v1#Dispose\\n* http://purl.org/goodrelations/v1#LeaseOut\\n* http://purl.org/goodrelations/v1#Maintain\\n* http://purl.org/goodrelations/v1#ProvideService\\n* http://purl.org/goodrelations/v1#Repair\\n* http://purl.org/goodrelations/v1#Sell\\n* http://purl.org/goodrelations/v1#Buy\n        ";
71
+
72
+
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyNames(): array
77
+    {
78
+        return array_keys($this->getSchemaPropertyExpectedTypes());
79
+    }
80
+
81
+
82
+    /**
83
+     * @inheritdoc
84
+     */
85
+    public function getSchemaPropertyExpectedTypes(): array
86
+    {
87
+        return [
88
+            'additionalType' => ['URL'],
89
+            'alternateName' => ['Text'],
90
+            'description' => ['Text'],
91
+            'disambiguatingDescription' => ['Text'],
92
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
93
+            'image' => ['URL', 'ImageObject'],
94
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
95
+            'name' => ['Text'],
96
+            'potentialAction' => ['Action'],
97
+            'sameAs' => ['URL'],
98
+            'subjectOf' => ['Event', 'CreativeWork'],
99
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
100
+            'url' => ['URL']
101
+        ];
102
+    }
103
+
104
+
105
+    /**
106
+     * @inheritdoc
107
+     */
108
+    public function getSchemaPropertyDescriptions(): array
109
+    {
110
+        return [
111
+            '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.',
112
+            'alternateName' => 'An alias for the item.',
113
+            'description' => 'A description of the item.',
114
+            '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.',
115
+            '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.         ',
116
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
117
+            '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.',
118
+            'name' => 'The name of the item.',
119
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
120
+            '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.',
121
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
122
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
123
+            'url' => 'URL of the item.'
124
+        ];
125
+    }
126
+
127
+
128
+    /**
129
+     * @inheritdoc
130
+     */
131
+    public function getGoogleRequiredSchema(): array
132
+    {
133
+        return ['description', 'name'];
134
+    }
135
+
136
+
137
+    /**
138
+     * @inheritdoc
139
+     */
140
+    public function getGoogleRecommendedSchema(): array
141
+    {
142
+        return ['image', 'url'];
143
+    }
144
+
145
+
146
+    /**
147
+     * @inheritdoc
148
+     */
149
+    public function defineRules(): array
150
+    {
151
+        $rules = parent::defineRules();
152
+            $rules = array_merge($rules, [
153
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
154
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
155
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
156
+            ]);
157
+
158
+            return $rules;
159
+    }
160 160
 }
Please login to merge, or discard this patch.
src/models/jsonld/Pediatric.php 1 patch
Indentation   +317 added lines, -317 removed lines patch added patch discarded remove patch
@@ -24,338 +24,338 @@
 block discarded – undo
24 24
  */
25 25
 class Pediatric extends MetaJsonLd implements PediatricInterface, MedicalBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface, MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, MedicalEnumerationInterface
26 26
 {
27
-	use PediatricTrait;
28
-	use MedicalBusinessTrait;
29
-	use LocalBusinessTrait;
30
-	use PlaceTrait;
31
-	use ThingTrait;
32
-	use OrganizationTrait;
33
-	use MedicalSpecialtyTrait;
34
-	use SpecialtyTrait;
35
-	use EnumerationTrait;
36
-	use IntangibleTrait;
37
-	use MedicalEnumerationTrait;
27
+    use PediatricTrait;
28
+    use MedicalBusinessTrait;
29
+    use LocalBusinessTrait;
30
+    use PlaceTrait;
31
+    use ThingTrait;
32
+    use OrganizationTrait;
33
+    use MedicalSpecialtyTrait;
34
+    use SpecialtyTrait;
35
+    use EnumerationTrait;
36
+    use IntangibleTrait;
37
+    use MedicalEnumerationTrait;
38 38
 
39
-	/**
40
-	 * The Schema.org Type Name
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeName = 'Pediatric';
39
+    /**
40
+     * The Schema.org Type Name
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeName = 'Pediatric';
45 45
 
46
-	/**
47
-	 * The Schema.org Type Scope
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeScope = 'https://schema.org/Pediatric';
46
+    /**
47
+     * The Schema.org Type Scope
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeScope = 'https://schema.org/Pediatric';
52 52
 
53
-	/**
54
-	 * The Schema.org Type Extends
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeExtends = 'MedicalBusiness';
53
+    /**
54
+     * The Schema.org Type Extends
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeExtends = 'MedicalBusiness';
59 59
 
60
-	/**
61
-	 * The Schema.org Type Description
62
-	 *
63
-	 * @var string
64
-	 */
65
-	public static $schemaTypeDescription = 'A specific branch of medical science that specializes in the care of infants, children and adolescents.';
60
+    /**
61
+     * The Schema.org Type Description
62
+     *
63
+     * @var string
64
+     */
65
+    public static $schemaTypeDescription = 'A specific branch of medical science that specializes in the care of infants, children and adolescents.';
66 66
 
67 67
 
68
-	/**
69
-	 * @inheritdoc
70
-	 */
71
-	public function getSchemaPropertyNames(): array
72
-	{
73
-		return array_keys($this->getSchemaPropertyExpectedTypes());
74
-	}
68
+    /**
69
+     * @inheritdoc
70
+     */
71
+    public function getSchemaPropertyNames(): array
72
+    {
73
+        return array_keys($this->getSchemaPropertyExpectedTypes());
74
+    }
75 75
 
76 76
 
77
-	/**
78
-	 * @inheritdoc
79
-	 */
80
-	public function getSchemaPropertyExpectedTypes(): array
81
-	{
82
-		return [
83
-		    'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
84
-		    'additionalProperty' => ['PropertyValue'],
85
-		    'additionalType' => ['URL'],
86
-		    'address' => ['Text', 'PostalAddress'],
87
-		    'aggregateRating' => ['AggregateRating'],
88
-		    'alternateName' => ['Text'],
89
-		    'alumni' => ['Person'],
90
-		    'amenityFeature' => ['LocationFeatureSpecification'],
91
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
92
-		    'award' => ['Text'],
93
-		    'awards' => ['Text'],
94
-		    'branchCode' => ['Text'],
95
-		    'branchOf' => ['Organization'],
96
-		    'brand' => ['Brand', 'Organization'],
97
-		    'contactPoint' => ['ContactPoint'],
98
-		    'contactPoints' => ['ContactPoint'],
99
-		    'containedIn' => ['Place'],
100
-		    'containedInPlace' => ['Place'],
101
-		    'containsPlace' => ['Place'],
102
-		    'correctionsPolicy' => ['URL', 'CreativeWork'],
103
-		    'currenciesAccepted' => ['Text'],
104
-		    'department' => ['Organization'],
105
-		    'description' => ['Text'],
106
-		    'disambiguatingDescription' => ['Text'],
107
-		    'dissolutionDate' => ['Date'],
108
-		    'diversityPolicy' => ['URL', 'CreativeWork'],
109
-		    'diversityStaffingReport' => ['Article', 'URL'],
110
-		    'duns' => ['Text'],
111
-		    'email' => ['Text'],
112
-		    'employee' => ['Person'],
113
-		    'employees' => ['Person'],
114
-		    'ethicsPolicy' => ['CreativeWork', 'URL'],
115
-		    'event' => ['Event'],
116
-		    'events' => ['Event'],
117
-		    'faxNumber' => ['Text'],
118
-		    'founder' => ['Person'],
119
-		    'founders' => ['Person'],
120
-		    'foundingDate' => ['Date'],
121
-		    'foundingLocation' => ['Place'],
122
-		    'funder' => ['Organization', 'Person'],
123
-		    'funding' => ['Grant'],
124
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
125
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
126
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
127
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
128
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
129
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
130
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
131
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
132
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
133
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
134
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
135
-		    'globalLocationNumber' => ['Text'],
136
-		    'hasCredential' => ['EducationalOccupationalCredential'],
137
-		    'hasDriveThroughService' => ['Boolean'],
138
-		    'hasMap' => ['URL', 'Map'],
139
-		    'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
140
-		    'hasOfferCatalog' => ['OfferCatalog'],
141
-		    'hasPOS' => ['Place'],
142
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
143
-		    'image' => ['URL', 'ImageObject'],
144
-		    'interactionStatistic' => ['InteractionCounter'],
145
-		    'isAccessibleForFree' => ['Boolean'],
146
-		    'isicV4' => ['Text'],
147
-		    'iso6523Code' => ['Text'],
148
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
149
-		    'knowsAbout' => ['Thing', 'Text', 'URL'],
150
-		    'knowsLanguage' => ['Text', 'Language'],
151
-		    'latitude' => ['Number', 'Text'],
152
-		    'legalName' => ['Text'],
153
-		    'leiCode' => ['Text'],
154
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
155
-		    'logo' => ['ImageObject', 'URL'],
156
-		    'longitude' => ['Text', 'Number'],
157
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
158
-		    'makesOffer' => ['Offer'],
159
-		    'map' => ['URL'],
160
-		    'maps' => ['URL'],
161
-		    'maximumAttendeeCapacity' => ['Integer'],
162
-		    'member' => ['Organization', 'Person'],
163
-		    'memberOf' => ['Organization', 'ProgramMembership'],
164
-		    'members' => ['Organization', 'Person'],
165
-		    'naics' => ['Text'],
166
-		    'name' => ['Text'],
167
-		    'nonprofitStatus' => ['NonprofitType'],
168
-		    'numberOfEmployees' => ['QuantitativeValue'],
169
-		    'openingHours' => ['Text'],
170
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
171
-		    'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
172
-		    'owns' => ['Product', 'OwnershipInfo'],
173
-		    'parentOrganization' => ['Organization'],
174
-		    'paymentAccepted' => ['Text'],
175
-		    'photo' => ['Photograph', 'ImageObject'],
176
-		    'photos' => ['ImageObject', 'Photograph'],
177
-		    'potentialAction' => ['Action'],
178
-		    'priceRange' => ['Text'],
179
-		    'publicAccess' => ['Boolean'],
180
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
181
-		    'review' => ['Review'],
182
-		    'reviews' => ['Review'],
183
-		    'sameAs' => ['URL'],
184
-		    'seeks' => ['Demand'],
185
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
186
-		    'slogan' => ['Text'],
187
-		    'smokingAllowed' => ['Boolean'],
188
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
189
-		    'sponsor' => ['Organization', 'Person'],
190
-		    'subOrganization' => ['Organization'],
191
-		    'subjectOf' => ['Event', 'CreativeWork'],
192
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
193
-		    'taxID' => ['Text'],
194
-		    'telephone' => ['Text'],
195
-		    'tourBookingPage' => ['URL'],
196
-		    'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
197
-		    'url' => ['URL'],
198
-		    'vatID' => ['Text']
199
-		];
200
-	}
77
+    /**
78
+     * @inheritdoc
79
+     */
80
+    public function getSchemaPropertyExpectedTypes(): array
81
+    {
82
+        return [
83
+            'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
84
+            'additionalProperty' => ['PropertyValue'],
85
+            'additionalType' => ['URL'],
86
+            'address' => ['Text', 'PostalAddress'],
87
+            'aggregateRating' => ['AggregateRating'],
88
+            'alternateName' => ['Text'],
89
+            'alumni' => ['Person'],
90
+            'amenityFeature' => ['LocationFeatureSpecification'],
91
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
92
+            'award' => ['Text'],
93
+            'awards' => ['Text'],
94
+            'branchCode' => ['Text'],
95
+            'branchOf' => ['Organization'],
96
+            'brand' => ['Brand', 'Organization'],
97
+            'contactPoint' => ['ContactPoint'],
98
+            'contactPoints' => ['ContactPoint'],
99
+            'containedIn' => ['Place'],
100
+            'containedInPlace' => ['Place'],
101
+            'containsPlace' => ['Place'],
102
+            'correctionsPolicy' => ['URL', 'CreativeWork'],
103
+            'currenciesAccepted' => ['Text'],
104
+            'department' => ['Organization'],
105
+            'description' => ['Text'],
106
+            'disambiguatingDescription' => ['Text'],
107
+            'dissolutionDate' => ['Date'],
108
+            'diversityPolicy' => ['URL', 'CreativeWork'],
109
+            'diversityStaffingReport' => ['Article', 'URL'],
110
+            'duns' => ['Text'],
111
+            'email' => ['Text'],
112
+            'employee' => ['Person'],
113
+            'employees' => ['Person'],
114
+            'ethicsPolicy' => ['CreativeWork', 'URL'],
115
+            'event' => ['Event'],
116
+            'events' => ['Event'],
117
+            'faxNumber' => ['Text'],
118
+            'founder' => ['Person'],
119
+            'founders' => ['Person'],
120
+            'foundingDate' => ['Date'],
121
+            'foundingLocation' => ['Place'],
122
+            'funder' => ['Organization', 'Person'],
123
+            'funding' => ['Grant'],
124
+            'geo' => ['GeoCoordinates', 'GeoShape'],
125
+            'geoContains' => ['Place', 'GeospatialGeometry'],
126
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
127
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
128
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
129
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
130
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
131
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
132
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
133
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
134
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
135
+            'globalLocationNumber' => ['Text'],
136
+            'hasCredential' => ['EducationalOccupationalCredential'],
137
+            'hasDriveThroughService' => ['Boolean'],
138
+            'hasMap' => ['URL', 'Map'],
139
+            'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
140
+            'hasOfferCatalog' => ['OfferCatalog'],
141
+            'hasPOS' => ['Place'],
142
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
143
+            'image' => ['URL', 'ImageObject'],
144
+            'interactionStatistic' => ['InteractionCounter'],
145
+            'isAccessibleForFree' => ['Boolean'],
146
+            'isicV4' => ['Text'],
147
+            'iso6523Code' => ['Text'],
148
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
149
+            'knowsAbout' => ['Thing', 'Text', 'URL'],
150
+            'knowsLanguage' => ['Text', 'Language'],
151
+            'latitude' => ['Number', 'Text'],
152
+            'legalName' => ['Text'],
153
+            'leiCode' => ['Text'],
154
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
155
+            'logo' => ['ImageObject', 'URL'],
156
+            'longitude' => ['Text', 'Number'],
157
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
158
+            'makesOffer' => ['Offer'],
159
+            'map' => ['URL'],
160
+            'maps' => ['URL'],
161
+            'maximumAttendeeCapacity' => ['Integer'],
162
+            'member' => ['Organization', 'Person'],
163
+            'memberOf' => ['Organization', 'ProgramMembership'],
164
+            'members' => ['Organization', 'Person'],
165
+            'naics' => ['Text'],
166
+            'name' => ['Text'],
167
+            'nonprofitStatus' => ['NonprofitType'],
168
+            'numberOfEmployees' => ['QuantitativeValue'],
169
+            'openingHours' => ['Text'],
170
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
171
+            'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
172
+            'owns' => ['Product', 'OwnershipInfo'],
173
+            'parentOrganization' => ['Organization'],
174
+            'paymentAccepted' => ['Text'],
175
+            'photo' => ['Photograph', 'ImageObject'],
176
+            'photos' => ['ImageObject', 'Photograph'],
177
+            'potentialAction' => ['Action'],
178
+            'priceRange' => ['Text'],
179
+            'publicAccess' => ['Boolean'],
180
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
181
+            'review' => ['Review'],
182
+            'reviews' => ['Review'],
183
+            'sameAs' => ['URL'],
184
+            'seeks' => ['Demand'],
185
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
186
+            'slogan' => ['Text'],
187
+            'smokingAllowed' => ['Boolean'],
188
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
189
+            'sponsor' => ['Organization', 'Person'],
190
+            'subOrganization' => ['Organization'],
191
+            'subjectOf' => ['Event', 'CreativeWork'],
192
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
193
+            'taxID' => ['Text'],
194
+            'telephone' => ['Text'],
195
+            'tourBookingPage' => ['URL'],
196
+            'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
197
+            'url' => ['URL'],
198
+            'vatID' => ['Text']
199
+        ];
200
+    }
201 201
 
202 202
 
203
-	/**
204
-	 * @inheritdoc
205
-	 */
206
-	public function getSchemaPropertyDescriptions(): array
207
-	{
208
-		return [
209
-		    '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.',
210
-		    '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. ',
211
-		    '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.',
212
-		    'address' => 'Physical address of the item.',
213
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
214
-		    'alternateName' => 'An alias for the item.',
215
-		    'alumni' => 'Alumni of an organization.',
216
-		    '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.',
217
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
218
-		    'award' => 'An award won by or for this item.',
219
-		    'awards' => 'Awards won by or for this item.',
220
-		    '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.       ',
221
-		    'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
222
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
223
-		    'contactPoint' => 'A contact point for a person or organization.',
224
-		    'contactPoints' => 'A contact point for a person or organization.',
225
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
226
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
227
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
228
-		    'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
229
-		    '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".',
230
-		    '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.',
231
-		    'description' => 'A description of the item.',
232
-		    '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.',
233
-		    'dissolutionDate' => 'The date that this organization was dissolved.',
234
-		    '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.',
235
-		    '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.',
236
-		    'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
237
-		    'email' => 'Email address.',
238
-		    'employee' => 'Someone working for this organization.',
239
-		    'employees' => 'People working for this organization.',
240
-		    '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.',
241
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
242
-		    'events' => 'Upcoming or past events associated with this place or organization.',
243
-		    'faxNumber' => 'The fax number.',
244
-		    'founder' => 'A person who founded this organization.',
245
-		    'founders' => 'A person who founded this organization.',
246
-		    'foundingDate' => 'The date that this organization was founded.',
247
-		    'foundingLocation' => 'The place where the Organization was founded.',
248
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
249
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
250
-		    'geo' => 'The geo coordinates of the place.',
251
-		    '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).',
252
-		    '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).',
253
-		    '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).',
254
-		    '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).',
255
-		    '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).)',
256
-		    '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).',
257
-		    '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).',
258
-		    '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).',
259
-		    '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).)',
260
-		    '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).',
261
-		    '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.',
262
-		    'hasCredential' => 'A credential awarded to the Person or Organization.',
263
-		    '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.',
264
-		    'hasMap' => 'A URL to a map of the place.',
265
-		    'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
266
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
267
-		    'hasPOS' => 'Points-of-Sales operated by the organization or person.',
268
-		    '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.         ',
269
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
270
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
271
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
272
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
273
-		    '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. ',
274
-		    '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.',
275
-		    '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.',
276
-		    '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).',
277
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
278
-		    'legalName' => 'The official name of the organization, e.g. the registered company name.',
279
-		    'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
280
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
281
-		    'logo' => 'An associated logo.',
282
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
283
-		    '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.',
284
-		    'makesOffer' => 'A pointer to products or services offered by the organization or person.',
285
-		    'map' => 'A URL to a map of the place.',
286
-		    'maps' => 'A URL to a map of the place.',
287
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
288
-		    'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
289
-		    'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
290
-		    'members' => 'A member of this organization.',
291
-		    'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
292
-		    'name' => 'The name of the item.',
293
-		    'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
294
-		    'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
295
-		    '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>.',
296
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
297
-		    '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.',
298
-		    'owns' => 'Products owned by the organization or person.',
299
-		    'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
300
-		    'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
301
-		    'photo' => 'A photograph of this place.',
302
-		    'photos' => 'Photographs of this place.',
303
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
304
-		    'priceRange' => 'The price range of the business, for example ```$$$```.',
305
-		    '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',
306
-		    '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. ',
307
-		    'review' => 'A review of the item.',
308
-		    'reviews' => 'Review of the item.',
309
-		    '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.',
310
-		    'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
311
-		    'serviceArea' => 'The geographic area where the service is provided.',
312
-		    'slogan' => 'A slogan or motto associated with the item.',
313
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
314
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
315
-		    '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.',
316
-		    'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
317
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
318
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
319
-		    'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
320
-		    'telephone' => 'The telephone number.',
321
-		    '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.',
322
-		    'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
323
-		    'url' => 'URL of the item.',
324
-		    'vatID' => 'The Value-added Tax ID of the organization or person.'
325
-		];
326
-	}
203
+    /**
204
+     * @inheritdoc
205
+     */
206
+    public function getSchemaPropertyDescriptions(): array
207
+    {
208
+        return [
209
+            '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.',
210
+            '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. ',
211
+            '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.',
212
+            'address' => 'Physical address of the item.',
213
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
214
+            'alternateName' => 'An alias for the item.',
215
+            'alumni' => 'Alumni of an organization.',
216
+            '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.',
217
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
218
+            'award' => 'An award won by or for this item.',
219
+            'awards' => 'Awards won by or for this item.',
220
+            '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.       ',
221
+            'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
222
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
223
+            'contactPoint' => 'A contact point for a person or organization.',
224
+            'contactPoints' => 'A contact point for a person or organization.',
225
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
226
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
227
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
228
+            'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
229
+            '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".',
230
+            '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.',
231
+            'description' => 'A description of the item.',
232
+            '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.',
233
+            'dissolutionDate' => 'The date that this organization was dissolved.',
234
+            '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.',
235
+            '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.',
236
+            'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
237
+            'email' => 'Email address.',
238
+            'employee' => 'Someone working for this organization.',
239
+            'employees' => 'People working for this organization.',
240
+            '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.',
241
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
242
+            'events' => 'Upcoming or past events associated with this place or organization.',
243
+            'faxNumber' => 'The fax number.',
244
+            'founder' => 'A person who founded this organization.',
245
+            'founders' => 'A person who founded this organization.',
246
+            'foundingDate' => 'The date that this organization was founded.',
247
+            'foundingLocation' => 'The place where the Organization was founded.',
248
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
249
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
250
+            'geo' => 'The geo coordinates of the place.',
251
+            '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).',
252
+            '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).',
253
+            '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).',
254
+            '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).',
255
+            '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).)',
256
+            '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).',
257
+            '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).',
258
+            '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).',
259
+            '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).)',
260
+            '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).',
261
+            '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.',
262
+            'hasCredential' => 'A credential awarded to the Person or Organization.',
263
+            '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.',
264
+            'hasMap' => 'A URL to a map of the place.',
265
+            'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
266
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
267
+            'hasPOS' => 'Points-of-Sales operated by the organization or person.',
268
+            '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.         ',
269
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
270
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
271
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
272
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
273
+            '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. ',
274
+            '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.',
275
+            '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.',
276
+            '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).',
277
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
278
+            'legalName' => 'The official name of the organization, e.g. the registered company name.',
279
+            'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
280
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
281
+            'logo' => 'An associated logo.',
282
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
283
+            '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.',
284
+            'makesOffer' => 'A pointer to products or services offered by the organization or person.',
285
+            'map' => 'A URL to a map of the place.',
286
+            'maps' => 'A URL to a map of the place.',
287
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
288
+            'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
289
+            'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
290
+            'members' => 'A member of this organization.',
291
+            'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
292
+            'name' => 'The name of the item.',
293
+            'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
294
+            'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
295
+            '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>.',
296
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
297
+            '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.',
298
+            'owns' => 'Products owned by the organization or person.',
299
+            'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
300
+            'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
301
+            'photo' => 'A photograph of this place.',
302
+            'photos' => 'Photographs of this place.',
303
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
304
+            'priceRange' => 'The price range of the business, for example ```$$$```.',
305
+            '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',
306
+            '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. ',
307
+            'review' => 'A review of the item.',
308
+            'reviews' => 'Review of the item.',
309
+            '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.',
310
+            'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
311
+            'serviceArea' => 'The geographic area where the service is provided.',
312
+            'slogan' => 'A slogan or motto associated with the item.',
313
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
314
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
315
+            '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.',
316
+            'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
317
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
318
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
319
+            'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
320
+            'telephone' => 'The telephone number.',
321
+            '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.',
322
+            'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
323
+            'url' => 'URL of the item.',
324
+            'vatID' => 'The Value-added Tax ID of the organization or person.'
325
+        ];
326
+    }
327 327
 
328 328
 
329
-	/**
330
-	 * @inheritdoc
331
-	 */
332
-	public function getGoogleRequiredSchema(): array
333
-	{
334
-		return ['description', 'name'];
335
-	}
329
+    /**
330
+     * @inheritdoc
331
+     */
332
+    public function getGoogleRequiredSchema(): array
333
+    {
334
+        return ['description', 'name'];
335
+    }
336 336
 
337 337
 
338
-	/**
339
-	 * @inheritdoc
340
-	 */
341
-	public function getGoogleRecommendedSchema(): array
342
-	{
343
-		return ['image', 'url'];
344
-	}
338
+    /**
339
+     * @inheritdoc
340
+     */
341
+    public function getGoogleRecommendedSchema(): array
342
+    {
343
+        return ['image', 'url'];
344
+    }
345 345
 
346 346
 
347
-	/**
348
-	 * @inheritdoc
349
-	 */
350
-	public function defineRules(): array
351
-	{
352
-		$rules = parent::defineRules();
353
-		    $rules = array_merge($rules, [
354
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
355
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
356
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
357
-		    ]);
347
+    /**
348
+     * @inheritdoc
349
+     */
350
+    public function defineRules(): array
351
+    {
352
+        $rules = parent::defineRules();
353
+            $rules = array_merge($rules, [
354
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
355
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
356
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
357
+            ]);
358 358
 
359
-		    return $rules;
360
-	}
359
+            return $rules;
360
+    }
361 361
 }
Please login to merge, or discard this patch.
src/models/jsonld/DownloadAction.php 1 patch
Indentation   +147 added lines, -147 removed lines patch added patch discarded remove patch
@@ -23,151 +23,151 @@
 block discarded – undo
23 23
  */
24 24
 class DownloadAction extends MetaJsonLd implements DownloadActionInterface, TransferActionInterface, ActionInterface, ThingInterface
25 25
 {
26
-	use DownloadActionTrait;
27
-	use TransferActionTrait;
28
-	use ActionTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'DownloadAction';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/DownloadAction';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'TransferAction';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'The act of downloading an object.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'actionStatus' => ['ActionStatusType'],
76
-		    'additionalType' => ['URL'],
77
-		    'agent' => ['Organization', 'Person'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'endTime' => ['DateTime', 'Time'],
82
-		    'error' => ['Thing'],
83
-		    'fromLocation' => ['Place'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'instrument' => ['Thing'],
87
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
-		    'name' => ['Text'],
90
-		    'object' => ['Thing'],
91
-		    'participant' => ['Organization', 'Person'],
92
-		    'potentialAction' => ['Action'],
93
-		    'provider' => ['Organization', 'Person'],
94
-		    'result' => ['Thing'],
95
-		    'sameAs' => ['URL'],
96
-		    'startTime' => ['Time', 'DateTime'],
97
-		    'subjectOf' => ['Event', 'CreativeWork'],
98
-		    'target' => ['URL', 'EntryPoint'],
99
-		    'toLocation' => ['Place'],
100
-		    'url' => ['URL']
101
-		];
102
-	}
103
-
104
-
105
-	/**
106
-	 * @inheritdoc
107
-	 */
108
-	public function getSchemaPropertyDescriptions(): array
109
-	{
110
-		return [
111
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
112
-		    '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.',
113
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
114
-		    'alternateName' => 'An alias for the item.',
115
-		    'description' => 'A description of the item.',
116
-		    '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.',
117
-		    '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.',
118
-		    'error' => 'For failed actions, more information on the cause of the failure.',
119
-		    'fromLocation' => 'A sub property of location. The original location of the object or the agent before the action.',
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
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
123
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
124
-		    '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.',
125
-		    'name' => 'The name of the item.',
126
-		    '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*.',
127
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
128
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
-		    '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.',
130
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
131
-		    '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.',
132
-		    '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.',
133
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
134
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
135
-		    'toLocation' => 'A sub property of location. The final location of the object or the agent after the action.',
136
-		    'url' => 'URL of the item.'
137
-		];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRequiredSchema(): array
145
-	{
146
-		return ['description', 'name'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function getGoogleRecommendedSchema(): array
154
-	{
155
-		return ['image', 'url'];
156
-	}
157
-
158
-
159
-	/**
160
-	 * @inheritdoc
161
-	 */
162
-	public function defineRules(): array
163
-	{
164
-		$rules = parent::defineRules();
165
-		    $rules = array_merge($rules, [
166
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
-		    ]);
170
-
171
-		    return $rules;
172
-	}
26
+    use DownloadActionTrait;
27
+    use TransferActionTrait;
28
+    use ActionTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'DownloadAction';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/DownloadAction';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'TransferAction';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'The act of downloading an object.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'actionStatus' => ['ActionStatusType'],
76
+            'additionalType' => ['URL'],
77
+            'agent' => ['Organization', 'Person'],
78
+            'alternateName' => ['Text'],
79
+            'description' => ['Text'],
80
+            'disambiguatingDescription' => ['Text'],
81
+            'endTime' => ['DateTime', 'Time'],
82
+            'error' => ['Thing'],
83
+            'fromLocation' => ['Place'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'instrument' => ['Thing'],
87
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
+            'name' => ['Text'],
90
+            'object' => ['Thing'],
91
+            'participant' => ['Organization', 'Person'],
92
+            'potentialAction' => ['Action'],
93
+            'provider' => ['Organization', 'Person'],
94
+            'result' => ['Thing'],
95
+            'sameAs' => ['URL'],
96
+            'startTime' => ['Time', 'DateTime'],
97
+            'subjectOf' => ['Event', 'CreativeWork'],
98
+            'target' => ['URL', 'EntryPoint'],
99
+            'toLocation' => ['Place'],
100
+            'url' => ['URL']
101
+        ];
102
+    }
103
+
104
+
105
+    /**
106
+     * @inheritdoc
107
+     */
108
+    public function getSchemaPropertyDescriptions(): array
109
+    {
110
+        return [
111
+            'actionStatus' => 'Indicates the current disposition of the Action.',
112
+            '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.',
113
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
114
+            'alternateName' => 'An alias for the item.',
115
+            'description' => 'A description of the item.',
116
+            '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.',
117
+            '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.',
118
+            'error' => 'For failed actions, more information on the cause of the failure.',
119
+            'fromLocation' => 'A sub property of location. The original location of the object or the agent before the action.',
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
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
123
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
124
+            '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.',
125
+            'name' => 'The name of the item.',
126
+            '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*.',
127
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
128
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
+            '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.',
130
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
131
+            '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.',
132
+            '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.',
133
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
134
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
135
+            'toLocation' => 'A sub property of location. The final location of the object or the agent after the action.',
136
+            'url' => 'URL of the item.'
137
+        ];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRequiredSchema(): array
145
+    {
146
+        return ['description', 'name'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function getGoogleRecommendedSchema(): array
154
+    {
155
+        return ['image', 'url'];
156
+    }
157
+
158
+
159
+    /**
160
+     * @inheritdoc
161
+     */
162
+    public function defineRules(): array
163
+    {
164
+        $rules = parent::defineRules();
165
+            $rules = array_merge($rules, [
166
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
+            ]);
170
+
171
+            return $rules;
172
+    }
173 173
 }
Please login to merge, or discard this patch.
src/models/jsonld/WearableSizeSystemUK.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 WearableSizeSystemUK extends MetaJsonLd implements WearableSizeSystemUKInterface, WearableSizeSystemEnumerationInterface, SizeSystemEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use WearableSizeSystemUKTrait;
27
-	use WearableSizeSystemEnumerationTrait;
28
-	use SizeSystemEnumerationTrait;
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 = 'WearableSizeSystemUK';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/WearableSizeSystemUK';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'WearableSizeSystemEnumeration';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'United Kingdom size system for wearables.';
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 WearableSizeSystemUKTrait;
27
+    use WearableSizeSystemEnumerationTrait;
28
+    use SizeSystemEnumerationTrait;
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 = 'WearableSizeSystemUK';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/WearableSizeSystemUK';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'WearableSizeSystemEnumeration';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'United Kingdom size system for wearables.';
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/EnrollingByInvitation.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 EnrollingByInvitation extends MetaJsonLd implements EnrollingByInvitationInterface, MedicalStudyStatusInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use EnrollingByInvitationTrait;
27
-	use MedicalStudyStatusTrait;
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 = 'EnrollingByInvitation';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/EnrollingByInvitation';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'MedicalStudyStatus';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'Enrolling participants by invitation only.';
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 EnrollingByInvitationTrait;
27
+    use MedicalStudyStatusTrait;
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 = 'EnrollingByInvitation';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/EnrollingByInvitation';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'MedicalStudyStatus';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'Enrolling participants by invitation only.';
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/GovernmentService.php 1 patch
Indentation   +171 added lines, -171 removed lines patch added patch discarded remove patch
@@ -24,175 +24,175 @@
 block discarded – undo
24 24
  */
25 25
 class GovernmentService extends MetaJsonLd implements GovernmentServiceInterface, ServiceInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use GovernmentServiceTrait;
28
-	use ServiceTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'GovernmentService';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/GovernmentService';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'Service';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A service provided by a government organization, e.g. food stamps, veterans benefits, etc.';
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
-		    'aggregateRating' => ['AggregateRating'],
78
-		    'alternateName' => ['Text'],
79
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
80
-		    'audience' => ['Audience'],
81
-		    'availableChannel' => ['ServiceChannel'],
82
-		    'award' => ['Text'],
83
-		    'brand' => ['Brand', 'Organization'],
84
-		    'broker' => ['Person', 'Organization'],
85
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'hasOfferCatalog' => ['OfferCatalog'],
89
-		    'hoursAvailable' => ['OpeningHoursSpecification'],
90
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
91
-		    'image' => ['URL', 'ImageObject'],
92
-		    'isRelatedTo' => ['Product', 'Service'],
93
-		    'isSimilarTo' => ['Product', 'Service'],
94
-		    'jurisdiction' => ['AdministrativeArea', 'Text'],
95
-		    'logo' => ['ImageObject', 'URL'],
96
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
97
-		    'name' => ['Text'],
98
-		    'offers' => ['Demand', 'Offer'],
99
-		    'potentialAction' => ['Action'],
100
-		    'produces' => ['Thing'],
101
-		    'provider' => ['Organization', 'Person'],
102
-		    'providerMobility' => ['Text'],
103
-		    'review' => ['Review'],
104
-		    'sameAs' => ['URL'],
105
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
106
-		    'serviceAudience' => ['Audience'],
107
-		    'serviceOperator' => ['Organization'],
108
-		    'serviceOutput' => ['Thing'],
109
-		    'serviceType' => ['Text', 'GovernmentBenefitsType'],
110
-		    'slogan' => ['Text'],
111
-		    'subjectOf' => ['Event', 'CreativeWork'],
112
-		    'termsOfService' => ['URL', 'Text'],
113
-		    'url' => ['URL']
114
-		];
115
-	}
116
-
117
-
118
-	/**
119
-	 * @inheritdoc
120
-	 */
121
-	public function getSchemaPropertyDescriptions(): array
122
-	{
123
-		return [
124
-		    '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.',
125
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
126
-		    'alternateName' => 'An alias for the item.',
127
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
128
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
129
-		    'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
130
-		    'award' => 'An award won by or for this item.',
131
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
132
-		    '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.',
133
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
134
-		    'description' => 'A description of the item.',
135
-		    '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.',
136
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
137
-		    'hoursAvailable' => 'The hours during which this service or contact is available.',
138
-		    '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.         ',
139
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
140
-		    'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
141
-		    'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
142
-		    'jurisdiction' => 'Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.',
143
-		    'logo' => 'An associated logo.',
144
-		    '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.',
145
-		    'name' => 'The name of the item.',
146
-		    '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.       ',
147
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
148
-		    'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
149
-		    '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.',
150
-		    'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
151
-		    'review' => 'A review of the item.',
152
-		    '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.',
153
-		    'serviceArea' => 'The geographic area where the service is provided.',
154
-		    'serviceAudience' => 'The audience eligible for this service.',
155
-		    'serviceOperator' => 'The operating organization, if different from the provider.  This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor.',
156
-		    'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
157
-		    'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
158
-		    'slogan' => 'A slogan or motto associated with the item.',
159
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
160
-		    'termsOfService' => 'Human-readable terms of service documentation.',
161
-		    'url' => 'URL of the item.'
162
-		];
163
-	}
164
-
165
-
166
-	/**
167
-	 * @inheritdoc
168
-	 */
169
-	public function getGoogleRequiredSchema(): array
170
-	{
171
-		return ['description', 'name'];
172
-	}
173
-
174
-
175
-	/**
176
-	 * @inheritdoc
177
-	 */
178
-	public function getGoogleRecommendedSchema(): array
179
-	{
180
-		return ['image', 'url'];
181
-	}
182
-
183
-
184
-	/**
185
-	 * @inheritdoc
186
-	 */
187
-	public function defineRules(): array
188
-	{
189
-		$rules = parent::defineRules();
190
-		    $rules = array_merge($rules, [
191
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
192
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
193
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
194
-		    ]);
195
-
196
-		    return $rules;
197
-	}
27
+    use GovernmentServiceTrait;
28
+    use ServiceTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'GovernmentService';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/GovernmentService';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'Service';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A service provided by a government organization, e.g. food stamps, veterans benefits, etc.';
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
+            'aggregateRating' => ['AggregateRating'],
78
+            'alternateName' => ['Text'],
79
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
80
+            'audience' => ['Audience'],
81
+            'availableChannel' => ['ServiceChannel'],
82
+            'award' => ['Text'],
83
+            'brand' => ['Brand', 'Organization'],
84
+            'broker' => ['Person', 'Organization'],
85
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'hasOfferCatalog' => ['OfferCatalog'],
89
+            'hoursAvailable' => ['OpeningHoursSpecification'],
90
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
91
+            'image' => ['URL', 'ImageObject'],
92
+            'isRelatedTo' => ['Product', 'Service'],
93
+            'isSimilarTo' => ['Product', 'Service'],
94
+            'jurisdiction' => ['AdministrativeArea', 'Text'],
95
+            'logo' => ['ImageObject', 'URL'],
96
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
97
+            'name' => ['Text'],
98
+            'offers' => ['Demand', 'Offer'],
99
+            'potentialAction' => ['Action'],
100
+            'produces' => ['Thing'],
101
+            'provider' => ['Organization', 'Person'],
102
+            'providerMobility' => ['Text'],
103
+            'review' => ['Review'],
104
+            'sameAs' => ['URL'],
105
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
106
+            'serviceAudience' => ['Audience'],
107
+            'serviceOperator' => ['Organization'],
108
+            'serviceOutput' => ['Thing'],
109
+            'serviceType' => ['Text', 'GovernmentBenefitsType'],
110
+            'slogan' => ['Text'],
111
+            'subjectOf' => ['Event', 'CreativeWork'],
112
+            'termsOfService' => ['URL', 'Text'],
113
+            'url' => ['URL']
114
+        ];
115
+    }
116
+
117
+
118
+    /**
119
+     * @inheritdoc
120
+     */
121
+    public function getSchemaPropertyDescriptions(): array
122
+    {
123
+        return [
124
+            '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.',
125
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
126
+            'alternateName' => 'An alias for the item.',
127
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
128
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
129
+            'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
130
+            'award' => 'An award won by or for this item.',
131
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
132
+            '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.',
133
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
134
+            'description' => 'A description of the item.',
135
+            '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.',
136
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
137
+            'hoursAvailable' => 'The hours during which this service or contact is available.',
138
+            '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.         ',
139
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
140
+            'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
141
+            'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
142
+            'jurisdiction' => 'Indicates a legal jurisdiction, e.g. of some legislation, or where some government service is based.',
143
+            'logo' => 'An associated logo.',
144
+            '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.',
145
+            'name' => 'The name of the item.',
146
+            '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.       ',
147
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
148
+            'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
149
+            '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.',
150
+            'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
151
+            'review' => 'A review of the item.',
152
+            '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.',
153
+            'serviceArea' => 'The geographic area where the service is provided.',
154
+            'serviceAudience' => 'The audience eligible for this service.',
155
+            'serviceOperator' => 'The operating organization, if different from the provider.  This enables the representation of services that are provided by an organization, but operated by another organization like a subcontractor.',
156
+            'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
157
+            'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
158
+            'slogan' => 'A slogan or motto associated with the item.',
159
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
160
+            'termsOfService' => 'Human-readable terms of service documentation.',
161
+            'url' => 'URL of the item.'
162
+        ];
163
+    }
164
+
165
+
166
+    /**
167
+     * @inheritdoc
168
+     */
169
+    public function getGoogleRequiredSchema(): array
170
+    {
171
+        return ['description', 'name'];
172
+    }
173
+
174
+
175
+    /**
176
+     * @inheritdoc
177
+     */
178
+    public function getGoogleRecommendedSchema(): array
179
+    {
180
+        return ['image', 'url'];
181
+    }
182
+
183
+
184
+    /**
185
+     * @inheritdoc
186
+     */
187
+    public function defineRules(): array
188
+    {
189
+        $rules = parent::defineRules();
190
+            $rules = array_merge($rules, [
191
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
192
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
193
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
194
+            ]);
195
+
196
+            return $rules;
197
+    }
198 198
 }
Please login to merge, or discard this patch.
src/models/jsonld/LowSaltDiet.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 LowSaltDiet extends MetaJsonLd implements LowSaltDietInterface, RestrictedDietInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use LowSaltDietTrait;
27
-	use RestrictedDietTrait;
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 = 'LowSaltDiet';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/LowSaltDiet';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'RestrictedDiet';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A diet focused on reduced sodium intake.';
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 LowSaltDietTrait;
27
+    use RestrictedDietTrait;
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 = 'LowSaltDiet';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/LowSaltDiet';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'RestrictedDiet';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A diet focused on reduced sodium intake.';
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.