Passed
Push — develop ( e888e4...569633 )
by Andrew
19:20 queued 10:31
created
src/models/jsonld/TripleBlindedTrial.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -25,127 +25,127 @@
 block discarded – undo
25 25
  */
26 26
 class TripleBlindedTrial extends MetaJsonLd implements TripleBlindedTrialInterface, MedicalTrialDesignInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
27 27
 {
28
-	use TripleBlindedTrialTrait;
29
-	use MedicalTrialDesignTrait;
30
-	use MedicalEnumerationTrait;
31
-	use EnumerationTrait;
32
-	use IntangibleTrait;
33
-	use ThingTrait;
34
-
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static $schemaTypeName = 'TripleBlindedTrial';
41
-
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/TripleBlindedTrial';
48
-
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeExtends = 'MedicalTrialDesign';
55
-
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeDescription = 'A trial design in which neither the researcher, the person administering the therapy nor the patient knows the details of the treatment the patient was randomly assigned to.';
62
-
63
-
64
-	/**
65
-	 * @inheritdoc
66
-	 */
67
-	public function getSchemaPropertyNames(): array
68
-	{
69
-		return array_keys($this->getSchemaPropertyExpectedTypes());
70
-	}
71
-
72
-
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyExpectedTypes(): array
77
-	{
78
-		return [
79
-		    'additionalType' => ['URL'],
80
-		    'alternateName' => ['Text'],
81
-		    'description' => ['Text'],
82
-		    'disambiguatingDescription' => ['Text'],
83
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
84
-		    'image' => ['URL', 'ImageObject'],
85
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
86
-		    'name' => ['Text'],
87
-		    'potentialAction' => ['Action'],
88
-		    'sameAs' => ['URL'],
89
-		    'subjectOf' => ['Event', 'CreativeWork'],
90
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
91
-		    'url' => ['URL']
92
-		];
93
-	}
94
-
95
-
96
-	/**
97
-	 * @inheritdoc
98
-	 */
99
-	public function getSchemaPropertyDescriptions(): array
100
-	{
101
-		return [
102
-		    '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.',
103
-		    'alternateName' => 'An alias for the item.',
104
-		    'description' => 'A description of the item.',
105
-		    '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.',
106
-		    '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.         ',
107
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
108
-		    '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.',
109
-		    'name' => 'The name of the item.',
110
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
111
-		    '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.',
112
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
113
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
114
-		    'url' => 'URL of the item.'
115
-		];
116
-	}
117
-
118
-
119
-	/**
120
-	 * @inheritdoc
121
-	 */
122
-	public function getGoogleRequiredSchema(): array
123
-	{
124
-		return ['description', 'name'];
125
-	}
126
-
127
-
128
-	/**
129
-	 * @inheritdoc
130
-	 */
131
-	public function getGoogleRecommendedSchema(): array
132
-	{
133
-		return ['image', 'url'];
134
-	}
135
-
136
-
137
-	/**
138
-	 * @inheritdoc
139
-	 */
140
-	public function defineRules(): array
141
-	{
142
-		$rules = parent::defineRules();
143
-		    $rules = array_merge($rules, [
144
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
145
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
146
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
147
-		    ]);
148
-
149
-		    return $rules;
150
-	}
28
+    use TripleBlindedTrialTrait;
29
+    use MedicalTrialDesignTrait;
30
+    use MedicalEnumerationTrait;
31
+    use EnumerationTrait;
32
+    use IntangibleTrait;
33
+    use ThingTrait;
34
+
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static $schemaTypeName = 'TripleBlindedTrial';
41
+
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/TripleBlindedTrial';
48
+
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeExtends = 'MedicalTrialDesign';
55
+
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeDescription = 'A trial design in which neither the researcher, the person administering the therapy nor the patient knows the details of the treatment the patient was randomly assigned to.';
62
+
63
+
64
+    /**
65
+     * @inheritdoc
66
+     */
67
+    public function getSchemaPropertyNames(): array
68
+    {
69
+        return array_keys($this->getSchemaPropertyExpectedTypes());
70
+    }
71
+
72
+
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyExpectedTypes(): array
77
+    {
78
+        return [
79
+            'additionalType' => ['URL'],
80
+            'alternateName' => ['Text'],
81
+            'description' => ['Text'],
82
+            'disambiguatingDescription' => ['Text'],
83
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
84
+            'image' => ['URL', 'ImageObject'],
85
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
86
+            'name' => ['Text'],
87
+            'potentialAction' => ['Action'],
88
+            'sameAs' => ['URL'],
89
+            'subjectOf' => ['Event', 'CreativeWork'],
90
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
91
+            'url' => ['URL']
92
+        ];
93
+    }
94
+
95
+
96
+    /**
97
+     * @inheritdoc
98
+     */
99
+    public function getSchemaPropertyDescriptions(): array
100
+    {
101
+        return [
102
+            '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.',
103
+            'alternateName' => 'An alias for the item.',
104
+            'description' => 'A description of the item.',
105
+            '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.',
106
+            '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.         ',
107
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
108
+            '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.',
109
+            'name' => 'The name of the item.',
110
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
111
+            '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.',
112
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
113
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
114
+            'url' => 'URL of the item.'
115
+        ];
116
+    }
117
+
118
+
119
+    /**
120
+     * @inheritdoc
121
+     */
122
+    public function getGoogleRequiredSchema(): array
123
+    {
124
+        return ['description', 'name'];
125
+    }
126
+
127
+
128
+    /**
129
+     * @inheritdoc
130
+     */
131
+    public function getGoogleRecommendedSchema(): array
132
+    {
133
+        return ['image', 'url'];
134
+    }
135
+
136
+
137
+    /**
138
+     * @inheritdoc
139
+     */
140
+    public function defineRules(): array
141
+    {
142
+        $rules = parent::defineRules();
143
+            $rules = array_merge($rules, [
144
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
145
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
146
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
147
+            ]);
148
+
149
+            return $rules;
150
+    }
151 151
 }
Please login to merge, or discard this patch.
src/models/jsonld/SteeringPositionValue.php 1 patch
Indentation   +138 added lines, -138 removed lines patch added patch discarded remove patch
@@ -23,142 +23,142 @@
 block discarded – undo
23 23
  */
24 24
 class SteeringPositionValue extends MetaJsonLd implements SteeringPositionValueInterface, QualitativeValueInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use SteeringPositionValueTrait;
27
-	use QualitativeValueTrait;
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 = 'SteeringPositionValue';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/SteeringPositionValue';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'QualitativeValue';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A value indicating a steering position.';
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
-		    'additionalProperty' => ['PropertyValue'],
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'equal' => ['QualitativeValue'],
82
-		    'greater' => ['QualitativeValue'],
83
-		    'greaterOrEqual' => ['QualitativeValue'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'lesser' => ['QualitativeValue'],
87
-		    'lesserOrEqual' => ['QualitativeValue'],
88
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
-		    'name' => ['Text'],
90
-		    'nonEqual' => ['QualitativeValue'],
91
-		    'potentialAction' => ['Action'],
92
-		    'sameAs' => ['URL'],
93
-		    'subjectOf' => ['Event', 'CreativeWork'],
94
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
95
-		    'url' => ['URL'],
96
-		    'valueReference' => ['Enumeration', 'QualitativeValue', 'DefinedTerm', 'StructuredValue', 'PropertyValue', 'Text', 'MeasurementTypeEnumeration', 'QuantitativeValue']
97
-		];
98
-	}
99
-
100
-
101
-	/**
102
-	 * @inheritdoc
103
-	 */
104
-	public function getSchemaPropertyDescriptions(): array
105
-	{
106
-		return [
107
-		    '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. ',
108
-		    '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.',
109
-		    'alternateName' => 'An alias for the item.',
110
-		    'description' => 'A description of the item.',
111
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
112
-		    'equal' => 'This ordering relation for qualitative values indicates that the subject is equal to the object.',
113
-		    'greater' => 'This ordering relation for qualitative values indicates that the subject is greater than the object.',
114
-		    'greaterOrEqual' => 'This ordering relation for qualitative values indicates that the subject is greater than or equal to the object.',
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
-		    'lesser' => 'This ordering relation for qualitative values indicates that the subject is lesser than the object.',
118
-		    'lesserOrEqual' => 'This ordering relation for qualitative values indicates that the subject is lesser than or equal to the object.',
119
-		    '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.',
120
-		    'name' => 'The name of the item.',
121
-		    'nonEqual' => 'This ordering relation for qualitative values indicates that the subject is not equal to the object.',
122
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
123
-		    '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.',
124
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
125
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
126
-		    'url' => 'URL of the item.',
127
-		    'valueReference' => 'A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.'
128
-		];
129
-	}
130
-
131
-
132
-	/**
133
-	 * @inheritdoc
134
-	 */
135
-	public function getGoogleRequiredSchema(): array
136
-	{
137
-		return ['description', 'name'];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRecommendedSchema(): array
145
-	{
146
-		return ['image', 'url'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function defineRules(): array
154
-	{
155
-		$rules = parent::defineRules();
156
-		    $rules = array_merge($rules, [
157
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
158
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
159
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
160
-		    ]);
161
-
162
-		    return $rules;
163
-	}
26
+    use SteeringPositionValueTrait;
27
+    use QualitativeValueTrait;
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 = 'SteeringPositionValue';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/SteeringPositionValue';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'QualitativeValue';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A value indicating a steering position.';
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
+            'additionalProperty' => ['PropertyValue'],
77
+            'additionalType' => ['URL'],
78
+            'alternateName' => ['Text'],
79
+            'description' => ['Text'],
80
+            'disambiguatingDescription' => ['Text'],
81
+            'equal' => ['QualitativeValue'],
82
+            'greater' => ['QualitativeValue'],
83
+            'greaterOrEqual' => ['QualitativeValue'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'lesser' => ['QualitativeValue'],
87
+            'lesserOrEqual' => ['QualitativeValue'],
88
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
+            'name' => ['Text'],
90
+            'nonEqual' => ['QualitativeValue'],
91
+            'potentialAction' => ['Action'],
92
+            'sameAs' => ['URL'],
93
+            'subjectOf' => ['Event', 'CreativeWork'],
94
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
95
+            'url' => ['URL'],
96
+            'valueReference' => ['Enumeration', 'QualitativeValue', 'DefinedTerm', 'StructuredValue', 'PropertyValue', 'Text', 'MeasurementTypeEnumeration', 'QuantitativeValue']
97
+        ];
98
+    }
99
+
100
+
101
+    /**
102
+     * @inheritdoc
103
+     */
104
+    public function getSchemaPropertyDescriptions(): array
105
+    {
106
+        return [
107
+            '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. ',
108
+            '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.',
109
+            'alternateName' => 'An alias for the item.',
110
+            'description' => 'A description of the item.',
111
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
112
+            'equal' => 'This ordering relation for qualitative values indicates that the subject is equal to the object.',
113
+            'greater' => 'This ordering relation for qualitative values indicates that the subject is greater than the object.',
114
+            'greaterOrEqual' => 'This ordering relation for qualitative values indicates that the subject is greater than or equal to the object.',
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
+            'lesser' => 'This ordering relation for qualitative values indicates that the subject is lesser than the object.',
118
+            'lesserOrEqual' => 'This ordering relation for qualitative values indicates that the subject is lesser than or equal to the object.',
119
+            '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.',
120
+            'name' => 'The name of the item.',
121
+            'nonEqual' => 'This ordering relation for qualitative values indicates that the subject is not equal to the object.',
122
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
123
+            '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.',
124
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
125
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
126
+            'url' => 'URL of the item.',
127
+            'valueReference' => 'A secondary value that provides additional information on the original value, e.g. a reference temperature or a type of measurement.'
128
+        ];
129
+    }
130
+
131
+
132
+    /**
133
+     * @inheritdoc
134
+     */
135
+    public function getGoogleRequiredSchema(): array
136
+    {
137
+        return ['description', 'name'];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRecommendedSchema(): array
145
+    {
146
+        return ['image', 'url'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function defineRules(): array
154
+    {
155
+        $rules = parent::defineRules();
156
+            $rules = array_merge($rules, [
157
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
158
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
159
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
160
+            ]);
161
+
162
+            return $rules;
163
+    }
164 164
 }
Please login to merge, or discard this patch.
src/models/jsonld/WarrantyPromise.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -25,127 +25,127 @@
 block discarded – undo
25 25
  */
26 26
 class WarrantyPromise extends MetaJsonLd implements WarrantyPromiseInterface, StructuredValueInterface, IntangibleInterface, ThingInterface
27 27
 {
28
-	use WarrantyPromiseTrait;
29
-	use StructuredValueTrait;
30
-	use IntangibleTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'WarrantyPromise';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/WarrantyPromise';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'StructuredValue';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A structured value representing the duration and scope of services that will be provided to a customer free of charge in case of a defect or malfunction of 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
-		    'durationOfWarranty' => ['QuantitativeValue'],
82
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
83
-		    'image' => ['URL', 'ImageObject'],
84
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
85
-		    'name' => ['Text'],
86
-		    'potentialAction' => ['Action'],
87
-		    'sameAs' => ['URL'],
88
-		    'subjectOf' => ['Event', 'CreativeWork'],
89
-		    'url' => ['URL'],
90
-		    'warrantyScope' => ['WarrantyScope']
91
-		];
92
-	}
93
-
94
-
95
-	/**
96
-	 * @inheritdoc
97
-	 */
98
-	public function getSchemaPropertyDescriptions(): array
99
-	{
100
-		return [
101
-		    '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.',
102
-		    'alternateName' => 'An alias for the item.',
103
-		    'description' => 'A description of the item.',
104
-		    '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.',
105
-		    'durationOfWarranty' => 'The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days.',
106
-		    '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.         ',
107
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
108
-		    '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.',
109
-		    'name' => 'The name of the item.',
110
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
111
-		    '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.',
112
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
113
-		    'url' => 'URL of the item.',
114
-		    'warrantyScope' => 'The scope of the warranty promise.'
115
-		];
116
-	}
117
-
118
-
119
-	/**
120
-	 * @inheritdoc
121
-	 */
122
-	public function getGoogleRequiredSchema(): array
123
-	{
124
-		return ['description', 'name'];
125
-	}
126
-
127
-
128
-	/**
129
-	 * @inheritdoc
130
-	 */
131
-	public function getGoogleRecommendedSchema(): array
132
-	{
133
-		return ['image', 'url'];
134
-	}
135
-
136
-
137
-	/**
138
-	 * @inheritdoc
139
-	 */
140
-	public function defineRules(): array
141
-	{
142
-		$rules = parent::defineRules();
143
-		    $rules = array_merge($rules, [
144
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
145
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
146
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
147
-		    ]);
148
-
149
-		    return $rules;
150
-	}
28
+    use WarrantyPromiseTrait;
29
+    use StructuredValueTrait;
30
+    use IntangibleTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'WarrantyPromise';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/WarrantyPromise';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'StructuredValue';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A structured value representing the duration and scope of services that will be provided to a customer free of charge in case of a defect or malfunction of 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
+            'durationOfWarranty' => ['QuantitativeValue'],
82
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
83
+            'image' => ['URL', 'ImageObject'],
84
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
85
+            'name' => ['Text'],
86
+            'potentialAction' => ['Action'],
87
+            'sameAs' => ['URL'],
88
+            'subjectOf' => ['Event', 'CreativeWork'],
89
+            'url' => ['URL'],
90
+            'warrantyScope' => ['WarrantyScope']
91
+        ];
92
+    }
93
+
94
+
95
+    /**
96
+     * @inheritdoc
97
+     */
98
+    public function getSchemaPropertyDescriptions(): array
99
+    {
100
+        return [
101
+            '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.',
102
+            'alternateName' => 'An alias for the item.',
103
+            'description' => 'A description of the item.',
104
+            '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.',
105
+            'durationOfWarranty' => 'The duration of the warranty promise. Common unitCode values are ANN for year, MON for months, or DAY for days.',
106
+            '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.         ',
107
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
108
+            '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.',
109
+            'name' => 'The name of the item.',
110
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
111
+            '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.',
112
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
113
+            'url' => 'URL of the item.',
114
+            'warrantyScope' => 'The scope of the warranty promise.'
115
+        ];
116
+    }
117
+
118
+
119
+    /**
120
+     * @inheritdoc
121
+     */
122
+    public function getGoogleRequiredSchema(): array
123
+    {
124
+        return ['description', 'name'];
125
+    }
126
+
127
+
128
+    /**
129
+     * @inheritdoc
130
+     */
131
+    public function getGoogleRecommendedSchema(): array
132
+    {
133
+        return ['image', 'url'];
134
+    }
135
+
136
+
137
+    /**
138
+     * @inheritdoc
139
+     */
140
+    public function defineRules(): array
141
+    {
142
+        $rules = parent::defineRules();
143
+            $rules = array_merge($rules, [
144
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
145
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
146
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
147
+            ]);
148
+
149
+            return $rules;
150
+    }
151 151
 }
Please login to merge, or discard this patch.
src/models/jsonld/UserPlays.php 1 patch
Indentation   +201 added lines, -201 removed lines patch added patch discarded remove patch
@@ -25,205 +25,205 @@
 block discarded – undo
25 25
  */
26 26
 class UserPlays extends MetaJsonLd implements UserPlaysInterface, UserInteractionInterface, EventInterface, ThingInterface
27 27
 {
28
-	use UserPlaysTrait;
29
-	use UserInteractionTrait;
30
-	use EventTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'UserPlays';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/UserPlays';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'UserInteraction';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'UserInteraction and its subtypes is an old way of talking about users interacting with pages. It is generally better to use [[Action]]-based vocabulary, alongside types such as [[Comment]].';
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
-		    'about' => ['Thing'],
78
-		    'actor' => ['Person'],
79
-		    'additionalType' => ['URL'],
80
-		    'aggregateRating' => ['AggregateRating'],
81
-		    'alternateName' => ['Text'],
82
-		    'attendee' => ['Organization', 'Person'],
83
-		    'attendees' => ['Organization', 'Person'],
84
-		    'audience' => ['Audience'],
85
-		    'composer' => ['Organization', 'Person'],
86
-		    'contributor' => ['Organization', 'Person'],
87
-		    'description' => ['Text'],
88
-		    'director' => ['Person'],
89
-		    'disambiguatingDescription' => ['Text'],
90
-		    'doorTime' => ['Time', 'DateTime'],
91
-		    'duration' => ['Duration'],
92
-		    'endDate' => ['DateTime', 'Date'],
93
-		    'eventAttendanceMode' => ['EventAttendanceModeEnumeration'],
94
-		    'eventSchedule' => ['Schedule'],
95
-		    'eventStatus' => ['EventStatusType'],
96
-		    'funder' => ['Organization', 'Person'],
97
-		    'funding' => ['Grant'],
98
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
99
-		    'image' => ['URL', 'ImageObject'],
100
-		    'inLanguage' => ['Text', 'Language'],
101
-		    'isAccessibleForFree' => ['Boolean'],
102
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
103
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
104
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
105
-		    'maximumAttendeeCapacity' => ['Integer'],
106
-		    'maximumPhysicalAttendeeCapacity' => ['Integer'],
107
-		    'maximumVirtualAttendeeCapacity' => ['Integer'],
108
-		    'name' => ['Text'],
109
-		    'offers' => ['Demand', 'Offer'],
110
-		    'organizer' => ['Organization', 'Person'],
111
-		    'performer' => ['Person', 'Organization'],
112
-		    'performers' => ['Person', 'Organization'],
113
-		    'potentialAction' => ['Action'],
114
-		    'previousStartDate' => ['Date'],
115
-		    'recordedIn' => ['CreativeWork'],
116
-		    'remainingAttendeeCapacity' => ['Integer'],
117
-		    'review' => ['Review'],
118
-		    'sameAs' => ['URL'],
119
-		    'sponsor' => ['Organization', 'Person'],
120
-		    'startDate' => ['DateTime', 'Date'],
121
-		    'subEvent' => ['Event'],
122
-		    'subEvents' => ['Event'],
123
-		    'subjectOf' => ['Event', 'CreativeWork'],
124
-		    'superEvent' => ['Event'],
125
-		    'translator' => ['Organization', 'Person'],
126
-		    'typicalAgeRange' => ['Text'],
127
-		    'url' => ['URL'],
128
-		    'workFeatured' => ['CreativeWork'],
129
-		    'workPerformed' => ['CreativeWork']
130
-		];
131
-	}
132
-
133
-
134
-	/**
135
-	 * @inheritdoc
136
-	 */
137
-	public function getSchemaPropertyDescriptions(): array
138
-	{
139
-		return [
140
-		    'about' => 'The subject matter of the content.',
141
-		    'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.',
142
-		    '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.',
143
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
144
-		    'alternateName' => 'An alias for the item.',
145
-		    'attendee' => 'A person or organization attending the event.',
146
-		    'attendees' => 'A person attending the event.',
147
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
148
-		    'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.',
149
-		    'contributor' => 'A secondary contributor to the CreativeWork or Event.',
150
-		    'description' => 'A description of the item.',
151
-		    'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.',
152
-		    '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.',
153
-		    'doorTime' => 'The time admission will commence.',
154
-		    'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).',
155
-		    'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
156
-		    'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.',
157
-		    'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of       repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly       gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that       is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated       [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months       or seasons.',
158
-		    'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.',
159
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
160
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
161
-		    '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.         ',
162
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
163
-		    'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
164
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
165
-		    '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.',
166
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
167
-		    '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.',
168
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
169
-		    'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ',
170
-		    'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ',
171
-		    'name' => 'The name of the item.',
172
-		    '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.       ',
173
-		    'organizer' => 'An organizer of an Event.',
174
-		    'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.',
175
-		    'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.',
176
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
177
-		    'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.',
178
-		    'recordedIn' => 'The CreativeWork that captured all or part of this Event.',
179
-		    'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.',
180
-		    'review' => 'A review of the item.',
181
-		    '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.',
182
-		    '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.',
183
-		    'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
184
-		    'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.',
185
-		    'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.',
186
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
187
-		    'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.',
188
-		    'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
189
-		    'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
190
-		    'url' => 'URL of the item.',
191
-		    'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent.        Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).',
192
-		    'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.'
193
-		];
194
-	}
195
-
196
-
197
-	/**
198
-	 * @inheritdoc
199
-	 */
200
-	public function getGoogleRequiredSchema(): array
201
-	{
202
-		return ['description', 'name'];
203
-	}
204
-
205
-
206
-	/**
207
-	 * @inheritdoc
208
-	 */
209
-	public function getGoogleRecommendedSchema(): array
210
-	{
211
-		return ['image', 'url'];
212
-	}
213
-
214
-
215
-	/**
216
-	 * @inheritdoc
217
-	 */
218
-	public function defineRules(): array
219
-	{
220
-		$rules = parent::defineRules();
221
-		    $rules = array_merge($rules, [
222
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
223
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
224
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
225
-		    ]);
226
-
227
-		    return $rules;
228
-	}
28
+    use UserPlaysTrait;
29
+    use UserInteractionTrait;
30
+    use EventTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'UserPlays';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/UserPlays';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'UserInteraction';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'UserInteraction and its subtypes is an old way of talking about users interacting with pages. It is generally better to use [[Action]]-based vocabulary, alongside types such as [[Comment]].';
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
+            'about' => ['Thing'],
78
+            'actor' => ['Person'],
79
+            'additionalType' => ['URL'],
80
+            'aggregateRating' => ['AggregateRating'],
81
+            'alternateName' => ['Text'],
82
+            'attendee' => ['Organization', 'Person'],
83
+            'attendees' => ['Organization', 'Person'],
84
+            'audience' => ['Audience'],
85
+            'composer' => ['Organization', 'Person'],
86
+            'contributor' => ['Organization', 'Person'],
87
+            'description' => ['Text'],
88
+            'director' => ['Person'],
89
+            'disambiguatingDescription' => ['Text'],
90
+            'doorTime' => ['Time', 'DateTime'],
91
+            'duration' => ['Duration'],
92
+            'endDate' => ['DateTime', 'Date'],
93
+            'eventAttendanceMode' => ['EventAttendanceModeEnumeration'],
94
+            'eventSchedule' => ['Schedule'],
95
+            'eventStatus' => ['EventStatusType'],
96
+            'funder' => ['Organization', 'Person'],
97
+            'funding' => ['Grant'],
98
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
99
+            'image' => ['URL', 'ImageObject'],
100
+            'inLanguage' => ['Text', 'Language'],
101
+            'isAccessibleForFree' => ['Boolean'],
102
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
103
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
104
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
105
+            'maximumAttendeeCapacity' => ['Integer'],
106
+            'maximumPhysicalAttendeeCapacity' => ['Integer'],
107
+            'maximumVirtualAttendeeCapacity' => ['Integer'],
108
+            'name' => ['Text'],
109
+            'offers' => ['Demand', 'Offer'],
110
+            'organizer' => ['Organization', 'Person'],
111
+            'performer' => ['Person', 'Organization'],
112
+            'performers' => ['Person', 'Organization'],
113
+            'potentialAction' => ['Action'],
114
+            'previousStartDate' => ['Date'],
115
+            'recordedIn' => ['CreativeWork'],
116
+            'remainingAttendeeCapacity' => ['Integer'],
117
+            'review' => ['Review'],
118
+            'sameAs' => ['URL'],
119
+            'sponsor' => ['Organization', 'Person'],
120
+            'startDate' => ['DateTime', 'Date'],
121
+            'subEvent' => ['Event'],
122
+            'subEvents' => ['Event'],
123
+            'subjectOf' => ['Event', 'CreativeWork'],
124
+            'superEvent' => ['Event'],
125
+            'translator' => ['Organization', 'Person'],
126
+            'typicalAgeRange' => ['Text'],
127
+            'url' => ['URL'],
128
+            'workFeatured' => ['CreativeWork'],
129
+            'workPerformed' => ['CreativeWork']
130
+        ];
131
+    }
132
+
133
+
134
+    /**
135
+     * @inheritdoc
136
+     */
137
+    public function getSchemaPropertyDescriptions(): array
138
+    {
139
+        return [
140
+            'about' => 'The subject matter of the content.',
141
+            'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.',
142
+            '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.',
143
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
144
+            'alternateName' => 'An alias for the item.',
145
+            'attendee' => 'A person or organization attending the event.',
146
+            'attendees' => 'A person attending the event.',
147
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
148
+            'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.',
149
+            'contributor' => 'A secondary contributor to the CreativeWork or Event.',
150
+            'description' => 'A description of the item.',
151
+            'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.',
152
+            '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.',
153
+            'doorTime' => 'The time admission will commence.',
154
+            'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).',
155
+            'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
156
+            'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.',
157
+            'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of       repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly       gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that       is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated       [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months       or seasons.',
158
+            'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.',
159
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
160
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
161
+            '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.         ',
162
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
163
+            'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
164
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
165
+            '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.',
166
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
167
+            '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.',
168
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
169
+            'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ',
170
+            'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ',
171
+            'name' => 'The name of the item.',
172
+            '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.       ',
173
+            'organizer' => 'An organizer of an Event.',
174
+            'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.',
175
+            'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.',
176
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
177
+            'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.',
178
+            'recordedIn' => 'The CreativeWork that captured all or part of this Event.',
179
+            'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.',
180
+            'review' => 'A review of the item.',
181
+            '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.',
182
+            '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.',
183
+            'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
184
+            'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.',
185
+            'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.',
186
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
187
+            'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.',
188
+            'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
189
+            'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
190
+            'url' => 'URL of the item.',
191
+            'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent.        Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).',
192
+            'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.'
193
+        ];
194
+    }
195
+
196
+
197
+    /**
198
+     * @inheritdoc
199
+     */
200
+    public function getGoogleRequiredSchema(): array
201
+    {
202
+        return ['description', 'name'];
203
+    }
204
+
205
+
206
+    /**
207
+     * @inheritdoc
208
+     */
209
+    public function getGoogleRecommendedSchema(): array
210
+    {
211
+        return ['image', 'url'];
212
+    }
213
+
214
+
215
+    /**
216
+     * @inheritdoc
217
+     */
218
+    public function defineRules(): array
219
+    {
220
+        $rules = parent::defineRules();
221
+            $rules = array_merge($rules, [
222
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
223
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
224
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
225
+            ]);
226
+
227
+            return $rules;
228
+    }
229 229
 }
Please login to merge, or discard this patch.
src/models/jsonld/ChildrensEvent.php 1 patch
Indentation   +200 added lines, -200 removed lines patch added patch discarded remove patch
@@ -23,204 +23,204 @@
 block discarded – undo
23 23
  */
24 24
 class ChildrensEvent extends MetaJsonLd implements ChildrensEventInterface, EventInterface, ThingInterface
25 25
 {
26
-	use ChildrensEventTrait;
27
-	use EventTrait;
28
-	use ThingTrait;
29
-
30
-	/**
31
-	 * The Schema.org Type Name
32
-	 *
33
-	 * @var string
34
-	 */
35
-	public static $schemaTypeName = 'ChildrensEvent';
36
-
37
-	/**
38
-	 * The Schema.org Type Scope
39
-	 *
40
-	 * @var string
41
-	 */
42
-	public static $schemaTypeScope = 'https://schema.org/ChildrensEvent';
43
-
44
-	/**
45
-	 * The Schema.org Type Extends
46
-	 *
47
-	 * @var string
48
-	 */
49
-	public static $schemaTypeExtends = 'Event';
50
-
51
-	/**
52
-	 * The Schema.org Type Description
53
-	 *
54
-	 * @var string
55
-	 */
56
-	public static $schemaTypeDescription = 'Event type: Children\'s event.';
57
-
58
-
59
-	/**
60
-	 * @inheritdoc
61
-	 */
62
-	public function getSchemaPropertyNames(): array
63
-	{
64
-		return array_keys($this->getSchemaPropertyExpectedTypes());
65
-	}
66
-
67
-
68
-	/**
69
-	 * @inheritdoc
70
-	 */
71
-	public function getSchemaPropertyExpectedTypes(): array
72
-	{
73
-		return [
74
-		    'about' => ['Thing'],
75
-		    'actor' => ['Person'],
76
-		    'additionalType' => ['URL'],
77
-		    'aggregateRating' => ['AggregateRating'],
78
-		    'alternateName' => ['Text'],
79
-		    'attendee' => ['Organization', 'Person'],
80
-		    'attendees' => ['Organization', 'Person'],
81
-		    'audience' => ['Audience'],
82
-		    'composer' => ['Organization', 'Person'],
83
-		    'contributor' => ['Organization', 'Person'],
84
-		    'description' => ['Text'],
85
-		    'director' => ['Person'],
86
-		    'disambiguatingDescription' => ['Text'],
87
-		    'doorTime' => ['Time', 'DateTime'],
88
-		    'duration' => ['Duration'],
89
-		    'endDate' => ['DateTime', 'Date'],
90
-		    'eventAttendanceMode' => ['EventAttendanceModeEnumeration'],
91
-		    'eventSchedule' => ['Schedule'],
92
-		    'eventStatus' => ['EventStatusType'],
93
-		    'funder' => ['Organization', 'Person'],
94
-		    'funding' => ['Grant'],
95
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
96
-		    'image' => ['URL', 'ImageObject'],
97
-		    'inLanguage' => ['Text', 'Language'],
98
-		    'isAccessibleForFree' => ['Boolean'],
99
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
100
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
101
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
102
-		    'maximumAttendeeCapacity' => ['Integer'],
103
-		    'maximumPhysicalAttendeeCapacity' => ['Integer'],
104
-		    'maximumVirtualAttendeeCapacity' => ['Integer'],
105
-		    'name' => ['Text'],
106
-		    'offers' => ['Demand', 'Offer'],
107
-		    'organizer' => ['Organization', 'Person'],
108
-		    'performer' => ['Person', 'Organization'],
109
-		    'performers' => ['Person', 'Organization'],
110
-		    'potentialAction' => ['Action'],
111
-		    'previousStartDate' => ['Date'],
112
-		    'recordedIn' => ['CreativeWork'],
113
-		    'remainingAttendeeCapacity' => ['Integer'],
114
-		    'review' => ['Review'],
115
-		    'sameAs' => ['URL'],
116
-		    'sponsor' => ['Organization', 'Person'],
117
-		    'startDate' => ['DateTime', 'Date'],
118
-		    'subEvent' => ['Event'],
119
-		    'subEvents' => ['Event'],
120
-		    'subjectOf' => ['Event', 'CreativeWork'],
121
-		    'superEvent' => ['Event'],
122
-		    'translator' => ['Organization', 'Person'],
123
-		    'typicalAgeRange' => ['Text'],
124
-		    'url' => ['URL'],
125
-		    'workFeatured' => ['CreativeWork'],
126
-		    'workPerformed' => ['CreativeWork']
127
-		];
128
-	}
129
-
130
-
131
-	/**
132
-	 * @inheritdoc
133
-	 */
134
-	public function getSchemaPropertyDescriptions(): array
135
-	{
136
-		return [
137
-		    'about' => 'The subject matter of the content.',
138
-		    'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.',
139
-		    '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.',
140
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
141
-		    'alternateName' => 'An alias for the item.',
142
-		    'attendee' => 'A person or organization attending the event.',
143
-		    'attendees' => 'A person attending the event.',
144
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
145
-		    'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.',
146
-		    'contributor' => 'A secondary contributor to the CreativeWork or Event.',
147
-		    'description' => 'A description of the item.',
148
-		    'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.',
149
-		    '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.',
150
-		    'doorTime' => 'The time admission will commence.',
151
-		    'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).',
152
-		    'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
153
-		    'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.',
154
-		    'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of       repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly       gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that       is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated       [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months       or seasons.',
155
-		    'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.',
156
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
157
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
158
-		    '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.         ',
159
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
160
-		    'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
161
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
162
-		    '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.',
163
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
164
-		    '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.',
165
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
166
-		    'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ',
167
-		    'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ',
168
-		    'name' => 'The name of the item.',
169
-		    '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.       ',
170
-		    'organizer' => 'An organizer of an Event.',
171
-		    'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.',
172
-		    'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.',
173
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
174
-		    'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.',
175
-		    'recordedIn' => 'The CreativeWork that captured all or part of this Event.',
176
-		    'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.',
177
-		    'review' => 'A review of the item.',
178
-		    '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.',
179
-		    '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.',
180
-		    'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
181
-		    'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.',
182
-		    'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.',
183
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
184
-		    'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.',
185
-		    'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
186
-		    'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
187
-		    'url' => 'URL of the item.',
188
-		    'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent.        Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).',
189
-		    'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.'
190
-		];
191
-	}
192
-
193
-
194
-	/**
195
-	 * @inheritdoc
196
-	 */
197
-	public function getGoogleRequiredSchema(): array
198
-	{
199
-		return ['description', 'name'];
200
-	}
201
-
202
-
203
-	/**
204
-	 * @inheritdoc
205
-	 */
206
-	public function getGoogleRecommendedSchema(): array
207
-	{
208
-		return ['image', 'url'];
209
-	}
210
-
211
-
212
-	/**
213
-	 * @inheritdoc
214
-	 */
215
-	public function defineRules(): array
216
-	{
217
-		$rules = parent::defineRules();
218
-		    $rules = array_merge($rules, [
219
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
220
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
221
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
222
-		    ]);
223
-
224
-		    return $rules;
225
-	}
26
+    use ChildrensEventTrait;
27
+    use EventTrait;
28
+    use ThingTrait;
29
+
30
+    /**
31
+     * The Schema.org Type Name
32
+     *
33
+     * @var string
34
+     */
35
+    public static $schemaTypeName = 'ChildrensEvent';
36
+
37
+    /**
38
+     * The Schema.org Type Scope
39
+     *
40
+     * @var string
41
+     */
42
+    public static $schemaTypeScope = 'https://schema.org/ChildrensEvent';
43
+
44
+    /**
45
+     * The Schema.org Type Extends
46
+     *
47
+     * @var string
48
+     */
49
+    public static $schemaTypeExtends = 'Event';
50
+
51
+    /**
52
+     * The Schema.org Type Description
53
+     *
54
+     * @var string
55
+     */
56
+    public static $schemaTypeDescription = 'Event type: Children\'s event.';
57
+
58
+
59
+    /**
60
+     * @inheritdoc
61
+     */
62
+    public function getSchemaPropertyNames(): array
63
+    {
64
+        return array_keys($this->getSchemaPropertyExpectedTypes());
65
+    }
66
+
67
+
68
+    /**
69
+     * @inheritdoc
70
+     */
71
+    public function getSchemaPropertyExpectedTypes(): array
72
+    {
73
+        return [
74
+            'about' => ['Thing'],
75
+            'actor' => ['Person'],
76
+            'additionalType' => ['URL'],
77
+            'aggregateRating' => ['AggregateRating'],
78
+            'alternateName' => ['Text'],
79
+            'attendee' => ['Organization', 'Person'],
80
+            'attendees' => ['Organization', 'Person'],
81
+            'audience' => ['Audience'],
82
+            'composer' => ['Organization', 'Person'],
83
+            'contributor' => ['Organization', 'Person'],
84
+            'description' => ['Text'],
85
+            'director' => ['Person'],
86
+            'disambiguatingDescription' => ['Text'],
87
+            'doorTime' => ['Time', 'DateTime'],
88
+            'duration' => ['Duration'],
89
+            'endDate' => ['DateTime', 'Date'],
90
+            'eventAttendanceMode' => ['EventAttendanceModeEnumeration'],
91
+            'eventSchedule' => ['Schedule'],
92
+            'eventStatus' => ['EventStatusType'],
93
+            'funder' => ['Organization', 'Person'],
94
+            'funding' => ['Grant'],
95
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
96
+            'image' => ['URL', 'ImageObject'],
97
+            'inLanguage' => ['Text', 'Language'],
98
+            'isAccessibleForFree' => ['Boolean'],
99
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
100
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
101
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
102
+            'maximumAttendeeCapacity' => ['Integer'],
103
+            'maximumPhysicalAttendeeCapacity' => ['Integer'],
104
+            'maximumVirtualAttendeeCapacity' => ['Integer'],
105
+            'name' => ['Text'],
106
+            'offers' => ['Demand', 'Offer'],
107
+            'organizer' => ['Organization', 'Person'],
108
+            'performer' => ['Person', 'Organization'],
109
+            'performers' => ['Person', 'Organization'],
110
+            'potentialAction' => ['Action'],
111
+            'previousStartDate' => ['Date'],
112
+            'recordedIn' => ['CreativeWork'],
113
+            'remainingAttendeeCapacity' => ['Integer'],
114
+            'review' => ['Review'],
115
+            'sameAs' => ['URL'],
116
+            'sponsor' => ['Organization', 'Person'],
117
+            'startDate' => ['DateTime', 'Date'],
118
+            'subEvent' => ['Event'],
119
+            'subEvents' => ['Event'],
120
+            'subjectOf' => ['Event', 'CreativeWork'],
121
+            'superEvent' => ['Event'],
122
+            'translator' => ['Organization', 'Person'],
123
+            'typicalAgeRange' => ['Text'],
124
+            'url' => ['URL'],
125
+            'workFeatured' => ['CreativeWork'],
126
+            'workPerformed' => ['CreativeWork']
127
+        ];
128
+    }
129
+
130
+
131
+    /**
132
+     * @inheritdoc
133
+     */
134
+    public function getSchemaPropertyDescriptions(): array
135
+    {
136
+        return [
137
+            'about' => 'The subject matter of the content.',
138
+            'actor' => 'An actor, e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.',
139
+            '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.',
140
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
141
+            'alternateName' => 'An alias for the item.',
142
+            'attendee' => 'A person or organization attending the event.',
143
+            'attendees' => 'A person attending the event.',
144
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
145
+            'composer' => 'The person or organization who wrote a composition, or who is the composer of a work performed at some event.',
146
+            'contributor' => 'A secondary contributor to the CreativeWork or Event.',
147
+            'description' => 'A description of the item.',
148
+            'director' => 'A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.',
149
+            '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.',
150
+            'doorTime' => 'The time admission will commence.',
151
+            'duration' => 'The duration of the item (movie, audio recording, event, etc.) in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601).',
152
+            'endDate' => 'The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
153
+            'eventAttendanceMode' => 'The eventAttendanceMode of an event indicates whether it occurs online, offline, or a mix.',
154
+            'eventSchedule' => 'Associates an [[Event]] with a [[Schedule]]. There are circumstances where it is preferable to share a schedule for a series of       repeating events rather than data on the individual events themselves. For example, a website or application might prefer to publish a schedule for a weekly       gym class rather than provide data on every event. A schedule could be processed by applications to add forthcoming events to a calendar. An [[Event]] that       is associated with a [[Schedule]] using this property should not have [[startDate]] or [[endDate]] properties. These are instead defined within the associated       [[Schedule]], this avoids any ambiguity for clients using the data. The property might have repeated values to specify different schedules, e.g. for different months       or seasons.',
155
+            'eventStatus' => 'An eventStatus of an event represents its status; particularly useful when an event is cancelled or rescheduled.',
156
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
157
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
158
+            '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.         ',
159
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
160
+            'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
161
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
162
+            '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.',
163
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
164
+            '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.',
165
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
166
+            'maximumPhysicalAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OfflineEventAttendanceMode]] (or the offline aspects, in the case of a [[MixedEventAttendanceMode]]). ',
167
+            'maximumVirtualAttendeeCapacity' => 'The maximum physical attendee capacity of an [[Event]] whose [[eventAttendanceMode]] is [[OnlineEventAttendanceMode]] (or the online aspects, in the case of a [[MixedEventAttendanceMode]]). ',
168
+            'name' => 'The name of the item.',
169
+            '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.       ',
170
+            'organizer' => 'An organizer of an Event.',
171
+            'performer' => 'A performer at the event—for example, a presenter, musician, musical group or actor.',
172
+            'performers' => 'The main performer or performers of the event—for example, a presenter, musician, or actor.',
173
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
174
+            'previousStartDate' => 'Used in conjunction with eventStatus for rescheduled or cancelled events. This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.',
175
+            'recordedIn' => 'The CreativeWork that captured all or part of this Event.',
176
+            'remainingAttendeeCapacity' => 'The number of attendee places for an event that remain unallocated.',
177
+            'review' => 'A review of the item.',
178
+            '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.',
179
+            '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.',
180
+            'startDate' => 'The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).',
181
+            'subEvent' => 'An Event that is part of this event. For example, a conference event includes many presentations, each of which is a subEvent of the conference.',
182
+            'subEvents' => 'Events that are a part of this event. For example, a conference event includes many presentations, each subEvents of the conference.',
183
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
184
+            'superEvent' => 'An event that this event is a part of. For example, a collection of individual music performances might each have a music festival as their superEvent.',
185
+            'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
186
+            'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
187
+            'url' => 'URL of the item.',
188
+            'workFeatured' => 'A work featured in some event, e.g. exhibited in an ExhibitionEvent.        Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).',
189
+            'workPerformed' => 'A work performed in some event, for example a play performed in a TheaterEvent.'
190
+        ];
191
+    }
192
+
193
+
194
+    /**
195
+     * @inheritdoc
196
+     */
197
+    public function getGoogleRequiredSchema(): array
198
+    {
199
+        return ['description', 'name'];
200
+    }
201
+
202
+
203
+    /**
204
+     * @inheritdoc
205
+     */
206
+    public function getGoogleRecommendedSchema(): array
207
+    {
208
+        return ['image', 'url'];
209
+    }
210
+
211
+
212
+    /**
213
+     * @inheritdoc
214
+     */
215
+    public function defineRules(): array
216
+    {
217
+        $rules = parent::defineRules();
218
+            $rules = array_merge($rules, [
219
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
220
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
221
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
222
+            ]);
223
+
224
+            return $rules;
225
+    }
226 226
 }
Please login to merge, or discard this patch.
src/models/jsonld/Casino.php 1 patch
Indentation   +310 added lines, -310 removed lines patch added patch discarded remove patch
@@ -23,331 +23,331 @@
 block discarded – undo
23 23
  */
24 24
 class Casino extends MetaJsonLd implements CasinoInterface, EntertainmentBusinessInterface, LocalBusinessInterface, PlaceInterface, ThingInterface, OrganizationInterface
25 25
 {
26
-	use CasinoTrait;
27
-	use EntertainmentBusinessTrait;
28
-	use LocalBusinessTrait;
29
-	use PlaceTrait;
30
-	use ThingTrait;
31
-	use OrganizationTrait;
26
+    use CasinoTrait;
27
+    use EntertainmentBusinessTrait;
28
+    use LocalBusinessTrait;
29
+    use PlaceTrait;
30
+    use ThingTrait;
31
+    use OrganizationTrait;
32 32
 
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'Casino';
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'Casino';
39 39
 
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/Casino';
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/Casino';
46 46
 
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'EntertainmentBusiness';
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'EntertainmentBusiness';
53 53
 
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A casino.';
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A casino.';
60 60
 
61 61
 
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69 69
 
70 70
 
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
78
-		    'additionalProperty' => ['PropertyValue'],
79
-		    'additionalType' => ['URL'],
80
-		    'address' => ['Text', 'PostalAddress'],
81
-		    'aggregateRating' => ['AggregateRating'],
82
-		    'alternateName' => ['Text'],
83
-		    'alumni' => ['Person'],
84
-		    'amenityFeature' => ['LocationFeatureSpecification'],
85
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
86
-		    'award' => ['Text'],
87
-		    'awards' => ['Text'],
88
-		    'branchCode' => ['Text'],
89
-		    'branchOf' => ['Organization'],
90
-		    'brand' => ['Brand', 'Organization'],
91
-		    'contactPoint' => ['ContactPoint'],
92
-		    'contactPoints' => ['ContactPoint'],
93
-		    'containedIn' => ['Place'],
94
-		    'containedInPlace' => ['Place'],
95
-		    'containsPlace' => ['Place'],
96
-		    'correctionsPolicy' => ['URL', 'CreativeWork'],
97
-		    'currenciesAccepted' => ['Text'],
98
-		    'department' => ['Organization'],
99
-		    'description' => ['Text'],
100
-		    'disambiguatingDescription' => ['Text'],
101
-		    'dissolutionDate' => ['Date'],
102
-		    'diversityPolicy' => ['URL', 'CreativeWork'],
103
-		    'diversityStaffingReport' => ['Article', 'URL'],
104
-		    'duns' => ['Text'],
105
-		    'email' => ['Text'],
106
-		    'employee' => ['Person'],
107
-		    'employees' => ['Person'],
108
-		    'ethicsPolicy' => ['CreativeWork', 'URL'],
109
-		    'event' => ['Event'],
110
-		    'events' => ['Event'],
111
-		    'faxNumber' => ['Text'],
112
-		    'founder' => ['Person'],
113
-		    'founders' => ['Person'],
114
-		    'foundingDate' => ['Date'],
115
-		    'foundingLocation' => ['Place'],
116
-		    'funder' => ['Organization', 'Person'],
117
-		    'funding' => ['Grant'],
118
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
119
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
120
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
121
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
122
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
123
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
124
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
125
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
126
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
127
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
128
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
129
-		    'globalLocationNumber' => ['Text'],
130
-		    'hasCredential' => ['EducationalOccupationalCredential'],
131
-		    'hasDriveThroughService' => ['Boolean'],
132
-		    'hasMap' => ['URL', 'Map'],
133
-		    'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
134
-		    'hasOfferCatalog' => ['OfferCatalog'],
135
-		    'hasPOS' => ['Place'],
136
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
137
-		    'image' => ['URL', 'ImageObject'],
138
-		    'interactionStatistic' => ['InteractionCounter'],
139
-		    'isAccessibleForFree' => ['Boolean'],
140
-		    'isicV4' => ['Text'],
141
-		    'iso6523Code' => ['Text'],
142
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
143
-		    'knowsAbout' => ['Thing', 'Text', 'URL'],
144
-		    'knowsLanguage' => ['Text', 'Language'],
145
-		    'latitude' => ['Number', 'Text'],
146
-		    'legalName' => ['Text'],
147
-		    'leiCode' => ['Text'],
148
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
149
-		    'logo' => ['ImageObject', 'URL'],
150
-		    'longitude' => ['Text', 'Number'],
151
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
152
-		    'makesOffer' => ['Offer'],
153
-		    'map' => ['URL'],
154
-		    'maps' => ['URL'],
155
-		    'maximumAttendeeCapacity' => ['Integer'],
156
-		    'member' => ['Organization', 'Person'],
157
-		    'memberOf' => ['Organization', 'ProgramMembership'],
158
-		    'members' => ['Organization', 'Person'],
159
-		    'naics' => ['Text'],
160
-		    'name' => ['Text'],
161
-		    'nonprofitStatus' => ['NonprofitType'],
162
-		    'numberOfEmployees' => ['QuantitativeValue'],
163
-		    'openingHours' => ['Text'],
164
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
165
-		    'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
166
-		    'owns' => ['Product', 'OwnershipInfo'],
167
-		    'parentOrganization' => ['Organization'],
168
-		    'paymentAccepted' => ['Text'],
169
-		    'photo' => ['Photograph', 'ImageObject'],
170
-		    'photos' => ['ImageObject', 'Photograph'],
171
-		    'potentialAction' => ['Action'],
172
-		    'priceRange' => ['Text'],
173
-		    'publicAccess' => ['Boolean'],
174
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
175
-		    'review' => ['Review'],
176
-		    'reviews' => ['Review'],
177
-		    'sameAs' => ['URL'],
178
-		    'seeks' => ['Demand'],
179
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
180
-		    'slogan' => ['Text'],
181
-		    'smokingAllowed' => ['Boolean'],
182
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
183
-		    'sponsor' => ['Organization', 'Person'],
184
-		    'subOrganization' => ['Organization'],
185
-		    'subjectOf' => ['Event', 'CreativeWork'],
186
-		    'taxID' => ['Text'],
187
-		    'telephone' => ['Text'],
188
-		    'tourBookingPage' => ['URL'],
189
-		    'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
190
-		    'url' => ['URL'],
191
-		    'vatID' => ['Text']
192
-		];
193
-	}
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'actionableFeedbackPolicy' => ['CreativeWork', 'URL'],
78
+            'additionalProperty' => ['PropertyValue'],
79
+            'additionalType' => ['URL'],
80
+            'address' => ['Text', 'PostalAddress'],
81
+            'aggregateRating' => ['AggregateRating'],
82
+            'alternateName' => ['Text'],
83
+            'alumni' => ['Person'],
84
+            'amenityFeature' => ['LocationFeatureSpecification'],
85
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
86
+            'award' => ['Text'],
87
+            'awards' => ['Text'],
88
+            'branchCode' => ['Text'],
89
+            'branchOf' => ['Organization'],
90
+            'brand' => ['Brand', 'Organization'],
91
+            'contactPoint' => ['ContactPoint'],
92
+            'contactPoints' => ['ContactPoint'],
93
+            'containedIn' => ['Place'],
94
+            'containedInPlace' => ['Place'],
95
+            'containsPlace' => ['Place'],
96
+            'correctionsPolicy' => ['URL', 'CreativeWork'],
97
+            'currenciesAccepted' => ['Text'],
98
+            'department' => ['Organization'],
99
+            'description' => ['Text'],
100
+            'disambiguatingDescription' => ['Text'],
101
+            'dissolutionDate' => ['Date'],
102
+            'diversityPolicy' => ['URL', 'CreativeWork'],
103
+            'diversityStaffingReport' => ['Article', 'URL'],
104
+            'duns' => ['Text'],
105
+            'email' => ['Text'],
106
+            'employee' => ['Person'],
107
+            'employees' => ['Person'],
108
+            'ethicsPolicy' => ['CreativeWork', 'URL'],
109
+            'event' => ['Event'],
110
+            'events' => ['Event'],
111
+            'faxNumber' => ['Text'],
112
+            'founder' => ['Person'],
113
+            'founders' => ['Person'],
114
+            'foundingDate' => ['Date'],
115
+            'foundingLocation' => ['Place'],
116
+            'funder' => ['Organization', 'Person'],
117
+            'funding' => ['Grant'],
118
+            'geo' => ['GeoCoordinates', 'GeoShape'],
119
+            'geoContains' => ['Place', 'GeospatialGeometry'],
120
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
121
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
122
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
123
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
124
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
125
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
126
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
127
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
128
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
129
+            'globalLocationNumber' => ['Text'],
130
+            'hasCredential' => ['EducationalOccupationalCredential'],
131
+            'hasDriveThroughService' => ['Boolean'],
132
+            'hasMap' => ['URL', 'Map'],
133
+            'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
134
+            'hasOfferCatalog' => ['OfferCatalog'],
135
+            'hasPOS' => ['Place'],
136
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
137
+            'image' => ['URL', 'ImageObject'],
138
+            'interactionStatistic' => ['InteractionCounter'],
139
+            'isAccessibleForFree' => ['Boolean'],
140
+            'isicV4' => ['Text'],
141
+            'iso6523Code' => ['Text'],
142
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
143
+            'knowsAbout' => ['Thing', 'Text', 'URL'],
144
+            'knowsLanguage' => ['Text', 'Language'],
145
+            'latitude' => ['Number', 'Text'],
146
+            'legalName' => ['Text'],
147
+            'leiCode' => ['Text'],
148
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
149
+            'logo' => ['ImageObject', 'URL'],
150
+            'longitude' => ['Text', 'Number'],
151
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
152
+            'makesOffer' => ['Offer'],
153
+            'map' => ['URL'],
154
+            'maps' => ['URL'],
155
+            'maximumAttendeeCapacity' => ['Integer'],
156
+            'member' => ['Organization', 'Person'],
157
+            'memberOf' => ['Organization', 'ProgramMembership'],
158
+            'members' => ['Organization', 'Person'],
159
+            'naics' => ['Text'],
160
+            'name' => ['Text'],
161
+            'nonprofitStatus' => ['NonprofitType'],
162
+            'numberOfEmployees' => ['QuantitativeValue'],
163
+            'openingHours' => ['Text'],
164
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
165
+            'ownershipFundingInfo' => ['AboutPage', 'Text', 'CreativeWork', 'URL'],
166
+            'owns' => ['Product', 'OwnershipInfo'],
167
+            'parentOrganization' => ['Organization'],
168
+            'paymentAccepted' => ['Text'],
169
+            'photo' => ['Photograph', 'ImageObject'],
170
+            'photos' => ['ImageObject', 'Photograph'],
171
+            'potentialAction' => ['Action'],
172
+            'priceRange' => ['Text'],
173
+            'publicAccess' => ['Boolean'],
174
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
175
+            'review' => ['Review'],
176
+            'reviews' => ['Review'],
177
+            'sameAs' => ['URL'],
178
+            'seeks' => ['Demand'],
179
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
180
+            'slogan' => ['Text'],
181
+            'smokingAllowed' => ['Boolean'],
182
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
183
+            'sponsor' => ['Organization', 'Person'],
184
+            'subOrganization' => ['Organization'],
185
+            'subjectOf' => ['Event', 'CreativeWork'],
186
+            'taxID' => ['Text'],
187
+            'telephone' => ['Text'],
188
+            'tourBookingPage' => ['URL'],
189
+            'unnamedSourcesPolicy' => ['CreativeWork', 'URL'],
190
+            'url' => ['URL'],
191
+            'vatID' => ['Text']
192
+        ];
193
+    }
194 194
 
195 195
 
196
-	/**
197
-	 * @inheritdoc
198
-	 */
199
-	public function getSchemaPropertyDescriptions(): array
200
-	{
201
-		return [
202
-		    'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.',
203
-		    'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
204
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
205
-		    'address' => 'Physical address of the item.',
206
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
207
-		    'alternateName' => 'An alias for the item.',
208
-		    'alumni' => 'Alumni of an organization.',
209
-		    'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
210
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
211
-		    'award' => 'An award won by or for this item.',
212
-		    'awards' => 'Awards won by or for this item.',
213
-		    'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
214
-		    'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
215
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
216
-		    'contactPoint' => 'A contact point for a person or organization.',
217
-		    'contactPoints' => 'A contact point for a person or organization.',
218
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
219
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
220
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
221
-		    'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
222
-		    'currenciesAccepted' => 'The currency accepted.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
223
-		    'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.',
224
-		    'description' => 'A description of the item.',
225
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
226
-		    'dissolutionDate' => 'The date that this organization was dissolved.',
227
-		    'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.',
228
-		    'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.',
229
-		    'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
230
-		    'email' => 'Email address.',
231
-		    'employee' => 'Someone working for this organization.',
232
-		    'employees' => 'People working for this organization.',
233
-		    'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.',
234
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
235
-		    'events' => 'Upcoming or past events associated with this place or organization.',
236
-		    'faxNumber' => 'The fax number.',
237
-		    'founder' => 'A person who founded this organization.',
238
-		    'founders' => 'A person who founded this organization.',
239
-		    'foundingDate' => 'The date that this organization was founded.',
240
-		    'foundingLocation' => 'The place where the Organization was founded.',
241
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
242
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
243
-		    'geo' => 'The geo coordinates of the place.',
244
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
245
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
246
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
247
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
248
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
249
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
250
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
251
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
252
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
253
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
254
-		    'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
255
-		    'hasCredential' => 'A credential awarded to the Person or Organization.',
256
-		    'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
257
-		    'hasMap' => 'A URL to a map of the place.',
258
-		    'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
259
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
260
-		    'hasPOS' => 'Points-of-Sales operated by the organization or person.',
261
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
262
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
263
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
264
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
265
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
266
-		    'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ',
267
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
268
-		    'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.',
269
-		    'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).',
270
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
271
-		    'legalName' => 'The official name of the organization, e.g. the registered company name.',
272
-		    'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
273
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
274
-		    'logo' => 'An associated logo.',
275
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
276
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
277
-		    'makesOffer' => 'A pointer to products or services offered by the organization or person.',
278
-		    'map' => 'A URL to a map of the place.',
279
-		    'maps' => 'A URL to a map of the place.',
280
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
281
-		    'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
282
-		    'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
283
-		    'members' => 'A member of this organization.',
284
-		    'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
285
-		    'name' => 'The name of the item.',
286
-		    'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
287
-		    'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
288
-		    'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
289
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
290
-		    'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence.   Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.',
291
-		    'owns' => 'Products owned by the organization or person.',
292
-		    'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
293
-		    'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
294
-		    'photo' => 'A photograph of this place.',
295
-		    'photos' => 'Photographs of this place.',
296
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
297
-		    'priceRange' => 'The price range of the business, for example ```$$$```.',
298
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
299
-		    'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
300
-		    'review' => 'A review of the item.',
301
-		    'reviews' => 'Review of the item.',
302
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
303
-		    'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
304
-		    'serviceArea' => 'The geographic area where the service is provided.',
305
-		    'slogan' => 'A slogan or motto associated with the item.',
306
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
307
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
308
-		    'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
309
-		    'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
310
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
311
-		    'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
312
-		    'telephone' => 'The telephone number.',
313
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
314
-		    'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
315
-		    'url' => 'URL of the item.',
316
-		    'vatID' => 'The Value-added Tax ID of the organization or person.'
317
-		];
318
-	}
196
+    /**
197
+     * @inheritdoc
198
+     */
199
+    public function getSchemaPropertyDescriptions(): array
200
+    {
201
+        return [
202
+            'actionableFeedbackPolicy' => 'For a [[NewsMediaOrganization]] or other news-related [[Organization]], a statement about public engagement activities (for news media, the newsroom’s), including involving the public - digitally or otherwise -- in coverage decisions, reporting and activities after publication.',
203
+            'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
204
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
205
+            'address' => 'Physical address of the item.',
206
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
207
+            'alternateName' => 'An alias for the item.',
208
+            'alumni' => 'Alumni of an organization.',
209
+            'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
210
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
211
+            'award' => 'An award won by or for this item.',
212
+            'awards' => 'Awards won by or for this item.',
213
+            'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
214
+            'branchOf' => 'The larger organization that this local business is a branch of, if any. Not to be confused with (anatomical) [[branch]].',
215
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
216
+            'contactPoint' => 'A contact point for a person or organization.',
217
+            'contactPoints' => 'A contact point for a person or organization.',
218
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
219
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
220
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
221
+            'correctionsPolicy' => 'For an [[Organization]] (e.g. [[NewsMediaOrganization]]), a statement describing (in news media, the newsroom’s) disclosure and correction policy for errors.',
222
+            'currenciesAccepted' => 'The currency accepted.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
223
+            'department' => 'A relationship between an organization and a department of that organization, also described as an organization (allowing different urls, logos, opening hours). For example: a store with a pharmacy, or a bakery with a cafe.',
224
+            'description' => 'A description of the item.',
225
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
226
+            'dissolutionDate' => 'The date that this organization was dissolved.',
227
+            'diversityPolicy' => 'Statement on diversity policy by an [[Organization]] e.g. a [[NewsMediaOrganization]]. For a [[NewsMediaOrganization]], a statement describing the newsroom’s diversity policy on both staffing and sources, typically providing staffing data.',
228
+            'diversityStaffingReport' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a report on staffing diversity issues. In a news context this might be for example ASNE or RTDNA (US) reports, or self-reported.',
229
+            'duns' => 'The Dun & Bradstreet DUNS number for identifying an organization or business person.',
230
+            'email' => 'Email address.',
231
+            'employee' => 'Someone working for this organization.',
232
+            'employees' => 'People working for this organization.',
233
+            'ethicsPolicy' => 'Statement about ethics policy, e.g. of a [[NewsMediaOrganization]] regarding journalistic and publishing practices, or of a [[Restaurant]], a page describing food source policies. In the case of a [[NewsMediaOrganization]], an ethicsPolicy is typically a statement describing the personal, organizational, and corporate standards of behavior expected by the organization.',
234
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
235
+            'events' => 'Upcoming or past events associated with this place or organization.',
236
+            'faxNumber' => 'The fax number.',
237
+            'founder' => 'A person who founded this organization.',
238
+            'founders' => 'A person who founded this organization.',
239
+            'foundingDate' => 'The date that this organization was founded.',
240
+            'foundingLocation' => 'The place where the Organization was founded.',
241
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
242
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
243
+            'geo' => 'The geo coordinates of the place.',
244
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
245
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
246
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
247
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
248
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
249
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
250
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
251
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
252
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
253
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
254
+            'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
255
+            'hasCredential' => 'A credential awarded to the Person or Organization.',
256
+            'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
257
+            'hasMap' => 'A URL to a map of the place.',
258
+            'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
259
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
260
+            'hasPOS' => 'Points-of-Sales operated by the organization or person.',
261
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
262
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
263
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
264
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
265
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
266
+            'iso6523Code' => 'An organization identifier as defined in ISO 6523(-1). Note that many existing organization identifiers such as [leiCode](https://schema.org/leiCode), [duns](https://schema.org/duns) and [vatID](https://schema.org/vatID) can be expressed as an ISO 6523 identifier by setting the ICD part of the ISO 6523 identifier accordingly. ',
267
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
268
+            'knowsAbout' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a topic that is known about - suggesting possible expertise but not implying it. We do not distinguish skill levels here, or relate this to educational content, events, objectives or [[JobPosting]] descriptions.',
269
+            'knowsLanguage' => 'Of a [[Person]], and less typically of an [[Organization]], to indicate a known language. We do not distinguish skill levels or reading/writing/speaking/signing here. Use language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47).',
270
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
271
+            'legalName' => 'The official name of the organization, e.g. the registered company name.',
272
+            'leiCode' => 'An organization identifier that uniquely identifies a legal entity as defined in ISO 17442.',
273
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
274
+            'logo' => 'An associated logo.',
275
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
276
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
277
+            'makesOffer' => 'A pointer to products or services offered by the organization or person.',
278
+            'map' => 'A URL to a map of the place.',
279
+            'maps' => 'A URL to a map of the place.',
280
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
281
+            'member' => 'A member of an Organization or a ProgramMembership. Organizations can be members of organizations; ProgramMembership is typically for individuals.',
282
+            'memberOf' => 'An Organization (or ProgramMembership) to which this Person or Organization belongs.',
283
+            'members' => 'A member of this organization.',
284
+            'naics' => 'The North American Industry Classification System (NAICS) code for a particular organization or business person.',
285
+            'name' => 'The name of the item.',
286
+            'nonprofitStatus' => 'nonprofitStatus indicates the legal status of a non-profit organization in its primary place of business.',
287
+            'numberOfEmployees' => 'The number of employees in an organization, e.g. business.',
288
+            'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
289
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
290
+            'ownershipFundingInfo' => 'For an [[Organization]] (often but not necessarily a [[NewsMediaOrganization]]), a description of organizational ownership structure; funding and grants. In a news/media setting, this is with particular reference to editorial independence.   Note that the [[funder]] is also available and can be used to make basic funder information machine-readable.',
291
+            'owns' => 'Products owned by the organization or person.',
292
+            'parentOrganization' => 'The larger organization that this organization is a [[subOrganization]] of, if any.',
293
+            'paymentAccepted' => 'Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.',
294
+            'photo' => 'A photograph of this place.',
295
+            'photos' => 'Photographs of this place.',
296
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
297
+            'priceRange' => 'The price range of the business, for example ```$$$```.',
298
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
299
+            'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
300
+            'review' => 'A review of the item.',
301
+            'reviews' => 'Review of the item.',
302
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
303
+            'seeks' => 'A pointer to products or services sought by the organization or person (demand).',
304
+            'serviceArea' => 'The geographic area where the service is provided.',
305
+            'slogan' => 'A slogan or motto associated with the item.',
306
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
307
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
308
+            'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
309
+            'subOrganization' => 'A relationship between two organizations where the first includes the second, e.g., as a subsidiary. See also: the more specific \'department\' property.',
310
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
311
+            'taxID' => 'The Tax / Fiscal ID of the organization or person, e.g. the TIN in the US or the CIF/NIF in Spain.',
312
+            'telephone' => 'The telephone number.',
313
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
314
+            'unnamedSourcesPolicy' => 'For an [[Organization]] (typically a [[NewsMediaOrganization]]), a statement about policy on use of unnamed sources and the decision process required.',
315
+            'url' => 'URL of the item.',
316
+            'vatID' => 'The Value-added Tax ID of the organization or person.'
317
+        ];
318
+    }
319 319
 
320 320
 
321
-	/**
322
-	 * @inheritdoc
323
-	 */
324
-	public function getGoogleRequiredSchema(): array
325
-	{
326
-		return ['description', 'name'];
327
-	}
321
+    /**
322
+     * @inheritdoc
323
+     */
324
+    public function getGoogleRequiredSchema(): array
325
+    {
326
+        return ['description', 'name'];
327
+    }
328 328
 
329 329
 
330
-	/**
331
-	 * @inheritdoc
332
-	 */
333
-	public function getGoogleRecommendedSchema(): array
334
-	{
335
-		return ['image', 'url'];
336
-	}
330
+    /**
331
+     * @inheritdoc
332
+     */
333
+    public function getGoogleRecommendedSchema(): array
334
+    {
335
+        return ['image', 'url'];
336
+    }
337 337
 
338 338
 
339
-	/**
340
-	 * @inheritdoc
341
-	 */
342
-	public function defineRules(): array
343
-	{
344
-		$rules = parent::defineRules();
345
-		    $rules = array_merge($rules, [
346
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
347
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
348
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
349
-		    ]);
339
+    /**
340
+     * @inheritdoc
341
+     */
342
+    public function defineRules(): array
343
+    {
344
+        $rules = parent::defineRules();
345
+            $rules = array_merge($rules, [
346
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
347
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
348
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
349
+            ]);
350 350
 
351
-		    return $rules;
352
-	}
351
+            return $rules;
352
+    }
353 353
 }
Please login to merge, or discard this patch.
src/models/jsonld/RVPark.php 1 patch
Indentation   +211 added lines, -211 removed lines patch added patch discarded remove patch
@@ -24,215 +24,215 @@
 block discarded – undo
24 24
  */
25 25
 class RVPark extends MetaJsonLd implements RVParkInterface, CivicStructureInterface, PlaceInterface, ThingInterface
26 26
 {
27
-	use RVParkTrait;
28
-	use CivicStructureTrait;
29
-	use PlaceTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'RVPark';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/RVPark';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'CivicStructure';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A place offering space for "Recreational Vehicles", Caravans, mobile homes and the like.';
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
-		    'additionalProperty' => ['PropertyValue'],
77
-		    'additionalType' => ['URL'],
78
-		    'address' => ['Text', 'PostalAddress'],
79
-		    'aggregateRating' => ['AggregateRating'],
80
-		    'alternateName' => ['Text'],
81
-		    'amenityFeature' => ['LocationFeatureSpecification'],
82
-		    'branchCode' => ['Text'],
83
-		    'containedIn' => ['Place'],
84
-		    'containedInPlace' => ['Place'],
85
-		    'containsPlace' => ['Place'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'event' => ['Event'],
89
-		    'events' => ['Event'],
90
-		    'faxNumber' => ['Text'],
91
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
92
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
93
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
94
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
95
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
96
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
97
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
98
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
99
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
100
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
101
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
102
-		    'globalLocationNumber' => ['Text'],
103
-		    'hasDriveThroughService' => ['Boolean'],
104
-		    'hasMap' => ['URL', 'Map'],
105
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
106
-		    'image' => ['URL', 'ImageObject'],
107
-		    'isAccessibleForFree' => ['Boolean'],
108
-		    'isicV4' => ['Text'],
109
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
110
-		    'latitude' => ['Number', 'Text'],
111
-		    'logo' => ['ImageObject', 'URL'],
112
-		    'longitude' => ['Text', 'Number'],
113
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
114
-		    'map' => ['URL'],
115
-		    'maps' => ['URL'],
116
-		    'maximumAttendeeCapacity' => ['Integer'],
117
-		    'name' => ['Text'],
118
-		    'openingHours' => ['Text'],
119
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
120
-		    'photo' => ['Photograph', 'ImageObject'],
121
-		    'photos' => ['ImageObject', 'Photograph'],
122
-		    'potentialAction' => ['Action'],
123
-		    'publicAccess' => ['Boolean'],
124
-		    'review' => ['Review'],
125
-		    'reviews' => ['Review'],
126
-		    'sameAs' => ['URL'],
127
-		    'slogan' => ['Text'],
128
-		    'smokingAllowed' => ['Boolean'],
129
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
130
-		    'subjectOf' => ['Event', 'CreativeWork'],
131
-		    'telephone' => ['Text'],
132
-		    'tourBookingPage' => ['URL'],
133
-		    'url' => ['URL']
134
-		];
135
-	}
136
-
137
-
138
-	/**
139
-	 * @inheritdoc
140
-	 */
141
-	public function getSchemaPropertyDescriptions(): array
142
-	{
143
-		return [
144
-		    '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. ',
145
-		    '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.',
146
-		    'address' => 'Physical address of the item.',
147
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
148
-		    'alternateName' => 'An alias for the item.',
149
-		    '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.',
150
-		    '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.       ',
151
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
152
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
153
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
154
-		    'description' => 'A description of the item.',
155
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
156
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
157
-		    'events' => 'Upcoming or past events associated with this place or organization.',
158
-		    'faxNumber' => 'The fax number.',
159
-		    'geo' => 'The geo coordinates of the place.',
160
-		    '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).',
161
-		    '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).',
162
-		    '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).',
163
-		    '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).',
164
-		    '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).)',
165
-		    '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).',
166
-		    '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).',
167
-		    '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).',
168
-		    '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).)',
169
-		    '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).',
170
-		    '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.',
171
-		    '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.',
172
-		    'hasMap' => 'A URL to a map of the place.',
173
-		    '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.         ',
174
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
175
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
176
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
177
-		    '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.',
178
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
179
-		    'logo' => 'An associated logo.',
180
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
181
-		    '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.',
182
-		    'map' => 'A URL to a map of the place.',
183
-		    'maps' => 'A URL to a map of the place.',
184
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
185
-		    'name' => 'The name of the item.',
186
-		    '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>.',
187
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
188
-		    'photo' => 'A photograph of this place.',
189
-		    'photos' => 'Photographs of this place.',
190
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
191
-		    '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',
192
-		    'review' => 'A review of the item.',
193
-		    'reviews' => 'Review of the item.',
194
-		    '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.',
195
-		    'slogan' => 'A slogan or motto associated with the item.',
196
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
197
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
198
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
199
-		    'telephone' => 'The telephone number.',
200
-		    '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.',
201
-		    'url' => 'URL of the item.'
202
-		];
203
-	}
204
-
205
-
206
-	/**
207
-	 * @inheritdoc
208
-	 */
209
-	public function getGoogleRequiredSchema(): array
210
-	{
211
-		return ['description', 'name'];
212
-	}
213
-
214
-
215
-	/**
216
-	 * @inheritdoc
217
-	 */
218
-	public function getGoogleRecommendedSchema(): array
219
-	{
220
-		return ['image', 'url'];
221
-	}
222
-
223
-
224
-	/**
225
-	 * @inheritdoc
226
-	 */
227
-	public function defineRules(): array
228
-	{
229
-		$rules = parent::defineRules();
230
-		    $rules = array_merge($rules, [
231
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
232
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
233
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
234
-		    ]);
235
-
236
-		    return $rules;
237
-	}
27
+    use RVParkTrait;
28
+    use CivicStructureTrait;
29
+    use PlaceTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'RVPark';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/RVPark';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'CivicStructure';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A place offering space for "Recreational Vehicles", Caravans, mobile homes and the like.';
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
+            'additionalProperty' => ['PropertyValue'],
77
+            'additionalType' => ['URL'],
78
+            'address' => ['Text', 'PostalAddress'],
79
+            'aggregateRating' => ['AggregateRating'],
80
+            'alternateName' => ['Text'],
81
+            'amenityFeature' => ['LocationFeatureSpecification'],
82
+            'branchCode' => ['Text'],
83
+            'containedIn' => ['Place'],
84
+            'containedInPlace' => ['Place'],
85
+            'containsPlace' => ['Place'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'event' => ['Event'],
89
+            'events' => ['Event'],
90
+            'faxNumber' => ['Text'],
91
+            'geo' => ['GeoCoordinates', 'GeoShape'],
92
+            'geoContains' => ['Place', 'GeospatialGeometry'],
93
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
94
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
95
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
96
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
97
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
98
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
99
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
100
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
101
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
102
+            'globalLocationNumber' => ['Text'],
103
+            'hasDriveThroughService' => ['Boolean'],
104
+            'hasMap' => ['URL', 'Map'],
105
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
106
+            'image' => ['URL', 'ImageObject'],
107
+            'isAccessibleForFree' => ['Boolean'],
108
+            'isicV4' => ['Text'],
109
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
110
+            'latitude' => ['Number', 'Text'],
111
+            'logo' => ['ImageObject', 'URL'],
112
+            'longitude' => ['Text', 'Number'],
113
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
114
+            'map' => ['URL'],
115
+            'maps' => ['URL'],
116
+            'maximumAttendeeCapacity' => ['Integer'],
117
+            'name' => ['Text'],
118
+            'openingHours' => ['Text'],
119
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
120
+            'photo' => ['Photograph', 'ImageObject'],
121
+            'photos' => ['ImageObject', 'Photograph'],
122
+            'potentialAction' => ['Action'],
123
+            'publicAccess' => ['Boolean'],
124
+            'review' => ['Review'],
125
+            'reviews' => ['Review'],
126
+            'sameAs' => ['URL'],
127
+            'slogan' => ['Text'],
128
+            'smokingAllowed' => ['Boolean'],
129
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
130
+            'subjectOf' => ['Event', 'CreativeWork'],
131
+            'telephone' => ['Text'],
132
+            'tourBookingPage' => ['URL'],
133
+            'url' => ['URL']
134
+        ];
135
+    }
136
+
137
+
138
+    /**
139
+     * @inheritdoc
140
+     */
141
+    public function getSchemaPropertyDescriptions(): array
142
+    {
143
+        return [
144
+            '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. ',
145
+            '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.',
146
+            'address' => 'Physical address of the item.',
147
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
148
+            'alternateName' => 'An alias for the item.',
149
+            '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.',
150
+            '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.       ',
151
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
152
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
153
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
154
+            'description' => 'A description of the item.',
155
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
156
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
157
+            'events' => 'Upcoming or past events associated with this place or organization.',
158
+            'faxNumber' => 'The fax number.',
159
+            'geo' => 'The geo coordinates of the place.',
160
+            '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).',
161
+            '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).',
162
+            '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).',
163
+            '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).',
164
+            '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).)',
165
+            '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).',
166
+            '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).',
167
+            '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).',
168
+            '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).)',
169
+            '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).',
170
+            '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.',
171
+            '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.',
172
+            'hasMap' => 'A URL to a map of the place.',
173
+            '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.         ',
174
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
175
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
176
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
177
+            '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.',
178
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
179
+            'logo' => 'An associated logo.',
180
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
181
+            '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.',
182
+            'map' => 'A URL to a map of the place.',
183
+            'maps' => 'A URL to a map of the place.',
184
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
185
+            'name' => 'The name of the item.',
186
+            '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>.',
187
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
188
+            'photo' => 'A photograph of this place.',
189
+            'photos' => 'Photographs of this place.',
190
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
191
+            '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',
192
+            'review' => 'A review of the item.',
193
+            'reviews' => 'Review of the item.',
194
+            '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.',
195
+            'slogan' => 'A slogan or motto associated with the item.',
196
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
197
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
198
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
199
+            'telephone' => 'The telephone number.',
200
+            '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.',
201
+            'url' => 'URL of the item.'
202
+        ];
203
+    }
204
+
205
+
206
+    /**
207
+     * @inheritdoc
208
+     */
209
+    public function getGoogleRequiredSchema(): array
210
+    {
211
+        return ['description', 'name'];
212
+    }
213
+
214
+
215
+    /**
216
+     * @inheritdoc
217
+     */
218
+    public function getGoogleRecommendedSchema(): array
219
+    {
220
+        return ['image', 'url'];
221
+    }
222
+
223
+
224
+    /**
225
+     * @inheritdoc
226
+     */
227
+    public function defineRules(): array
228
+    {
229
+        $rules = parent::defineRules();
230
+            $rules = array_merge($rules, [
231
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
232
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
233
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
234
+            ]);
235
+
236
+            return $rules;
237
+    }
238 238
 }
Please login to merge, or discard this patch.
src/models/jsonld/TrainReservation.php 1 patch
Indentation   +145 added lines, -145 removed lines patch added patch discarded remove patch
@@ -26,149 +26,149 @@
 block discarded – undo
26 26
  */
27 27
 class TrainReservation extends MetaJsonLd implements TrainReservationInterface, ReservationInterface, IntangibleInterface, ThingInterface
28 28
 {
29
-	use TrainReservationTrait;
30
-	use ReservationTrait;
31
-	use IntangibleTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'TrainReservation';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/TrainReservation';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'Reservation';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'A reservation for train travel.\n\nNote: This type is for information about actual reservations, e.g. in confirmation emails or HTML pages with individual confirmations of reservations. For offers of tickets, use [[Offer]].';
61
-
62
-
63
-	/**
64
-	 * @inheritdoc
65
-	 */
66
-	public function getSchemaPropertyNames(): array
67
-	{
68
-		return array_keys($this->getSchemaPropertyExpectedTypes());
69
-	}
70
-
71
-
72
-	/**
73
-	 * @inheritdoc
74
-	 */
75
-	public function getSchemaPropertyExpectedTypes(): array
76
-	{
77
-		return [
78
-		    'additionalType' => ['URL'],
79
-		    'alternateName' => ['Text'],
80
-		    'bookingAgent' => ['Organization', 'Person'],
81
-		    'bookingTime' => ['DateTime'],
82
-		    'broker' => ['Person', 'Organization'],
83
-		    'description' => ['Text'],
84
-		    'disambiguatingDescription' => ['Text'],
85
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
86
-		    'image' => ['URL', 'ImageObject'],
87
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
88
-		    'modifiedTime' => ['DateTime'],
89
-		    'name' => ['Text'],
90
-		    'potentialAction' => ['Action'],
91
-		    'priceCurrency' => ['Text'],
92
-		    'programMembershipUsed' => ['ProgramMembership'],
93
-		    'provider' => ['Organization', 'Person'],
94
-		    'reservationFor' => ['Thing'],
95
-		    'reservationId' => ['Text'],
96
-		    'reservationStatus' => ['ReservationStatusType'],
97
-		    'reservedTicket' => ['Ticket'],
98
-		    'sameAs' => ['URL'],
99
-		    'subjectOf' => ['Event', 'CreativeWork'],
100
-		    'totalPrice' => ['Number', 'PriceSpecification', 'Text'],
101
-		    'underName' => ['Organization', 'Person'],
102
-		    'url' => ['URL']
103
-		];
104
-	}
105
-
106
-
107
-	/**
108
-	 * @inheritdoc
109
-	 */
110
-	public function getSchemaPropertyDescriptions(): array
111
-	{
112
-		return [
113
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
114
-		    'alternateName' => 'An alias for the item.',
115
-		    'bookingAgent' => '\'bookingAgent\' is an out-dated term indicating a \'broker\' that serves as a booking agent.',
116
-		    'bookingTime' => 'The date and time the reservation was booked.',
117
-		    '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.',
118
-		    'description' => 'A description of the item.',
119
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
120
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
121
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
123
-		    'modifiedTime' => 'The date and time the reservation was modified.',
124
-		    'name' => 'The name of the item.',
125
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
126
-		    '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".',
127
-		    'programMembershipUsed' => 'Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.',
128
-		    '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.',
129
-		    'reservationFor' => 'The thing -- flight, event, restaurant, etc. being reserved.',
130
-		    'reservationId' => 'A unique identifier for the reservation.',
131
-		    'reservationStatus' => 'The current status of the reservation.',
132
-		    'reservedTicket' => 'A ticket associated with the reservation.',
133
-		    '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.',
134
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
135
-		    'totalPrice' => 'The total price for the reservation or ticket, including applicable taxes, shipping, etc.  Usage guidelines:  * Use values from 0123456789 (Unicode \'DIGIT ZERO\' (U+0030) to \'DIGIT NINE\' (U+0039)) rather than superficially similar Unicode symbols. * Use \'.\' (Unicode \'FULL STOP\' (U+002E)) rather than \',\' to indicate a decimal point. Avoid using these symbols as a readability separator.',
136
-		    'underName' => 'The person or organization the reservation or ticket is for.',
137
-		    'url' => 'URL of the item.'
138
-		];
139
-	}
140
-
141
-
142
-	/**
143
-	 * @inheritdoc
144
-	 */
145
-	public function getGoogleRequiredSchema(): array
146
-	{
147
-		return ['description', 'name'];
148
-	}
149
-
150
-
151
-	/**
152
-	 * @inheritdoc
153
-	 */
154
-	public function getGoogleRecommendedSchema(): array
155
-	{
156
-		return ['image', 'url'];
157
-	}
158
-
159
-
160
-	/**
161
-	 * @inheritdoc
162
-	 */
163
-	public function defineRules(): array
164
-	{
165
-		$rules = parent::defineRules();
166
-		    $rules = array_merge($rules, [
167
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
168
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
169
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
170
-		    ]);
171
-
172
-		    return $rules;
173
-	}
29
+    use TrainReservationTrait;
30
+    use ReservationTrait;
31
+    use IntangibleTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'TrainReservation';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/TrainReservation';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'Reservation';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'A reservation for train travel.\n\nNote: This type is for information about actual reservations, e.g. in confirmation emails or HTML pages with individual confirmations of reservations. For offers of tickets, use [[Offer]].';
61
+
62
+
63
+    /**
64
+     * @inheritdoc
65
+     */
66
+    public function getSchemaPropertyNames(): array
67
+    {
68
+        return array_keys($this->getSchemaPropertyExpectedTypes());
69
+    }
70
+
71
+
72
+    /**
73
+     * @inheritdoc
74
+     */
75
+    public function getSchemaPropertyExpectedTypes(): array
76
+    {
77
+        return [
78
+            'additionalType' => ['URL'],
79
+            'alternateName' => ['Text'],
80
+            'bookingAgent' => ['Organization', 'Person'],
81
+            'bookingTime' => ['DateTime'],
82
+            'broker' => ['Person', 'Organization'],
83
+            'description' => ['Text'],
84
+            'disambiguatingDescription' => ['Text'],
85
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
86
+            'image' => ['URL', 'ImageObject'],
87
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
88
+            'modifiedTime' => ['DateTime'],
89
+            'name' => ['Text'],
90
+            'potentialAction' => ['Action'],
91
+            'priceCurrency' => ['Text'],
92
+            'programMembershipUsed' => ['ProgramMembership'],
93
+            'provider' => ['Organization', 'Person'],
94
+            'reservationFor' => ['Thing'],
95
+            'reservationId' => ['Text'],
96
+            'reservationStatus' => ['ReservationStatusType'],
97
+            'reservedTicket' => ['Ticket'],
98
+            'sameAs' => ['URL'],
99
+            'subjectOf' => ['Event', 'CreativeWork'],
100
+            'totalPrice' => ['Number', 'PriceSpecification', 'Text'],
101
+            'underName' => ['Organization', 'Person'],
102
+            'url' => ['URL']
103
+        ];
104
+    }
105
+
106
+
107
+    /**
108
+     * @inheritdoc
109
+     */
110
+    public function getSchemaPropertyDescriptions(): array
111
+    {
112
+        return [
113
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
114
+            'alternateName' => 'An alias for the item.',
115
+            'bookingAgent' => '\'bookingAgent\' is an out-dated term indicating a \'broker\' that serves as a booking agent.',
116
+            'bookingTime' => 'The date and time the reservation was booked.',
117
+            '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.',
118
+            'description' => 'A description of the item.',
119
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
120
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
121
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
123
+            'modifiedTime' => 'The date and time the reservation was modified.',
124
+            'name' => 'The name of the item.',
125
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
126
+            '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".',
127
+            'programMembershipUsed' => 'Any membership in a frequent flyer, hotel loyalty program, etc. being applied to the reservation.',
128
+            '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.',
129
+            'reservationFor' => 'The thing -- flight, event, restaurant, etc. being reserved.',
130
+            'reservationId' => 'A unique identifier for the reservation.',
131
+            'reservationStatus' => 'The current status of the reservation.',
132
+            'reservedTicket' => 'A ticket associated with the reservation.',
133
+            '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.',
134
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
135
+            'totalPrice' => 'The total price for the reservation or ticket, including applicable taxes, shipping, etc.  Usage guidelines:  * Use values from 0123456789 (Unicode \'DIGIT ZERO\' (U+0030) to \'DIGIT NINE\' (U+0039)) rather than superficially similar Unicode symbols. * Use \'.\' (Unicode \'FULL STOP\' (U+002E)) rather than \',\' to indicate a decimal point. Avoid using these symbols as a readability separator.',
136
+            'underName' => 'The person or organization the reservation or ticket is for.',
137
+            'url' => 'URL of the item.'
138
+        ];
139
+    }
140
+
141
+
142
+    /**
143
+     * @inheritdoc
144
+     */
145
+    public function getGoogleRequiredSchema(): array
146
+    {
147
+        return ['description', 'name'];
148
+    }
149
+
150
+
151
+    /**
152
+     * @inheritdoc
153
+     */
154
+    public function getGoogleRecommendedSchema(): array
155
+    {
156
+        return ['image', 'url'];
157
+    }
158
+
159
+
160
+    /**
161
+     * @inheritdoc
162
+     */
163
+    public function defineRules(): array
164
+    {
165
+        $rules = parent::defineRules();
166
+            $rules = array_merge($rules, [
167
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
168
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
169
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
170
+            ]);
171
+
172
+            return $rules;
173
+    }
174 174
 }
Please login to merge, or discard this patch.
src/models/jsonld/BodyMeasurementFoot.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -24,127 +24,127 @@
 block discarded – undo
24 24
  */
25 25
 class BodyMeasurementFoot extends MetaJsonLd implements BodyMeasurementFootInterface, BodyMeasurementTypeEnumerationInterface, MeasurementTypeEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use BodyMeasurementFootTrait;
28
-	use BodyMeasurementTypeEnumerationTrait;
29
-	use MeasurementTypeEnumerationTrait;
30
-	use EnumerationTrait;
31
-	use IntangibleTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'BodyMeasurementFoot';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/BodyMeasurementFoot';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'BodyMeasurementTypeEnumeration';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'Foot length (measured between end of the most prominent toe and the most prominent part of the heel). Used, for example, to measure socks.';
61
-
62
-
63
-	/**
64
-	 * @inheritdoc
65
-	 */
66
-	public function getSchemaPropertyNames(): array
67
-	{
68
-		return array_keys($this->getSchemaPropertyExpectedTypes());
69
-	}
70
-
71
-
72
-	/**
73
-	 * @inheritdoc
74
-	 */
75
-	public function getSchemaPropertyExpectedTypes(): array
76
-	{
77
-		return [
78
-		    'additionalType' => ['URL'],
79
-		    'alternateName' => ['Text'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
83
-		    'image' => ['URL', 'ImageObject'],
84
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
85
-		    'name' => ['Text'],
86
-		    'potentialAction' => ['Action'],
87
-		    'sameAs' => ['URL'],
88
-		    'subjectOf' => ['Event', 'CreativeWork'],
89
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
90
-		    'url' => ['URL']
91
-		];
92
-	}
93
-
94
-
95
-	/**
96
-	 * @inheritdoc
97
-	 */
98
-	public function getSchemaPropertyDescriptions(): array
99
-	{
100
-		return [
101
-		    '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.',
102
-		    'alternateName' => 'An alias for the item.',
103
-		    'description' => 'A description of the item.',
104
-		    '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.',
105
-		    '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.         ',
106
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
107
-		    '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.',
108
-		    'name' => 'The name of the item.',
109
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
110
-		    '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.',
111
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
112
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
113
-		    'url' => 'URL of the item.'
114
-		];
115
-	}
116
-
117
-
118
-	/**
119
-	 * @inheritdoc
120
-	 */
121
-	public function getGoogleRequiredSchema(): array
122
-	{
123
-		return ['description', 'name'];
124
-	}
125
-
126
-
127
-	/**
128
-	 * @inheritdoc
129
-	 */
130
-	public function getGoogleRecommendedSchema(): array
131
-	{
132
-		return ['image', 'url'];
133
-	}
134
-
135
-
136
-	/**
137
-	 * @inheritdoc
138
-	 */
139
-	public function defineRules(): array
140
-	{
141
-		$rules = parent::defineRules();
142
-		    $rules = array_merge($rules, [
143
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
144
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
145
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
146
-		    ]);
147
-
148
-		    return $rules;
149
-	}
27
+    use BodyMeasurementFootTrait;
28
+    use BodyMeasurementTypeEnumerationTrait;
29
+    use MeasurementTypeEnumerationTrait;
30
+    use EnumerationTrait;
31
+    use IntangibleTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'BodyMeasurementFoot';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/BodyMeasurementFoot';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'BodyMeasurementTypeEnumeration';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'Foot length (measured between end of the most prominent toe and the most prominent part of the heel). Used, for example, to measure socks.';
61
+
62
+
63
+    /**
64
+     * @inheritdoc
65
+     */
66
+    public function getSchemaPropertyNames(): array
67
+    {
68
+        return array_keys($this->getSchemaPropertyExpectedTypes());
69
+    }
70
+
71
+
72
+    /**
73
+     * @inheritdoc
74
+     */
75
+    public function getSchemaPropertyExpectedTypes(): array
76
+    {
77
+        return [
78
+            'additionalType' => ['URL'],
79
+            'alternateName' => ['Text'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
83
+            'image' => ['URL', 'ImageObject'],
84
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
85
+            'name' => ['Text'],
86
+            'potentialAction' => ['Action'],
87
+            'sameAs' => ['URL'],
88
+            'subjectOf' => ['Event', 'CreativeWork'],
89
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
90
+            'url' => ['URL']
91
+        ];
92
+    }
93
+
94
+
95
+    /**
96
+     * @inheritdoc
97
+     */
98
+    public function getSchemaPropertyDescriptions(): array
99
+    {
100
+        return [
101
+            '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.',
102
+            'alternateName' => 'An alias for the item.',
103
+            'description' => 'A description of the item.',
104
+            '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.',
105
+            '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.         ',
106
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
107
+            '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.',
108
+            'name' => 'The name of the item.',
109
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
110
+            '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.',
111
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
112
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
113
+            'url' => 'URL of the item.'
114
+        ];
115
+    }
116
+
117
+
118
+    /**
119
+     * @inheritdoc
120
+     */
121
+    public function getGoogleRequiredSchema(): array
122
+    {
123
+        return ['description', 'name'];
124
+    }
125
+
126
+
127
+    /**
128
+     * @inheritdoc
129
+     */
130
+    public function getGoogleRecommendedSchema(): array
131
+    {
132
+        return ['image', 'url'];
133
+    }
134
+
135
+
136
+    /**
137
+     * @inheritdoc
138
+     */
139
+    public function defineRules(): array
140
+    {
141
+        $rules = parent::defineRules();
142
+            $rules = array_merge($rules, [
143
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
144
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
145
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
146
+            ]);
147
+
148
+            return $rules;
149
+    }
150 150
 }
Please login to merge, or discard this patch.