Passed
Push — develop-v4 ( 7fca76...871448 )
by Andrew
18:23 queued 08:56
created
src/models/jsonld/VitalSign.php 1 patch
Indentation   +173 added lines, -173 removed lines patch added patch discarded remove patch
@@ -24,177 +24,177 @@
 block discarded – undo
24 24
  */
25 25
 class VitalSign extends MetaJsonLd implements VitalSignInterface, MedicalSignInterface, MedicalSignOrSymptomInterface, MedicalConditionInterface, MedicalEntityInterface, ThingInterface
26 26
 {
27
-	use VitalSignTrait;
28
-	use MedicalSignTrait;
29
-	use MedicalSignOrSymptomTrait;
30
-	use MedicalConditionTrait;
31
-	use MedicalEntityTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static string $schemaTypeName = 'VitalSign';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static string $schemaTypeScope = 'https://schema.org/VitalSign';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static string $schemaTypeExtends = 'MedicalSign';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static string $schemaTypeDescription = 'Vital signs are measures of various physiological functions in order to assess the most basic body functions.';
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
-		    'associatedAnatomy' => ['SuperficialAnatomy', 'AnatomicalSystem', 'AnatomicalStructure'],
81
-		    'code' => ['MedicalCode'],
82
-		    'description' => ['Text'],
83
-		    'differentialDiagnosis' => ['DDxElement'],
84
-		    'disambiguatingDescription' => ['Text'],
85
-		    'drug' => ['Drug'],
86
-		    'epidemiology' => ['Text'],
87
-		    'expectedPrognosis' => ['Text'],
88
-		    'funding' => ['Grant'],
89
-		    'guideline' => ['MedicalGuideline'],
90
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
91
-		    'identifyingExam' => ['PhysicalExam'],
92
-		    'identifyingTest' => ['MedicalTest'],
93
-		    'image' => ['URL', 'ImageObject'],
94
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
95
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
-		    'medicineSystem' => ['MedicineSystem'],
97
-		    'name' => ['Text'],
98
-		    'naturalProgression' => ['Text'],
99
-		    'pathophysiology' => ['Text'],
100
-		    'possibleComplication' => ['Text'],
101
-		    'possibleTreatment' => ['MedicalTherapy'],
102
-		    'potentialAction' => ['Action'],
103
-		    'primaryPrevention' => ['MedicalTherapy'],
104
-		    'recognizingAuthority' => ['Organization'],
105
-		    'relevantSpecialty' => ['MedicalSpecialty'],
106
-		    'riskFactor' => ['MedicalRiskFactor'],
107
-		    'sameAs' => ['URL'],
108
-		    'secondaryPrevention' => ['MedicalTherapy'],
109
-		    'signOrSymptom' => ['MedicalSignOrSymptom'],
110
-		    'stage' => ['MedicalConditionStage'],
111
-		    'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
112
-		    'study' => ['MedicalStudy'],
113
-		    'subjectOf' => ['Event', 'CreativeWork'],
114
-		    'typicalTest' => ['MedicalTest'],
115
-		    'url' => ['URL']
116
-		];
117
-	}
118
-
119
-
120
-	/**
121
-	 * @inheritdoc
122
-	 */
123
-	public function getSchemaPropertyDescriptions(): array
124
-	{
125
-		return [
126
-		    '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.',
127
-		    'alternateName' => 'An alias for the item.',
128
-		    'associatedAnatomy' => 'The anatomy of the underlying organ system or structures associated with this entity.',
129
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
130
-		    'description' => 'A description of the item.',
131
-		    'differentialDiagnosis' => 'One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient.',
132
-		    '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.',
133
-		    'drug' => 'Specifying a drug or medicine used in a medication procedure.',
134
-		    'epidemiology' => 'The characteristics of associated patients, such as age, gender, race etc.',
135
-		    'expectedPrognosis' => 'The likely outcome in either the short term or long term of the medical condition.',
136
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
137
-		    'guideline' => 'A medical guideline related to this entity.',
138
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
139
-		    'identifyingExam' => 'A physical examination that can identify this sign.',
140
-		    'identifyingTest' => 'A diagnostic test that can identify this sign.',
141
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
142
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
143
-		    '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.',
144
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
145
-		    'name' => 'The name of the item.',
146
-		    'naturalProgression' => 'The expected progression of the condition if it is not treated and allowed to progress naturally.',
147
-		    'pathophysiology' => 'Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.',
148
-		    'possibleComplication' => 'A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.',
149
-		    'possibleTreatment' => 'A possible treatment to address this condition, sign or symptom.',
150
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
151
-		    'primaryPrevention' => 'A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.',
152
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
153
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
154
-		    'riskFactor' => 'A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age,  coexisting condition.',
155
-		    '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.',
156
-		    'secondaryPrevention' => 'A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.',
157
-		    'signOrSymptom' => 'A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.',
158
-		    'stage' => 'The stage of the condition, if applicable.',
159
-		    'status' => 'The status of the study (enumerated).',
160
-		    'study' => 'A medical study or trial related to this entity.',
161
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
162
-		    'typicalTest' => 'A medical test typically performed given this condition.',
163
-		    'url' => 'URL of the item.'
164
-		];
165
-	}
166
-
167
-
168
-	/**
169
-	 * @inheritdoc
170
-	 */
171
-	public function getGoogleRequiredSchema(): array
172
-	{
173
-		return ['description', 'name'];
174
-	}
175
-
176
-
177
-	/**
178
-	 * @inheritdoc
179
-	 */
180
-	public function getGoogleRecommendedSchema(): array
181
-	{
182
-		return ['image', 'url'];
183
-	}
184
-
185
-
186
-	/**
187
-	 * @inheritdoc
188
-	 */
189
-	public function defineRules(): array
190
-	{
191
-		$rules = parent::defineRules();
192
-		    $rules = array_merge($rules, [
193
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
194
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
195
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
196
-		    ]);
197
-
198
-		    return $rules;
199
-	}
27
+    use VitalSignTrait;
28
+    use MedicalSignTrait;
29
+    use MedicalSignOrSymptomTrait;
30
+    use MedicalConditionTrait;
31
+    use MedicalEntityTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static string $schemaTypeName = 'VitalSign';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static string $schemaTypeScope = 'https://schema.org/VitalSign';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static string $schemaTypeExtends = 'MedicalSign';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static string $schemaTypeDescription = 'Vital signs are measures of various physiological functions in order to assess the most basic body functions.';
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
+            'associatedAnatomy' => ['SuperficialAnatomy', 'AnatomicalSystem', 'AnatomicalStructure'],
81
+            'code' => ['MedicalCode'],
82
+            'description' => ['Text'],
83
+            'differentialDiagnosis' => ['DDxElement'],
84
+            'disambiguatingDescription' => ['Text'],
85
+            'drug' => ['Drug'],
86
+            'epidemiology' => ['Text'],
87
+            'expectedPrognosis' => ['Text'],
88
+            'funding' => ['Grant'],
89
+            'guideline' => ['MedicalGuideline'],
90
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
91
+            'identifyingExam' => ['PhysicalExam'],
92
+            'identifyingTest' => ['MedicalTest'],
93
+            'image' => ['URL', 'ImageObject'],
94
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
95
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
+            'medicineSystem' => ['MedicineSystem'],
97
+            'name' => ['Text'],
98
+            'naturalProgression' => ['Text'],
99
+            'pathophysiology' => ['Text'],
100
+            'possibleComplication' => ['Text'],
101
+            'possibleTreatment' => ['MedicalTherapy'],
102
+            'potentialAction' => ['Action'],
103
+            'primaryPrevention' => ['MedicalTherapy'],
104
+            'recognizingAuthority' => ['Organization'],
105
+            'relevantSpecialty' => ['MedicalSpecialty'],
106
+            'riskFactor' => ['MedicalRiskFactor'],
107
+            'sameAs' => ['URL'],
108
+            'secondaryPrevention' => ['MedicalTherapy'],
109
+            'signOrSymptom' => ['MedicalSignOrSymptom'],
110
+            'stage' => ['MedicalConditionStage'],
111
+            'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
112
+            'study' => ['MedicalStudy'],
113
+            'subjectOf' => ['Event', 'CreativeWork'],
114
+            'typicalTest' => ['MedicalTest'],
115
+            'url' => ['URL']
116
+        ];
117
+    }
118
+
119
+
120
+    /**
121
+     * @inheritdoc
122
+     */
123
+    public function getSchemaPropertyDescriptions(): array
124
+    {
125
+        return [
126
+            '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.',
127
+            'alternateName' => 'An alias for the item.',
128
+            'associatedAnatomy' => 'The anatomy of the underlying organ system or structures associated with this entity.',
129
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
130
+            'description' => 'A description of the item.',
131
+            'differentialDiagnosis' => 'One of a set of differential diagnoses for the condition. Specifically, a closely-related or competing diagnosis typically considered later in the cognitive process whereby this medical condition is distinguished from others most likely responsible for a similar collection of signs and symptoms to reach the most parsimonious diagnosis or diagnoses in a patient.',
132
+            '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.',
133
+            'drug' => 'Specifying a drug or medicine used in a medication procedure.',
134
+            'epidemiology' => 'The characteristics of associated patients, such as age, gender, race etc.',
135
+            'expectedPrognosis' => 'The likely outcome in either the short term or long term of the medical condition.',
136
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
137
+            'guideline' => 'A medical guideline related to this entity.',
138
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
139
+            'identifyingExam' => 'A physical examination that can identify this sign.',
140
+            'identifyingTest' => 'A diagnostic test that can identify this sign.',
141
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
142
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
143
+            '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.',
144
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
145
+            'name' => 'The name of the item.',
146
+            'naturalProgression' => 'The expected progression of the condition if it is not treated and allowed to progress naturally.',
147
+            'pathophysiology' => 'Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.',
148
+            'possibleComplication' => 'A possible unexpected and unfavorable evolution of a medical condition. Complications may include worsening of the signs or symptoms of the disease, extension of the condition to other organ systems, etc.',
149
+            'possibleTreatment' => 'A possible treatment to address this condition, sign or symptom.',
150
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
151
+            'primaryPrevention' => 'A preventative therapy used to prevent an initial occurrence of the medical condition, such as vaccination.',
152
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
153
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
154
+            'riskFactor' => 'A modifiable or non-modifiable factor that increases the risk of a patient contracting this condition, e.g. age,  coexisting condition.',
155
+            '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.',
156
+            'secondaryPrevention' => 'A preventative therapy used to prevent reoccurrence of the medical condition after an initial episode of the condition.',
157
+            'signOrSymptom' => 'A sign or symptom of this condition. Signs are objective or physically observable manifestations of the medical condition while symptoms are the subjective experience of the medical condition.',
158
+            'stage' => 'The stage of the condition, if applicable.',
159
+            'status' => 'The status of the study (enumerated).',
160
+            'study' => 'A medical study or trial related to this entity.',
161
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
162
+            'typicalTest' => 'A medical test typically performed given this condition.',
163
+            'url' => 'URL of the item.'
164
+        ];
165
+    }
166
+
167
+
168
+    /**
169
+     * @inheritdoc
170
+     */
171
+    public function getGoogleRequiredSchema(): array
172
+    {
173
+        return ['description', 'name'];
174
+    }
175
+
176
+
177
+    /**
178
+     * @inheritdoc
179
+     */
180
+    public function getGoogleRecommendedSchema(): array
181
+    {
182
+        return ['image', 'url'];
183
+    }
184
+
185
+
186
+    /**
187
+     * @inheritdoc
188
+     */
189
+    public function defineRules(): array
190
+    {
191
+        $rules = parent::defineRules();
192
+            $rules = array_merge($rules, [
193
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
194
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
195
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
196
+            ]);
197
+
198
+            return $rules;
199
+    }
200 200
 }
Please login to merge, or discard this patch.
src/models/jsonld/LeisureTimeActivity.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -24,126 +24,126 @@
 block discarded – undo
24 24
  */
25 25
 class LeisureTimeActivity extends MetaJsonLd implements LeisureTimeActivityInterface, PhysicalActivityCategoryInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use LeisureTimeActivityTrait;
28
-	use PhysicalActivityCategoryTrait;
29
-	use EnumerationTrait;
30
-	use IntangibleTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static string $schemaTypeName = 'LeisureTimeActivity';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static string $schemaTypeScope = 'https://schema.org/LeisureTimeActivity';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static string $schemaTypeExtends = 'PhysicalActivityCategory';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static string $schemaTypeDescription = 'Any physical activity engaged in for recreational purposes. Examples may include ballroom dancing, roller skating, canoeing, fishing, etc.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
27
+    use LeisureTimeActivityTrait;
28
+    use PhysicalActivityCategoryTrait;
29
+    use EnumerationTrait;
30
+    use IntangibleTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static string $schemaTypeName = 'LeisureTimeActivity';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static string $schemaTypeScope = 'https://schema.org/LeisureTimeActivity';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static string $schemaTypeExtends = 'PhysicalActivityCategory';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static string $schemaTypeDescription = 'Any physical activity engaged in for recreational purposes. Examples may include ballroom dancing, roller skating, canoeing, fishing, etc.';
60
+
61
+
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69
+
70
+
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'additionalType' => ['URL'],
78
+            'alternateName' => ['Text'],
79
+            'description' => ['Text'],
80
+            'disambiguatingDescription' => ['Text'],
81
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
82
+            'image' => ['URL', 'ImageObject'],
83
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
+            'name' => ['Text'],
85
+            'potentialAction' => ['Action'],
86
+            'sameAs' => ['URL'],
87
+            'subjectOf' => ['Event', 'CreativeWork'],
88
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
+            'url' => ['URL']
90
+        ];
91
+    }
92
+
93
+
94
+    /**
95
+     * @inheritdoc
96
+     */
97
+    public function getSchemaPropertyDescriptions(): array
98
+    {
99
+        return [
100
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
+            'alternateName' => 'An alias for the item.',
102
+            'description' => 'A description of the item.',
103
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
+            'name' => 'The name of the item.',
108
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
+            'url' => 'URL of the item.'
113
+        ];
114
+    }
115
+
116
+
117
+    /**
118
+     * @inheritdoc
119
+     */
120
+    public function getGoogleRequiredSchema(): array
121
+    {
122
+        return ['description', 'name'];
123
+    }
124
+
125
+
126
+    /**
127
+     * @inheritdoc
128
+     */
129
+    public function getGoogleRecommendedSchema(): array
130
+    {
131
+        return ['image', 'url'];
132
+    }
133
+
134
+
135
+    /**
136
+     * @inheritdoc
137
+     */
138
+    public function defineRules(): array
139
+    {
140
+        $rules = parent::defineRules();
141
+            $rules = array_merge($rules, [
142
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
+            ]);
146
+
147
+            return $rules;
148
+    }
149 149
 }
Please login to merge, or discard this patch.
src/models/jsonld/CurrencyConversionService.php 1 patch
Indentation   +174 added lines, -174 removed lines patch added patch discarded remove patch
@@ -23,178 +23,178 @@
 block discarded – undo
23 23
  */
24 24
 class CurrencyConversionService extends MetaJsonLd implements CurrencyConversionServiceInterface, FinancialProductInterface, ServiceInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use CurrencyConversionServiceTrait;
27
-	use FinancialProductTrait;
28
-	use ServiceTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static string $schemaTypeName = 'CurrencyConversionService';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static string $schemaTypeScope = 'https://schema.org/CurrencyConversionService';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static string $schemaTypeExtends = 'FinancialProduct';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static string $schemaTypeDescription = 'A service to convert funds from one currency to another currency.';
59
-
60
-
61
-	/**
62
-	 * @inheritdoc
63
-	 */
64
-	public function getSchemaPropertyNames(): array
65
-	{
66
-		return array_keys($this->getSchemaPropertyExpectedTypes());
67
-	}
68
-
69
-
70
-	/**
71
-	 * @inheritdoc
72
-	 */
73
-	public function getSchemaPropertyExpectedTypes(): array
74
-	{
75
-		return [
76
-		    'additionalType' => ['URL'],
77
-		    'aggregateRating' => ['AggregateRating'],
78
-		    'alternateName' => ['Text'],
79
-		    'annualPercentageRate' => ['Number', 'QuantitativeValue'],
80
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
81
-		    'audience' => ['Audience'],
82
-		    'availableChannel' => ['ServiceChannel'],
83
-		    'award' => ['Text'],
84
-		    'brand' => ['Brand', 'Organization'],
85
-		    'broker' => ['Person', 'Organization'],
86
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
87
-		    'description' => ['Text'],
88
-		    'disambiguatingDescription' => ['Text'],
89
-		    'feesAndCommissionsSpecification' => ['URL', 'Text'],
90
-		    'hasOfferCatalog' => ['OfferCatalog'],
91
-		    'hoursAvailable' => ['OpeningHoursSpecification'],
92
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
93
-		    'image' => ['URL', 'ImageObject'],
94
-		    'interestRate' => ['Number', 'QuantitativeValue'],
95
-		    'isRelatedTo' => ['Product', 'Service'],
96
-		    'isSimilarTo' => ['Product', 'Service'],
97
-		    'logo' => ['ImageObject', 'URL'],
98
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
99
-		    'name' => ['Text'],
100
-		    'offers' => ['Demand', 'Offer'],
101
-		    'potentialAction' => ['Action'],
102
-		    'produces' => ['Thing'],
103
-		    'provider' => ['Organization', 'Person'],
104
-		    'providerMobility' => ['Text'],
105
-		    'review' => ['Review'],
106
-		    'sameAs' => ['URL'],
107
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
108
-		    'serviceAudience' => ['Audience'],
109
-		    'serviceOutput' => ['Thing'],
110
-		    'serviceType' => ['Text', 'GovernmentBenefitsType'],
111
-		    'slogan' => ['Text'],
112
-		    'subjectOf' => ['Event', 'CreativeWork'],
113
-		    'termsOfService' => ['URL', 'Text'],
114
-		    'url' => ['URL']
115
-		];
116
-	}
117
-
118
-
119
-	/**
120
-	 * @inheritdoc
121
-	 */
122
-	public function getSchemaPropertyDescriptions(): array
123
-	{
124
-		return [
125
-		    '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.',
126
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
127
-		    'alternateName' => 'An alias for the item.',
128
-		    'annualPercentageRate' => 'The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.',
129
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
130
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
131
-		    'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
132
-		    'award' => 'An award won by or for this item.',
133
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
134
-		    '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.',
135
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
136
-		    'description' => 'A description of the item.',
137
-		    '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.',
138
-		    'feesAndCommissionsSpecification' => 'Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.',
139
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
140
-		    'hoursAvailable' => 'The hours during which this service or contact is available.',
141
-		    '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.         ',
142
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
143
-		    'interestRate' => 'The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.',
144
-		    'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
145
-		    'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
146
-		    'logo' => 'An associated logo.',
147
-		    '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.',
148
-		    'name' => 'The name of the item.',
149
-		    '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.       ',
150
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
151
-		    'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
152
-		    '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.',
153
-		    'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
154
-		    'review' => 'A review of the item.',
155
-		    '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.',
156
-		    'serviceArea' => 'The geographic area where the service is provided.',
157
-		    'serviceAudience' => 'The audience eligible for this service.',
158
-		    'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
159
-		    'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
160
-		    'slogan' => 'A slogan or motto associated with the item.',
161
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
162
-		    'termsOfService' => 'Human-readable terms of service documentation.',
163
-		    'url' => 'URL of the item.'
164
-		];
165
-	}
166
-
167
-
168
-	/**
169
-	 * @inheritdoc
170
-	 */
171
-	public function getGoogleRequiredSchema(): array
172
-	{
173
-		return ['description', 'name'];
174
-	}
175
-
176
-
177
-	/**
178
-	 * @inheritdoc
179
-	 */
180
-	public function getGoogleRecommendedSchema(): array
181
-	{
182
-		return ['image', 'url'];
183
-	}
184
-
185
-
186
-	/**
187
-	 * @inheritdoc
188
-	 */
189
-	public function defineRules(): array
190
-	{
191
-		$rules = parent::defineRules();
192
-		    $rules = array_merge($rules, [
193
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
194
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
195
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
196
-		    ]);
197
-
198
-		    return $rules;
199
-	}
26
+    use CurrencyConversionServiceTrait;
27
+    use FinancialProductTrait;
28
+    use ServiceTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static string $schemaTypeName = 'CurrencyConversionService';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static string $schemaTypeScope = 'https://schema.org/CurrencyConversionService';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static string $schemaTypeExtends = 'FinancialProduct';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static string $schemaTypeDescription = 'A service to convert funds from one currency to another currency.';
59
+
60
+
61
+    /**
62
+     * @inheritdoc
63
+     */
64
+    public function getSchemaPropertyNames(): array
65
+    {
66
+        return array_keys($this->getSchemaPropertyExpectedTypes());
67
+    }
68
+
69
+
70
+    /**
71
+     * @inheritdoc
72
+     */
73
+    public function getSchemaPropertyExpectedTypes(): array
74
+    {
75
+        return [
76
+            'additionalType' => ['URL'],
77
+            'aggregateRating' => ['AggregateRating'],
78
+            'alternateName' => ['Text'],
79
+            'annualPercentageRate' => ['Number', 'QuantitativeValue'],
80
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
81
+            'audience' => ['Audience'],
82
+            'availableChannel' => ['ServiceChannel'],
83
+            'award' => ['Text'],
84
+            'brand' => ['Brand', 'Organization'],
85
+            'broker' => ['Person', 'Organization'],
86
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
87
+            'description' => ['Text'],
88
+            'disambiguatingDescription' => ['Text'],
89
+            'feesAndCommissionsSpecification' => ['URL', 'Text'],
90
+            'hasOfferCatalog' => ['OfferCatalog'],
91
+            'hoursAvailable' => ['OpeningHoursSpecification'],
92
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
93
+            'image' => ['URL', 'ImageObject'],
94
+            'interestRate' => ['Number', 'QuantitativeValue'],
95
+            'isRelatedTo' => ['Product', 'Service'],
96
+            'isSimilarTo' => ['Product', 'Service'],
97
+            'logo' => ['ImageObject', 'URL'],
98
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
99
+            'name' => ['Text'],
100
+            'offers' => ['Demand', 'Offer'],
101
+            'potentialAction' => ['Action'],
102
+            'produces' => ['Thing'],
103
+            'provider' => ['Organization', 'Person'],
104
+            'providerMobility' => ['Text'],
105
+            'review' => ['Review'],
106
+            'sameAs' => ['URL'],
107
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
108
+            'serviceAudience' => ['Audience'],
109
+            'serviceOutput' => ['Thing'],
110
+            'serviceType' => ['Text', 'GovernmentBenefitsType'],
111
+            'slogan' => ['Text'],
112
+            'subjectOf' => ['Event', 'CreativeWork'],
113
+            'termsOfService' => ['URL', 'Text'],
114
+            'url' => ['URL']
115
+        ];
116
+    }
117
+
118
+
119
+    /**
120
+     * @inheritdoc
121
+     */
122
+    public function getSchemaPropertyDescriptions(): array
123
+    {
124
+        return [
125
+            '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.',
126
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
127
+            'alternateName' => 'An alias for the item.',
128
+            'annualPercentageRate' => 'The annual rate that is charged for borrowing (or made by investing), expressed as a single percentage number that represents the actual yearly cost of funds over the term of a loan. This includes any fees or additional costs associated with the transaction.',
129
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
130
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
131
+            'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
132
+            'award' => 'An award won by or for this item.',
133
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
134
+            '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.',
135
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
136
+            'description' => 'A description of the item.',
137
+            '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.',
138
+            'feesAndCommissionsSpecification' => 'Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.',
139
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
140
+            'hoursAvailable' => 'The hours during which this service or contact is available.',
141
+            '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.         ',
142
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
143
+            'interestRate' => 'The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.',
144
+            'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
145
+            'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
146
+            'logo' => 'An associated logo.',
147
+            '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.',
148
+            'name' => 'The name of the item.',
149
+            '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.       ',
150
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
151
+            'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
152
+            '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.',
153
+            'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
154
+            'review' => 'A review of the item.',
155
+            '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.',
156
+            'serviceArea' => 'The geographic area where the service is provided.',
157
+            'serviceAudience' => 'The audience eligible for this service.',
158
+            'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
159
+            'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
160
+            'slogan' => 'A slogan or motto associated with the item.',
161
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
162
+            'termsOfService' => 'Human-readable terms of service documentation.',
163
+            'url' => 'URL of the item.'
164
+        ];
165
+    }
166
+
167
+
168
+    /**
169
+     * @inheritdoc
170
+     */
171
+    public function getGoogleRequiredSchema(): array
172
+    {
173
+        return ['description', 'name'];
174
+    }
175
+
176
+
177
+    /**
178
+     * @inheritdoc
179
+     */
180
+    public function getGoogleRecommendedSchema(): array
181
+    {
182
+        return ['image', 'url'];
183
+    }
184
+
185
+
186
+    /**
187
+     * @inheritdoc
188
+     */
189
+    public function defineRules(): array
190
+    {
191
+        $rules = parent::defineRules();
192
+            $rules = array_merge($rules, [
193
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
194
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
195
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
196
+            ]);
197
+
198
+            return $rules;
199
+    }
200 200
 }
Please login to merge, or discard this patch.
src/models/jsonld/WatchAction.php 1 patch
Indentation   +147 added lines, -147 removed lines patch added patch discarded remove patch
@@ -23,151 +23,151 @@
 block discarded – undo
23 23
  */
24 24
 class WatchAction extends MetaJsonLd implements WatchActionInterface, ConsumeActionInterface, ActionInterface, ThingInterface
25 25
 {
26
-	use WatchActionTrait;
27
-	use ConsumeActionTrait;
28
-	use ActionTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static string $schemaTypeName = 'WatchAction';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static string $schemaTypeScope = 'https://schema.org/WatchAction';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static string $schemaTypeExtends = 'ConsumeAction';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static string $schemaTypeDescription = 'The act of consuming dynamic/moving visual content.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'actionAccessibilityRequirement' => ['ActionAccessSpecification'],
76
-		    'actionStatus' => ['ActionStatusType'],
77
-		    'additionalType' => ['URL'],
78
-		    'agent' => ['Organization', 'Person'],
79
-		    'alternateName' => ['Text'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'endTime' => ['DateTime', 'Time'],
83
-		    'error' => ['Thing'],
84
-		    'expectsAcceptanceOf' => ['Offer'],
85
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
86
-		    'image' => ['URL', 'ImageObject'],
87
-		    'instrument' => ['Thing'],
88
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
89
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
90
-		    'name' => ['Text'],
91
-		    'object' => ['Thing'],
92
-		    'participant' => ['Organization', 'Person'],
93
-		    'potentialAction' => ['Action'],
94
-		    'provider' => ['Organization', 'Person'],
95
-		    'result' => ['Thing'],
96
-		    'sameAs' => ['URL'],
97
-		    'startTime' => ['Time', 'DateTime'],
98
-		    'subjectOf' => ['Event', 'CreativeWork'],
99
-		    'target' => ['URL', 'EntryPoint'],
100
-		    'url' => ['URL']
101
-		];
102
-	}
103
-
104
-
105
-	/**
106
-	 * @inheritdoc
107
-	 */
108
-	public function getSchemaPropertyDescriptions(): array
109
-	{
110
-		return [
111
-		    'actionAccessibilityRequirement' => 'A set of requirements that must be fulfilled in order to perform an Action. If more than one value is specified, fulfilling one set of requirements will allow the Action to be performed.',
112
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
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
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
115
-		    'alternateName' => 'An alias for the item.',
116
-		    'description' => 'A description of the item.',
117
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
-		    'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
119
-		    'error' => 'For failed actions, more information on the cause of the failure.',
120
-		    'expectsAcceptanceOf' => 'An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.',
121
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
124
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
125
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
126
-		    'name' => 'The name of the item.',
127
-		    'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
128
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
129
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
130
-		    '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.',
131
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
132
-		    '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.',
133
-		    'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
134
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
135
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
136
-		    'url' => 'URL of the item.'
137
-		];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRequiredSchema(): array
145
-	{
146
-		return ['description', 'name'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function getGoogleRecommendedSchema(): array
154
-	{
155
-		return ['image', 'url'];
156
-	}
157
-
158
-
159
-	/**
160
-	 * @inheritdoc
161
-	 */
162
-	public function defineRules(): array
163
-	{
164
-		$rules = parent::defineRules();
165
-		    $rules = array_merge($rules, [
166
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
-		    ]);
170
-
171
-		    return $rules;
172
-	}
26
+    use WatchActionTrait;
27
+    use ConsumeActionTrait;
28
+    use ActionTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static string $schemaTypeName = 'WatchAction';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static string $schemaTypeScope = 'https://schema.org/WatchAction';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static string $schemaTypeExtends = 'ConsumeAction';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static string $schemaTypeDescription = 'The act of consuming dynamic/moving visual content.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'actionAccessibilityRequirement' => ['ActionAccessSpecification'],
76
+            'actionStatus' => ['ActionStatusType'],
77
+            'additionalType' => ['URL'],
78
+            'agent' => ['Organization', 'Person'],
79
+            'alternateName' => ['Text'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'endTime' => ['DateTime', 'Time'],
83
+            'error' => ['Thing'],
84
+            'expectsAcceptanceOf' => ['Offer'],
85
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
86
+            'image' => ['URL', 'ImageObject'],
87
+            'instrument' => ['Thing'],
88
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
89
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
90
+            'name' => ['Text'],
91
+            'object' => ['Thing'],
92
+            'participant' => ['Organization', 'Person'],
93
+            'potentialAction' => ['Action'],
94
+            'provider' => ['Organization', 'Person'],
95
+            'result' => ['Thing'],
96
+            'sameAs' => ['URL'],
97
+            'startTime' => ['Time', 'DateTime'],
98
+            'subjectOf' => ['Event', 'CreativeWork'],
99
+            'target' => ['URL', 'EntryPoint'],
100
+            'url' => ['URL']
101
+        ];
102
+    }
103
+
104
+
105
+    /**
106
+     * @inheritdoc
107
+     */
108
+    public function getSchemaPropertyDescriptions(): array
109
+    {
110
+        return [
111
+            'actionAccessibilityRequirement' => 'A set of requirements that must be fulfilled in order to perform an Action. If more than one value is specified, fulfilling one set of requirements will allow the Action to be performed.',
112
+            'actionStatus' => 'Indicates the current disposition of the Action.',
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
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
115
+            'alternateName' => 'An alias for the item.',
116
+            'description' => 'A description of the item.',
117
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
+            'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
119
+            'error' => 'For failed actions, more information on the cause of the failure.',
120
+            'expectsAcceptanceOf' => 'An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.',
121
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
124
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
125
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
126
+            'name' => 'The name of the item.',
127
+            'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
128
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
129
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
130
+            '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.',
131
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
132
+            '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.',
133
+            'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
134
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
135
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
136
+            'url' => 'URL of the item.'
137
+        ];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRequiredSchema(): array
145
+    {
146
+        return ['description', 'name'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function getGoogleRecommendedSchema(): array
154
+    {
155
+        return ['image', 'url'];
156
+    }
157
+
158
+
159
+    /**
160
+     * @inheritdoc
161
+     */
162
+    public function defineRules(): array
163
+    {
164
+        $rules = parent::defineRules();
165
+            $rules = array_merge($rules, [
166
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
+            ]);
170
+
171
+            return $rules;
172
+    }
173 173
 }
Please login to merge, or discard this patch.
src/models/jsonld/StudioAlbum.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -23,126 +23,126 @@
 block discarded – undo
23 23
  */
24 24
 class StudioAlbum extends MetaJsonLd implements StudioAlbumInterface, MusicAlbumProductionTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use StudioAlbumTrait;
27
-	use MusicAlbumProductionTypeTrait;
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 string $schemaTypeName = 'StudioAlbum';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static string $schemaTypeScope = 'https://schema.org/StudioAlbum';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static string $schemaTypeExtends = 'MusicAlbumProductionType';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static string $schemaTypeDescription = 'StudioAlbum.';
59
-
60
-
61
-	/**
62
-	 * @inheritdoc
63
-	 */
64
-	public function getSchemaPropertyNames(): array
65
-	{
66
-		return array_keys($this->getSchemaPropertyExpectedTypes());
67
-	}
68
-
69
-
70
-	/**
71
-	 * @inheritdoc
72
-	 */
73
-	public function getSchemaPropertyExpectedTypes(): array
74
-	{
75
-		return [
76
-		    'additionalType' => ['URL'],
77
-		    'alternateName' => ['Text'],
78
-		    'description' => ['Text'],
79
-		    'disambiguatingDescription' => ['Text'],
80
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
81
-		    'image' => ['URL', 'ImageObject'],
82
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
83
-		    'name' => ['Text'],
84
-		    'potentialAction' => ['Action'],
85
-		    'sameAs' => ['URL'],
86
-		    'subjectOf' => ['Event', 'CreativeWork'],
87
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
88
-		    'url' => ['URL']
89
-		];
90
-	}
91
-
92
-
93
-	/**
94
-	 * @inheritdoc
95
-	 */
96
-	public function getSchemaPropertyDescriptions(): array
97
-	{
98
-		return [
99
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
100
-		    'alternateName' => 'An alias for the item.',
101
-		    'description' => 'A description of the item.',
102
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
103
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
104
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
105
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
106
-		    'name' => 'The name of the item.',
107
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
108
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
109
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
110
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
111
-		    'url' => 'URL of the item.'
112
-		];
113
-	}
114
-
115
-
116
-	/**
117
-	 * @inheritdoc
118
-	 */
119
-	public function getGoogleRequiredSchema(): array
120
-	{
121
-		return ['description', 'name'];
122
-	}
123
-
124
-
125
-	/**
126
-	 * @inheritdoc
127
-	 */
128
-	public function getGoogleRecommendedSchema(): array
129
-	{
130
-		return ['image', 'url'];
131
-	}
132
-
133
-
134
-	/**
135
-	 * @inheritdoc
136
-	 */
137
-	public function defineRules(): array
138
-	{
139
-		$rules = parent::defineRules();
140
-		    $rules = array_merge($rules, [
141
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
142
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
143
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
144
-		    ]);
145
-
146
-		    return $rules;
147
-	}
26
+    use StudioAlbumTrait;
27
+    use MusicAlbumProductionTypeTrait;
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 string $schemaTypeName = 'StudioAlbum';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static string $schemaTypeScope = 'https://schema.org/StudioAlbum';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static string $schemaTypeExtends = 'MusicAlbumProductionType';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static string $schemaTypeDescription = 'StudioAlbum.';
59
+
60
+
61
+    /**
62
+     * @inheritdoc
63
+     */
64
+    public function getSchemaPropertyNames(): array
65
+    {
66
+        return array_keys($this->getSchemaPropertyExpectedTypes());
67
+    }
68
+
69
+
70
+    /**
71
+     * @inheritdoc
72
+     */
73
+    public function getSchemaPropertyExpectedTypes(): array
74
+    {
75
+        return [
76
+            'additionalType' => ['URL'],
77
+            'alternateName' => ['Text'],
78
+            'description' => ['Text'],
79
+            'disambiguatingDescription' => ['Text'],
80
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
81
+            'image' => ['URL', 'ImageObject'],
82
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
83
+            'name' => ['Text'],
84
+            'potentialAction' => ['Action'],
85
+            'sameAs' => ['URL'],
86
+            'subjectOf' => ['Event', 'CreativeWork'],
87
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
88
+            'url' => ['URL']
89
+        ];
90
+    }
91
+
92
+
93
+    /**
94
+     * @inheritdoc
95
+     */
96
+    public function getSchemaPropertyDescriptions(): array
97
+    {
98
+        return [
99
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
100
+            'alternateName' => 'An alias for the item.',
101
+            'description' => 'A description of the item.',
102
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
103
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
104
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
105
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
106
+            'name' => 'The name of the item.',
107
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
108
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
109
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
110
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
111
+            'url' => 'URL of the item.'
112
+        ];
113
+    }
114
+
115
+
116
+    /**
117
+     * @inheritdoc
118
+     */
119
+    public function getGoogleRequiredSchema(): array
120
+    {
121
+        return ['description', 'name'];
122
+    }
123
+
124
+
125
+    /**
126
+     * @inheritdoc
127
+     */
128
+    public function getGoogleRecommendedSchema(): array
129
+    {
130
+        return ['image', 'url'];
131
+    }
132
+
133
+
134
+    /**
135
+     * @inheritdoc
136
+     */
137
+    public function defineRules(): array
138
+    {
139
+        $rules = parent::defineRules();
140
+            $rules = array_merge($rules, [
141
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
142
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
143
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
144
+            ]);
145
+
146
+            return $rules;
147
+    }
148 148
 }
Please login to merge, or discard this patch.
src/models/jsonld/Apartment.php 1 patch
Indentation   +220 added lines, -220 removed lines patch added patch discarded remove patch
@@ -27,241 +27,241 @@
 block discarded – undo
27 27
  */
28 28
 class Apartment extends MetaJsonLd implements ApartmentInterface, AccommodationInterface, PlaceInterface, ThingInterface
29 29
 {
30
-	use ApartmentTrait;
31
-	use AccommodationTrait;
32
-	use PlaceTrait;
33
-	use ThingTrait;
30
+    use ApartmentTrait;
31
+    use AccommodationTrait;
32
+    use PlaceTrait;
33
+    use ThingTrait;
34 34
 
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static string $schemaTypeName = 'Apartment';
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static string $schemaTypeName = 'Apartment';
41 41
 
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static string $schemaTypeScope = 'https://schema.org/Apartment';
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static string $schemaTypeScope = 'https://schema.org/Apartment';
48 48
 
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static string $schemaTypeExtends = 'Accommodation';
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static string $schemaTypeExtends = 'Accommodation';
55 55
 
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static string $schemaTypeDescription = 'An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (source: Wikipedia, the free encyclopedia, see <a href="http://en.wikipedia.org/wiki/Apartment">http://en.wikipedia.org/wiki/Apartment</a>).';
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static string $schemaTypeDescription = 'An apartment (in American English) or flat (in British English) is a self-contained housing unit (a type of residential real estate) that occupies only part of a building (source: Wikipedia, the free encyclopedia, see <a href="http://en.wikipedia.org/wiki/Apartment">http://en.wikipedia.org/wiki/Apartment</a>).';
62 62
 
63 63
 
64
-	/**
65
-	 * @inheritdoc
66
-	 */
67
-	public function getSchemaPropertyNames(): array
68
-	{
69
-		return array_keys($this->getSchemaPropertyExpectedTypes());
70
-	}
64
+    /**
65
+     * @inheritdoc
66
+     */
67
+    public function getSchemaPropertyNames(): array
68
+    {
69
+        return array_keys($this->getSchemaPropertyExpectedTypes());
70
+    }
71 71
 
72 72
 
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyExpectedTypes(): array
77
-	{
78
-		return [
79
-		    'accommodationCategory' => ['Text'],
80
-		    'accommodationFloorPlan' => ['FloorPlan'],
81
-		    'additionalProperty' => ['PropertyValue'],
82
-		    'additionalType' => ['URL'],
83
-		    'address' => ['Text', 'PostalAddress'],
84
-		    'aggregateRating' => ['AggregateRating'],
85
-		    'alternateName' => ['Text'],
86
-		    'amenityFeature' => ['LocationFeatureSpecification'],
87
-		    'branchCode' => ['Text'],
88
-		    'containedIn' => ['Place'],
89
-		    'containedInPlace' => ['Place'],
90
-		    'containsPlace' => ['Place'],
91
-		    'description' => ['Text'],
92
-		    'disambiguatingDescription' => ['Text'],
93
-		    'event' => ['Event'],
94
-		    'events' => ['Event'],
95
-		    'faxNumber' => ['Text'],
96
-		    'floorLevel' => ['Text'],
97
-		    'floorSize' => ['QuantitativeValue'],
98
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
99
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
100
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
101
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
102
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
103
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
104
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
105
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
106
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
107
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
108
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
109
-		    'globalLocationNumber' => ['Text'],
110
-		    'hasDriveThroughService' => ['Boolean'],
111
-		    'hasMap' => ['URL', 'Map'],
112
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
113
-		    'image' => ['URL', 'ImageObject'],
114
-		    'isAccessibleForFree' => ['Boolean'],
115
-		    'isicV4' => ['Text'],
116
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
117
-		    'latitude' => ['Number', 'Text'],
118
-		    'leaseLength' => ['QuantitativeValue', 'Duration'],
119
-		    'logo' => ['ImageObject', 'URL'],
120
-		    'longitude' => ['Text', 'Number'],
121
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
122
-		    'map' => ['URL'],
123
-		    'maps' => ['URL'],
124
-		    'maximumAttendeeCapacity' => ['Integer'],
125
-		    'name' => ['Text'],
126
-		    'numberOfBathroomsTotal' => ['Integer'],
127
-		    'numberOfBedrooms' => ['Number', 'QuantitativeValue'],
128
-		    'numberOfFullBathrooms' => ['Number'],
129
-		    'numberOfPartialBathrooms' => ['Number'],
130
-		    'numberOfRooms' => ['Number', 'QuantitativeValue'],
131
-		    'occupancy' => ['QuantitativeValue'],
132
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
133
-		    'permittedUsage' => ['Text'],
134
-		    'petsAllowed' => ['Text', 'Boolean'],
135
-		    'photo' => ['Photograph', 'ImageObject'],
136
-		    'photos' => ['ImageObject', 'Photograph'],
137
-		    'potentialAction' => ['Action'],
138
-		    'publicAccess' => ['Boolean'],
139
-		    'review' => ['Review'],
140
-		    'reviews' => ['Review'],
141
-		    'sameAs' => ['URL'],
142
-		    'slogan' => ['Text'],
143
-		    'smokingAllowed' => ['Boolean'],
144
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
145
-		    'subjectOf' => ['Event', 'CreativeWork'],
146
-		    'telephone' => ['Text'],
147
-		    'tourBookingPage' => ['URL'],
148
-		    'url' => ['URL'],
149
-		    'yearBuilt' => ['Number']
150
-		];
151
-	}
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyExpectedTypes(): array
77
+    {
78
+        return [
79
+            'accommodationCategory' => ['Text'],
80
+            'accommodationFloorPlan' => ['FloorPlan'],
81
+            'additionalProperty' => ['PropertyValue'],
82
+            'additionalType' => ['URL'],
83
+            'address' => ['Text', 'PostalAddress'],
84
+            'aggregateRating' => ['AggregateRating'],
85
+            'alternateName' => ['Text'],
86
+            'amenityFeature' => ['LocationFeatureSpecification'],
87
+            'branchCode' => ['Text'],
88
+            'containedIn' => ['Place'],
89
+            'containedInPlace' => ['Place'],
90
+            'containsPlace' => ['Place'],
91
+            'description' => ['Text'],
92
+            'disambiguatingDescription' => ['Text'],
93
+            'event' => ['Event'],
94
+            'events' => ['Event'],
95
+            'faxNumber' => ['Text'],
96
+            'floorLevel' => ['Text'],
97
+            'floorSize' => ['QuantitativeValue'],
98
+            'geo' => ['GeoCoordinates', 'GeoShape'],
99
+            'geoContains' => ['Place', 'GeospatialGeometry'],
100
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
101
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
102
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
103
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
104
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
105
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
106
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
107
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
108
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
109
+            'globalLocationNumber' => ['Text'],
110
+            'hasDriveThroughService' => ['Boolean'],
111
+            'hasMap' => ['URL', 'Map'],
112
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
113
+            'image' => ['URL', 'ImageObject'],
114
+            'isAccessibleForFree' => ['Boolean'],
115
+            'isicV4' => ['Text'],
116
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
117
+            'latitude' => ['Number', 'Text'],
118
+            'leaseLength' => ['QuantitativeValue', 'Duration'],
119
+            'logo' => ['ImageObject', 'URL'],
120
+            'longitude' => ['Text', 'Number'],
121
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
122
+            'map' => ['URL'],
123
+            'maps' => ['URL'],
124
+            'maximumAttendeeCapacity' => ['Integer'],
125
+            'name' => ['Text'],
126
+            'numberOfBathroomsTotal' => ['Integer'],
127
+            'numberOfBedrooms' => ['Number', 'QuantitativeValue'],
128
+            'numberOfFullBathrooms' => ['Number'],
129
+            'numberOfPartialBathrooms' => ['Number'],
130
+            'numberOfRooms' => ['Number', 'QuantitativeValue'],
131
+            'occupancy' => ['QuantitativeValue'],
132
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
133
+            'permittedUsage' => ['Text'],
134
+            'petsAllowed' => ['Text', 'Boolean'],
135
+            'photo' => ['Photograph', 'ImageObject'],
136
+            'photos' => ['ImageObject', 'Photograph'],
137
+            'potentialAction' => ['Action'],
138
+            'publicAccess' => ['Boolean'],
139
+            'review' => ['Review'],
140
+            'reviews' => ['Review'],
141
+            'sameAs' => ['URL'],
142
+            'slogan' => ['Text'],
143
+            'smokingAllowed' => ['Boolean'],
144
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
145
+            'subjectOf' => ['Event', 'CreativeWork'],
146
+            'telephone' => ['Text'],
147
+            'tourBookingPage' => ['URL'],
148
+            'url' => ['URL'],
149
+            'yearBuilt' => ['Number']
150
+        ];
151
+    }
152 152
 
153 153
 
154
-	/**
155
-	 * @inheritdoc
156
-	 */
157
-	public function getSchemaPropertyDescriptions(): array
158
-	{
159
-		return [
160
-		    'accommodationCategory' => 'Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields  for suggested values).',
161
-		    'accommodationFloorPlan' => 'A floorplan of some [[Accommodation]].',
162
-		    '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. ',
163
-		    '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.',
164
-		    'address' => 'Physical address of the item.',
165
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
166
-		    'alternateName' => 'An alias for the item.',
167
-		    '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.',
168
-		    '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.       ',
169
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
170
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
171
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
172
-		    'description' => 'A description of the item.',
173
-		    '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.',
174
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
175
-		    'events' => 'Upcoming or past events associated with this place or organization.',
176
-		    'faxNumber' => 'The fax number.',
177
-		    'floorLevel' => 'The floor level for an [[Accommodation]] in a multi-storey building. Since counting   systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.',
178
-		    'floorSize' => 'The size of the accommodation, e.g. in square meter or squarefoot. Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard ',
179
-		    'geo' => 'The geo coordinates of the place.',
180
-		    '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).',
181
-		    '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).',
182
-		    '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).',
183
-		    '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).',
184
-		    '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).)',
185
-		    '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).',
186
-		    '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).',
187
-		    '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).',
188
-		    '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).)',
189
-		    '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).',
190
-		    '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.',
191
-		    '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.',
192
-		    'hasMap' => 'A URL to a map of the place.',
193
-		    '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.         ',
194
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
195
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
196
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
197
-		    '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.',
198
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
199
-		    'leaseLength' => 'Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.',
200
-		    'logo' => 'An associated logo.',
201
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
202
-		    '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.',
203
-		    'map' => 'A URL to a map of the place.',
204
-		    'maps' => 'A URL to a map of the place.',
205
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
206
-		    'name' => 'The name of the item.',
207
-		    'numberOfBathroomsTotal' => 'The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].',
208
-		    'numberOfBedrooms' => 'The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].',
209
-		    'numberOfFullBathrooms' => 'Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).',
210
-		    'numberOfPartialBathrooms' => 'Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). ',
211
-		    'numberOfRooms' => 'The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.',
212
-		    'occupancy' => 'The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). Typical unit code(s): C62 for person',
213
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
214
-		    'permittedUsage' => 'Indications regarding the permitted usage of the accommodation.',
215
-		    'petsAllowed' => 'Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.',
216
-		    'photo' => 'A photograph of this place.',
217
-		    'photos' => 'Photographs of this place.',
218
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
219
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
220
-		    'review' => 'A review of the item.',
221
-		    'reviews' => 'Review of the item.',
222
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
223
-		    'slogan' => 'A slogan or motto associated with the item.',
224
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
225
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
226
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
227
-		    'telephone' => 'The telephone number.',
228
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
229
-		    'url' => 'URL of the item.',
230
-		    'yearBuilt' => 'The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). '
231
-		];
232
-	}
154
+    /**
155
+     * @inheritdoc
156
+     */
157
+    public function getSchemaPropertyDescriptions(): array
158
+    {
159
+        return [
160
+            'accommodationCategory' => 'Category of an [[Accommodation]], following real estate conventions, e.g. RESO (see [PropertySubType](https://ddwiki.reso.org/display/DDW17/PropertySubType+Field), and [PropertyType](https://ddwiki.reso.org/display/DDW17/PropertyType+Field) fields  for suggested values).',
161
+            'accommodationFloorPlan' => 'A floorplan of some [[Accommodation]].',
162
+            '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. ',
163
+            '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.',
164
+            'address' => 'Physical address of the item.',
165
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
166
+            'alternateName' => 'An alias for the item.',
167
+            '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.',
168
+            '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.       ',
169
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
170
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
171
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
172
+            'description' => 'A description of the item.',
173
+            '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.',
174
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
175
+            'events' => 'Upcoming or past events associated with this place or organization.',
176
+            'faxNumber' => 'The fax number.',
177
+            'floorLevel' => 'The floor level for an [[Accommodation]] in a multi-storey building. Since counting   systems [vary internationally](https://en.wikipedia.org/wiki/Storey#Consecutive_number_floor_designations), the local system should be used where possible.',
178
+            'floorSize' => 'The size of the accommodation, e.g. in square meter or squarefoot. Typical unit code(s): MTK for square meter, FTK for square foot, or YDK for square yard ',
179
+            'geo' => 'The geo coordinates of the place.',
180
+            '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).',
181
+            '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).',
182
+            '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).',
183
+            '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).',
184
+            '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).)',
185
+            '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).',
186
+            '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).',
187
+            '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).',
188
+            '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).)',
189
+            '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).',
190
+            '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.',
191
+            '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.',
192
+            'hasMap' => 'A URL to a map of the place.',
193
+            '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.         ',
194
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
195
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
196
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
197
+            '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.',
198
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
199
+            'leaseLength' => 'Length of the lease for some [[Accommodation]], either particular to some [[Offer]] or in some cases intrinsic to the property.',
200
+            'logo' => 'An associated logo.',
201
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
202
+            '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.',
203
+            'map' => 'A URL to a map of the place.',
204
+            'maps' => 'A URL to a map of the place.',
205
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
206
+            'name' => 'The name of the item.',
207
+            'numberOfBathroomsTotal' => 'The total integer number of bathrooms in some [[Accommodation]], following real estate conventions as [documented in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsTotalInteger+Field): "The simple sum of the number of bathrooms. For example for a property with two Full Bathrooms and one Half Bathroom, the Bathrooms Total Integer will be 3.". See also [[numberOfRooms]].',
208
+            'numberOfBedrooms' => 'The total integer number of bedrooms in a some [[Accommodation]], [[ApartmentComplex]] or [[FloorPlan]].',
209
+            'numberOfFullBathrooms' => 'Number of full bathrooms - The total number of full and ¾ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsFull field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsFull+Field).',
210
+            'numberOfPartialBathrooms' => 'Number of partial bathrooms - The total number of half and ¼ bathrooms in an [[Accommodation]]. This corresponds to the [BathroomsPartial field in RESO](https://ddwiki.reso.org/display/DDW17/BathroomsPartial+Field). ',
211
+            'numberOfRooms' => 'The number of rooms (excluding bathrooms and closets) of the accommodation or lodging business. Typical unit code(s): ROM for room or C62 for no unit. The type of room can be put in the unitText property of the QuantitativeValue.',
212
+            'occupancy' => 'The allowed total occupancy for the accommodation in persons (including infants etc). For individual accommodations, this is not necessarily the legal maximum but defines the permitted usage as per the contractual agreement (e.g. a double room used by a single person). Typical unit code(s): C62 for person',
213
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
214
+            'permittedUsage' => 'Indications regarding the permitted usage of the accommodation.',
215
+            'petsAllowed' => 'Indicates whether pets are allowed to enter the accommodation or lodging business. More detailed information can be put in a text value.',
216
+            'photo' => 'A photograph of this place.',
217
+            'photos' => 'Photographs of this place.',
218
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
219
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
220
+            'review' => 'A review of the item.',
221
+            'reviews' => 'Review of the item.',
222
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
223
+            'slogan' => 'A slogan or motto associated with the item.',
224
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
225
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
226
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
227
+            'telephone' => 'The telephone number.',
228
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
229
+            'url' => 'URL of the item.',
230
+            'yearBuilt' => 'The year an [[Accommodation]] was constructed. This corresponds to the [YearBuilt field in RESO](https://ddwiki.reso.org/display/DDW17/YearBuilt+Field). '
231
+        ];
232
+    }
233 233
 
234 234
 
235
-	/**
236
-	 * @inheritdoc
237
-	 */
238
-	public function getGoogleRequiredSchema(): array
239
-	{
240
-		return ['description', 'name'];
241
-	}
235
+    /**
236
+     * @inheritdoc
237
+     */
238
+    public function getGoogleRequiredSchema(): array
239
+    {
240
+        return ['description', 'name'];
241
+    }
242 242
 
243 243
 
244
-	/**
245
-	 * @inheritdoc
246
-	 */
247
-	public function getGoogleRecommendedSchema(): array
248
-	{
249
-		return ['image', 'url'];
250
-	}
244
+    /**
245
+     * @inheritdoc
246
+     */
247
+    public function getGoogleRecommendedSchema(): array
248
+    {
249
+        return ['image', 'url'];
250
+    }
251 251
 
252 252
 
253
-	/**
254
-	 * @inheritdoc
255
-	 */
256
-	public function defineRules(): array
257
-	{
258
-		$rules = parent::defineRules();
259
-		    $rules = array_merge($rules, [
260
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
261
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
262
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
263
-		    ]);
253
+    /**
254
+     * @inheritdoc
255
+     */
256
+    public function defineRules(): array
257
+    {
258
+        $rules = parent::defineRules();
259
+            $rules = array_merge($rules, [
260
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
261
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
262
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
263
+            ]);
264 264
 
265
-		    return $rules;
266
-	}
265
+            return $rules;
266
+    }
267 267
 }
Please login to merge, or discard this patch.
src/models/jsonld/SpeechPathology.php 1 patch
Indentation   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -25,128 +25,128 @@
 block discarded – undo
25 25
  */
26 26
 class SpeechPathology extends MetaJsonLd implements SpeechPathologyInterface, MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, ThingInterface, MedicalEnumerationInterface
27 27
 {
28
-	use SpeechPathologyTrait;
29
-	use MedicalSpecialtyTrait;
30
-	use SpecialtyTrait;
31
-	use EnumerationTrait;
32
-	use IntangibleTrait;
33
-	use ThingTrait;
34
-	use MedicalEnumerationTrait;
35
-
36
-	/**
37
-	 * The Schema.org Type Name
38
-	 *
39
-	 * @var string
40
-	 */
41
-	public static string $schemaTypeName = 'SpeechPathology';
42
-
43
-	/**
44
-	 * The Schema.org Type Scope
45
-	 *
46
-	 * @var string
47
-	 */
48
-	public static string $schemaTypeScope = 'https://schema.org/SpeechPathology';
49
-
50
-	/**
51
-	 * The Schema.org Type Extends
52
-	 *
53
-	 * @var string
54
-	 */
55
-	public static string $schemaTypeExtends = 'MedicalSpecialty';
56
-
57
-	/**
58
-	 * The Schema.org Type Description
59
-	 *
60
-	 * @var string
61
-	 */
62
-	public static string $schemaTypeDescription = 'The scientific study and treatment of defects, disorders, and malfunctions of speech and voice, as stuttering, lisping, or lalling, and of language disturbances, as aphasia or delayed language acquisition.';
63
-
64
-
65
-	/**
66
-	 * @inheritdoc
67
-	 */
68
-	public function getSchemaPropertyNames(): array
69
-	{
70
-		return array_keys($this->getSchemaPropertyExpectedTypes());
71
-	}
72
-
73
-
74
-	/**
75
-	 * @inheritdoc
76
-	 */
77
-	public function getSchemaPropertyExpectedTypes(): array
78
-	{
79
-		return [
80
-		    'additionalType' => ['URL'],
81
-		    'alternateName' => ['Text'],
82
-		    'description' => ['Text'],
83
-		    'disambiguatingDescription' => ['Text'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
87
-		    'name' => ['Text'],
88
-		    'potentialAction' => ['Action'],
89
-		    'sameAs' => ['URL'],
90
-		    'subjectOf' => ['Event', 'CreativeWork'],
91
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
92
-		    'url' => ['URL']
93
-		];
94
-	}
95
-
96
-
97
-	/**
98
-	 * @inheritdoc
99
-	 */
100
-	public function getSchemaPropertyDescriptions(): array
101
-	{
102
-		return [
103
-		    '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.',
104
-		    'alternateName' => 'An alias for the item.',
105
-		    'description' => 'A description of the item.',
106
-		    '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.',
107
-		    '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.         ',
108
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
109
-		    '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.',
110
-		    'name' => 'The name of the item.',
111
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
112
-		    '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.',
113
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
114
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
115
-		    'url' => 'URL of the item.'
116
-		];
117
-	}
118
-
119
-
120
-	/**
121
-	 * @inheritdoc
122
-	 */
123
-	public function getGoogleRequiredSchema(): array
124
-	{
125
-		return ['description', 'name'];
126
-	}
127
-
128
-
129
-	/**
130
-	 * @inheritdoc
131
-	 */
132
-	public function getGoogleRecommendedSchema(): array
133
-	{
134
-		return ['image', 'url'];
135
-	}
136
-
137
-
138
-	/**
139
-	 * @inheritdoc
140
-	 */
141
-	public function defineRules(): array
142
-	{
143
-		$rules = parent::defineRules();
144
-		    $rules = array_merge($rules, [
145
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
146
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
147
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
148
-		    ]);
149
-
150
-		    return $rules;
151
-	}
28
+    use SpeechPathologyTrait;
29
+    use MedicalSpecialtyTrait;
30
+    use SpecialtyTrait;
31
+    use EnumerationTrait;
32
+    use IntangibleTrait;
33
+    use ThingTrait;
34
+    use MedicalEnumerationTrait;
35
+
36
+    /**
37
+     * The Schema.org Type Name
38
+     *
39
+     * @var string
40
+     */
41
+    public static string $schemaTypeName = 'SpeechPathology';
42
+
43
+    /**
44
+     * The Schema.org Type Scope
45
+     *
46
+     * @var string
47
+     */
48
+    public static string $schemaTypeScope = 'https://schema.org/SpeechPathology';
49
+
50
+    /**
51
+     * The Schema.org Type Extends
52
+     *
53
+     * @var string
54
+     */
55
+    public static string $schemaTypeExtends = 'MedicalSpecialty';
56
+
57
+    /**
58
+     * The Schema.org Type Description
59
+     *
60
+     * @var string
61
+     */
62
+    public static string $schemaTypeDescription = 'The scientific study and treatment of defects, disorders, and malfunctions of speech and voice, as stuttering, lisping, or lalling, and of language disturbances, as aphasia or delayed language acquisition.';
63
+
64
+
65
+    /**
66
+     * @inheritdoc
67
+     */
68
+    public function getSchemaPropertyNames(): array
69
+    {
70
+        return array_keys($this->getSchemaPropertyExpectedTypes());
71
+    }
72
+
73
+
74
+    /**
75
+     * @inheritdoc
76
+     */
77
+    public function getSchemaPropertyExpectedTypes(): array
78
+    {
79
+        return [
80
+            'additionalType' => ['URL'],
81
+            'alternateName' => ['Text'],
82
+            'description' => ['Text'],
83
+            'disambiguatingDescription' => ['Text'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
87
+            'name' => ['Text'],
88
+            'potentialAction' => ['Action'],
89
+            'sameAs' => ['URL'],
90
+            'subjectOf' => ['Event', 'CreativeWork'],
91
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
92
+            'url' => ['URL']
93
+        ];
94
+    }
95
+
96
+
97
+    /**
98
+     * @inheritdoc
99
+     */
100
+    public function getSchemaPropertyDescriptions(): array
101
+    {
102
+        return [
103
+            '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.',
104
+            'alternateName' => 'An alias for the item.',
105
+            'description' => 'A description of the item.',
106
+            '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.',
107
+            '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.         ',
108
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
109
+            '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.',
110
+            'name' => 'The name of the item.',
111
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
112
+            '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.',
113
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
114
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
115
+            'url' => 'URL of the item.'
116
+        ];
117
+    }
118
+
119
+
120
+    /**
121
+     * @inheritdoc
122
+     */
123
+    public function getGoogleRequiredSchema(): array
124
+    {
125
+        return ['description', 'name'];
126
+    }
127
+
128
+
129
+    /**
130
+     * @inheritdoc
131
+     */
132
+    public function getGoogleRecommendedSchema(): array
133
+    {
134
+        return ['image', 'url'];
135
+    }
136
+
137
+
138
+    /**
139
+     * @inheritdoc
140
+     */
141
+    public function defineRules(): array
142
+    {
143
+        $rules = parent::defineRules();
144
+            $rules = array_merge($rules, [
145
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
146
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
147
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
148
+            ]);
149
+
150
+            return $rules;
151
+    }
152 152
 }
Please login to merge, or discard this patch.
src/models/jsonld/Drug.php 1 patch
Indentation   +285 added lines, -285 removed lines patch added patch discarded remove patch
@@ -26,306 +26,306 @@
 block discarded – undo
26 26
  */
27 27
 class Drug extends MetaJsonLd implements DrugInterface, ProductInterface, ThingInterface, SubstanceInterface, MedicalEntityInterface
28 28
 {
29
-	use DrugTrait;
30
-	use ProductTrait;
31
-	use ThingTrait;
32
-	use SubstanceTrait;
33
-	use MedicalEntityTrait;
29
+    use DrugTrait;
30
+    use ProductTrait;
31
+    use ThingTrait;
32
+    use SubstanceTrait;
33
+    use MedicalEntityTrait;
34 34
 
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static string $schemaTypeName = 'Drug';
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static string $schemaTypeName = 'Drug';
41 41
 
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static string $schemaTypeScope = 'https://schema.org/Drug';
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static string $schemaTypeScope = 'https://schema.org/Drug';
48 48
 
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static string $schemaTypeExtends = 'Product';
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static string $schemaTypeExtends = 'Product';
55 55
 
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static string $schemaTypeDescription = 'A chemical or biologic substance, used as a medical therapy, that has a physiological effect on an organism. Here the term drug is used interchangeably with the term medicine although clinical knowledge makes a clear difference between them.';
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static string $schemaTypeDescription = 'A chemical or biologic substance, used as a medical therapy, that has a physiological effect on an organism. Here the term drug is used interchangeably with the term medicine although clinical knowledge makes a clear difference between them.';
62 62
 
63 63
 
64
-	/**
65
-	 * @inheritdoc
66
-	 */
67
-	public function getSchemaPropertyNames(): array
68
-	{
69
-		return array_keys($this->getSchemaPropertyExpectedTypes());
70
-	}
64
+    /**
65
+     * @inheritdoc
66
+     */
67
+    public function getSchemaPropertyNames(): array
68
+    {
69
+        return array_keys($this->getSchemaPropertyExpectedTypes());
70
+    }
71 71
 
72 72
 
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyExpectedTypes(): array
77
-	{
78
-		return [
79
-		    'activeIngredient' => ['Text'],
80
-		    'additionalProperty' => ['PropertyValue'],
81
-		    'additionalType' => ['URL'],
82
-		    'administrationRoute' => ['Text'],
83
-		    'aggregateRating' => ['AggregateRating'],
84
-		    'alcoholWarning' => ['Text'],
85
-		    'alternateName' => ['Text'],
86
-		    'asin' => ['Text', 'URL'],
87
-		    'audience' => ['Audience'],
88
-		    'availableStrength' => ['DrugStrength'],
89
-		    'award' => ['Text'],
90
-		    'awards' => ['Text'],
91
-		    'brand' => ['Brand', 'Organization'],
92
-		    'breastfeedingWarning' => ['Text'],
93
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
94
-		    'clincalPharmacology' => ['Text'],
95
-		    'clinicalPharmacology' => ['Text'],
96
-		    'code' => ['MedicalCode'],
97
-		    'color' => ['Text'],
98
-		    'countryOfAssembly' => ['Text'],
99
-		    'countryOfLastProcessing' => ['Text'],
100
-		    'countryOfOrigin' => ['Country'],
101
-		    'depth' => ['QuantitativeValue', 'Distance'],
102
-		    'description' => ['Text'],
103
-		    'disambiguatingDescription' => ['Text'],
104
-		    'dosageForm' => ['Text'],
105
-		    'doseSchedule' => ['DoseSchedule'],
106
-		    'drugClass' => ['DrugClass'],
107
-		    'drugUnit' => ['Text'],
108
-		    'foodWarning' => ['Text'],
109
-		    'funding' => ['Grant'],
110
-		    'gtin' => ['Text', 'URL'],
111
-		    'gtin12' => ['Text'],
112
-		    'gtin13' => ['Text'],
113
-		    'gtin14' => ['Text'],
114
-		    'gtin8' => ['Text'],
115
-		    'guideline' => ['MedicalGuideline'],
116
-		    'hasAdultConsideration' => ['AdultOrientedEnumeration'],
117
-		    'hasEnergyConsumptionDetails' => ['EnergyConsumptionDetails'],
118
-		    'hasMeasurement' => ['QuantitativeValue'],
119
-		    'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
120
-		    'height' => ['QuantitativeValue', 'Distance'],
121
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
122
-		    'image' => ['URL', 'ImageObject'],
123
-		    'inProductGroupWithID' => ['Text'],
124
-		    'includedInHealthInsurancePlan' => ['HealthInsurancePlan'],
125
-		    'interactingDrug' => ['Drug'],
126
-		    'isAccessoryOrSparePartFor' => ['Product'],
127
-		    'isAvailableGenerically' => ['Boolean'],
128
-		    'isConsumableFor' => ['Product'],
129
-		    'isFamilyFriendly' => ['Boolean'],
130
-		    'isProprietary' => ['Boolean'],
131
-		    'isRelatedTo' => ['Product', 'Service'],
132
-		    'isSimilarTo' => ['Product', 'Service'],
133
-		    'isVariantOf' => ['ProductModel', 'ProductGroup'],
134
-		    'itemCondition' => ['OfferItemCondition'],
135
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
136
-		    'labelDetails' => ['URL'],
137
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
138
-		    'logo' => ['ImageObject', 'URL'],
139
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
140
-		    'manufacturer' => ['Organization'],
141
-		    'material' => ['Product', 'URL', 'Text'],
142
-		    'maximumIntake' => ['MaximumDoseSchedule'],
143
-		    'mechanismOfAction' => ['Text'],
144
-		    'medicineSystem' => ['MedicineSystem'],
145
-		    'mobileUrl' => ['Text'],
146
-		    'model' => ['ProductModel', 'Text'],
147
-		    'mpn' => ['Text'],
148
-		    'name' => ['Text'],
149
-		    'negativeNotes' => ['ListItem', 'Text', 'ItemList', 'WebContent'],
150
-		    'nonProprietaryName' => ['Text'],
151
-		    'nsn' => ['Text'],
152
-		    'offers' => ['Demand', 'Offer'],
153
-		    'overdosage' => ['Text'],
154
-		    'pattern' => ['DefinedTerm', 'Text'],
155
-		    'positiveNotes' => ['Text', 'WebContent', 'ListItem', 'ItemList'],
156
-		    'potentialAction' => ['Action'],
157
-		    'pregnancyCategory' => ['DrugPregnancyCategory'],
158
-		    'pregnancyWarning' => ['Text'],
159
-		    'prescribingInfo' => ['URL'],
160
-		    'prescriptionStatus' => ['Text', 'DrugPrescriptionStatus'],
161
-		    'productID' => ['Text'],
162
-		    'productionDate' => ['Date'],
163
-		    'proprietaryName' => ['Text'],
164
-		    'purchaseDate' => ['Date'],
165
-		    'recognizingAuthority' => ['Organization'],
166
-		    'relatedDrug' => ['Drug'],
167
-		    'releaseDate' => ['Date'],
168
-		    'relevantSpecialty' => ['MedicalSpecialty'],
169
-		    'review' => ['Review'],
170
-		    'reviews' => ['Review'],
171
-		    'rxcui' => ['Text'],
172
-		    'sameAs' => ['URL'],
173
-		    'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'],
174
-		    'sku' => ['Text'],
175
-		    'slogan' => ['Text'],
176
-		    'study' => ['MedicalStudy'],
177
-		    'subjectOf' => ['Event', 'CreativeWork'],
178
-		    'url' => ['URL'],
179
-		    'warning' => ['Text', 'URL'],
180
-		    'weight' => ['QuantitativeValue'],
181
-		    'width' => ['Distance', 'QuantitativeValue']
182
-		];
183
-	}
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyExpectedTypes(): array
77
+    {
78
+        return [
79
+            'activeIngredient' => ['Text'],
80
+            'additionalProperty' => ['PropertyValue'],
81
+            'additionalType' => ['URL'],
82
+            'administrationRoute' => ['Text'],
83
+            'aggregateRating' => ['AggregateRating'],
84
+            'alcoholWarning' => ['Text'],
85
+            'alternateName' => ['Text'],
86
+            'asin' => ['Text', 'URL'],
87
+            'audience' => ['Audience'],
88
+            'availableStrength' => ['DrugStrength'],
89
+            'award' => ['Text'],
90
+            'awards' => ['Text'],
91
+            'brand' => ['Brand', 'Organization'],
92
+            'breastfeedingWarning' => ['Text'],
93
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
94
+            'clincalPharmacology' => ['Text'],
95
+            'clinicalPharmacology' => ['Text'],
96
+            'code' => ['MedicalCode'],
97
+            'color' => ['Text'],
98
+            'countryOfAssembly' => ['Text'],
99
+            'countryOfLastProcessing' => ['Text'],
100
+            'countryOfOrigin' => ['Country'],
101
+            'depth' => ['QuantitativeValue', 'Distance'],
102
+            'description' => ['Text'],
103
+            'disambiguatingDescription' => ['Text'],
104
+            'dosageForm' => ['Text'],
105
+            'doseSchedule' => ['DoseSchedule'],
106
+            'drugClass' => ['DrugClass'],
107
+            'drugUnit' => ['Text'],
108
+            'foodWarning' => ['Text'],
109
+            'funding' => ['Grant'],
110
+            'gtin' => ['Text', 'URL'],
111
+            'gtin12' => ['Text'],
112
+            'gtin13' => ['Text'],
113
+            'gtin14' => ['Text'],
114
+            'gtin8' => ['Text'],
115
+            'guideline' => ['MedicalGuideline'],
116
+            'hasAdultConsideration' => ['AdultOrientedEnumeration'],
117
+            'hasEnergyConsumptionDetails' => ['EnergyConsumptionDetails'],
118
+            'hasMeasurement' => ['QuantitativeValue'],
119
+            'hasMerchantReturnPolicy' => ['MerchantReturnPolicy'],
120
+            'height' => ['QuantitativeValue', 'Distance'],
121
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
122
+            'image' => ['URL', 'ImageObject'],
123
+            'inProductGroupWithID' => ['Text'],
124
+            'includedInHealthInsurancePlan' => ['HealthInsurancePlan'],
125
+            'interactingDrug' => ['Drug'],
126
+            'isAccessoryOrSparePartFor' => ['Product'],
127
+            'isAvailableGenerically' => ['Boolean'],
128
+            'isConsumableFor' => ['Product'],
129
+            'isFamilyFriendly' => ['Boolean'],
130
+            'isProprietary' => ['Boolean'],
131
+            'isRelatedTo' => ['Product', 'Service'],
132
+            'isSimilarTo' => ['Product', 'Service'],
133
+            'isVariantOf' => ['ProductModel', 'ProductGroup'],
134
+            'itemCondition' => ['OfferItemCondition'],
135
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
136
+            'labelDetails' => ['URL'],
137
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
138
+            'logo' => ['ImageObject', 'URL'],
139
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
140
+            'manufacturer' => ['Organization'],
141
+            'material' => ['Product', 'URL', 'Text'],
142
+            'maximumIntake' => ['MaximumDoseSchedule'],
143
+            'mechanismOfAction' => ['Text'],
144
+            'medicineSystem' => ['MedicineSystem'],
145
+            'mobileUrl' => ['Text'],
146
+            'model' => ['ProductModel', 'Text'],
147
+            'mpn' => ['Text'],
148
+            'name' => ['Text'],
149
+            'negativeNotes' => ['ListItem', 'Text', 'ItemList', 'WebContent'],
150
+            'nonProprietaryName' => ['Text'],
151
+            'nsn' => ['Text'],
152
+            'offers' => ['Demand', 'Offer'],
153
+            'overdosage' => ['Text'],
154
+            'pattern' => ['DefinedTerm', 'Text'],
155
+            'positiveNotes' => ['Text', 'WebContent', 'ListItem', 'ItemList'],
156
+            'potentialAction' => ['Action'],
157
+            'pregnancyCategory' => ['DrugPregnancyCategory'],
158
+            'pregnancyWarning' => ['Text'],
159
+            'prescribingInfo' => ['URL'],
160
+            'prescriptionStatus' => ['Text', 'DrugPrescriptionStatus'],
161
+            'productID' => ['Text'],
162
+            'productionDate' => ['Date'],
163
+            'proprietaryName' => ['Text'],
164
+            'purchaseDate' => ['Date'],
165
+            'recognizingAuthority' => ['Organization'],
166
+            'relatedDrug' => ['Drug'],
167
+            'releaseDate' => ['Date'],
168
+            'relevantSpecialty' => ['MedicalSpecialty'],
169
+            'review' => ['Review'],
170
+            'reviews' => ['Review'],
171
+            'rxcui' => ['Text'],
172
+            'sameAs' => ['URL'],
173
+            'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'],
174
+            'sku' => ['Text'],
175
+            'slogan' => ['Text'],
176
+            'study' => ['MedicalStudy'],
177
+            'subjectOf' => ['Event', 'CreativeWork'],
178
+            'url' => ['URL'],
179
+            'warning' => ['Text', 'URL'],
180
+            'weight' => ['QuantitativeValue'],
181
+            'width' => ['Distance', 'QuantitativeValue']
182
+        ];
183
+    }
184 184
 
185 185
 
186
-	/**
187
-	 * @inheritdoc
188
-	 */
189
-	public function getSchemaPropertyDescriptions(): array
190
-	{
191
-		return [
192
-		    'activeIngredient' => 'An active ingredient, typically chemical compounds and/or biologic substances.',
193
-		    '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. ',
194
-		    '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.',
195
-		    'administrationRoute' => 'A route by which this drug may be administered, e.g. \'oral\'.',
196
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
197
-		    'alcoholWarning' => 'Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.',
198
-		    'alternateName' => 'An alias for the item.',
199
-		    'asin' => 'An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)\'s article).  Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details. ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too.',
200
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
201
-		    'availableStrength' => 'An available dosage strength for the drug.',
202
-		    'award' => 'An award won by or for this item.',
203
-		    'awards' => 'Awards won by or for this item.',
204
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
205
-		    'breastfeedingWarning' => 'Any precaution, guidance, contraindication, etc. related to this drug\'s use by breastfeeding mothers.',
206
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
207
-		    'clincalPharmacology' => 'Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).',
208
-		    'clinicalPharmacology' => 'Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).',
209
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
210
-		    'color' => 'The color of the product.',
211
-		    'countryOfAssembly' => 'The place where the product was assembled.',
212
-		    'countryOfLastProcessing' => 'The place where the item (typically [[Product]]) was last processed and tested before importation.',
213
-		    'countryOfOrigin' => 'The country of origin of something, including products as well as creative  works such as movie and TV content.  In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.  In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.',
214
-		    'depth' => 'The depth of the item.',
215
-		    'description' => 'A description of the item.',
216
-		    '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.',
217
-		    'dosageForm' => 'A dosage form in which this drug/supplement is available, e.g. \'tablet\', \'suspension\', \'injection\'.',
218
-		    'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.',
219
-		    'drugClass' => 'The class of drug this belongs to (e.g., statins).',
220
-		    'drugUnit' => 'The unit in which the drug is measured, e.g. \'5 mg tablet\'.',
221
-		    'foodWarning' => 'Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.',
222
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
223
-		    'gtin' => 'A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes.  The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs (URIs, IRIs, etc.). Details including regular expression examples can be found in, Section 6 of the GS1 URI Syntax specification; see also [schema.org tracking issue](https://github.com/schemaorg/schemaorg/issues/3156#issuecomment-1209522809) for schema.org-specific discussion. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1\'s GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties.  Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details.',
224
-		    'gtin12' => 'The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
225
-		    'gtin13' => 'The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
226
-		    'gtin14' => 'The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
227
-		    'gtin8' => 'The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
228
-		    'guideline' => 'A medical guideline related to this entity.',
229
-		    'hasAdultConsideration' => 'Used to tag an item to be intended or suitable for consumption or use by adults only.',
230
-		    'hasEnergyConsumptionDetails' => 'Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard.',
231
-		    'hasMeasurement' => 'A product measurement, for example the inseam of pants, the wheel size of a bicycle, or the gauge of a screw. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings.',
232
-		    'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
233
-		    'height' => 'The height of the item.',
234
-		    '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.         ',
235
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
236
-		    'inProductGroupWithID' => 'Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. ',
237
-		    'includedInHealthInsurancePlan' => 'The insurance plans that cover this drug.',
238
-		    'interactingDrug' => 'Another drug that is known to interact with this drug in a way that impacts the effect of this drug or causes a risk to the patient. Note: disease interactions are typically captured as contraindications.',
239
-		    'isAccessoryOrSparePartFor' => 'A pointer to another product (or multiple products) for which this product is an accessory or spare part.',
240
-		    'isAvailableGenerically' => 'True if the drug is available in a generic form (regardless of name).',
241
-		    'isConsumableFor' => 'A pointer to another product (or multiple products) for which this product is a consumable.',
242
-		    'isFamilyFriendly' => 'Indicates whether this content is family friendly.',
243
-		    'isProprietary' => 'True if this item\'s name is a proprietary/brand name (vs. generic name).',
244
-		    'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
245
-		    'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
246
-		    'isVariantOf' => 'Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group.',
247
-		    'itemCondition' => 'A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.',
248
-		    '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.',
249
-		    'labelDetails' => 'Link to the drug\'s label details.',
250
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
251
-		    'logo' => 'An associated logo.',
252
-		    '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.',
253
-		    'manufacturer' => 'The manufacturer of the product.',
254
-		    'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.',
255
-		    'maximumIntake' => 'Recommended intake of this supplement for a given population as defined by a specific recommending authority.',
256
-		    'mechanismOfAction' => 'The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.',
257
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
258
-		    'mobileUrl' => 'The [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated \'mobile site\'.  To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style.     ',
259
-		    'model' => 'The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties.',
260
-		    'mpn' => 'The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.',
261
-		    'name' => 'The name of the item.',
262
-		    'negativeNotes' => 'Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry   In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions  tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]].  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).',
263
-		    'nonProprietaryName' => 'The generic name of this drug or supplement.',
264
-		    'nsn' => 'Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. ',
265
-		    '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.       ',
266
-		    'overdosage' => 'Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.',
267
-		    'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.',
268
-		    'positiveNotes' => 'Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews.  In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described.  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).',
269
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
270
-		    'pregnancyCategory' => 'Pregnancy category of this drug.',
271
-		    'pregnancyWarning' => 'Any precaution, guidance, contraindication, etc. related to this drug\'s use during pregnancy.',
272
-		    'prescribingInfo' => 'Link to prescribing information for the drug.',
273
-		    'prescriptionStatus' => 'Indicates the status of drug prescription, e.g. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc.',
274
-		    'productID' => 'The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```.',
275
-		    'productionDate' => 'The date of production of the item, e.g. vehicle.',
276
-		    'proprietaryName' => 'Proprietary name given to the diet plan, typically by its originator or creator.',
277
-		    'purchaseDate' => 'The date the item, e.g. vehicle, was purchased by the current owner.',
278
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
279
-		    'relatedDrug' => 'Any other drug related to this one, for example commonly-prescribed alternatives.',
280
-		    'releaseDate' => 'The release date of a product or product model. This can be used to distinguish the exact variant of a product.',
281
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
282
-		    'review' => 'A review of the item.',
283
-		    'reviews' => 'Review of the item.',
284
-		    'rxcui' => 'The RxCUI drug identifier from RXNORM.',
285
-		    '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.',
286
-		    'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a  QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ',
287
-		    'sku' => 'The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.',
288
-		    'slogan' => 'A slogan or motto associated with the item.',
289
-		    'study' => 'A medical study or trial related to this entity.',
290
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
291
-		    'url' => 'URL of the item.',
292
-		    'warning' => 'Any FDA or other warnings about the drug (text or URL).',
293
-		    'weight' => 'The weight of the product or person.',
294
-		    'width' => 'The width of the item.'
295
-		];
296
-	}
186
+    /**
187
+     * @inheritdoc
188
+     */
189
+    public function getSchemaPropertyDescriptions(): array
190
+    {
191
+        return [
192
+            'activeIngredient' => 'An active ingredient, typically chemical compounds and/or biologic substances.',
193
+            '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. ',
194
+            '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.',
195
+            'administrationRoute' => 'A route by which this drug may be administered, e.g. \'oral\'.',
196
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
197
+            'alcoholWarning' => 'Any precaution, guidance, contraindication, etc. related to consumption of alcohol while taking this drug.',
198
+            'alternateName' => 'An alias for the item.',
199
+            'asin' => 'An Amazon Standard Identification Number (ASIN) is a 10-character alphanumeric unique identifier assigned by Amazon.com and its partners for product identification within the Amazon organization (summary from [Wikipedia](https://en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)\'s article).  Note also that this is a definition for how to include ASINs in Schema.org data, and not a definition of ASINs in general - see documentation from Amazon for authoritative details. ASINs are most commonly encoded as text strings, but the [asin] property supports URL/URI as potential values too.',
200
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
201
+            'availableStrength' => 'An available dosage strength for the drug.',
202
+            'award' => 'An award won by or for this item.',
203
+            'awards' => 'Awards won by or for this item.',
204
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
205
+            'breastfeedingWarning' => 'Any precaution, guidance, contraindication, etc. related to this drug\'s use by breastfeeding mothers.',
206
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
207
+            'clincalPharmacology' => 'Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).',
208
+            'clinicalPharmacology' => 'Description of the absorption and elimination of drugs, including their concentration (pharmacokinetics, pK) and biological effects (pharmacodynamics, pD).',
209
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
210
+            'color' => 'The color of the product.',
211
+            'countryOfAssembly' => 'The place where the product was assembled.',
212
+            'countryOfLastProcessing' => 'The place where the item (typically [[Product]]) was last processed and tested before importation.',
213
+            'countryOfOrigin' => 'The country of origin of something, including products as well as creative  works such as movie and TV content.  In the case of TV and movie, this would be the country of the principle offices of the production company or individual responsible for the movie. For other kinds of [[CreativeWork]] it is difficult to provide fully general guidance, and properties such as [[contentLocation]] and [[locationCreated]] may be more applicable.  In the case of products, the country of origin of the product. The exact interpretation of this may vary by context and product type, and cannot be fully enumerated here.',
214
+            'depth' => 'The depth of the item.',
215
+            'description' => 'A description of the item.',
216
+            '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.',
217
+            'dosageForm' => 'A dosage form in which this drug/supplement is available, e.g. \'tablet\', \'suspension\', \'injection\'.',
218
+            'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.',
219
+            'drugClass' => 'The class of drug this belongs to (e.g., statins).',
220
+            'drugUnit' => 'The unit in which the drug is measured, e.g. \'5 mg tablet\'.',
221
+            'foodWarning' => 'Any precaution, guidance, contraindication, etc. related to consumption of specific foods while taking this drug.',
222
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
223
+            'gtin' => 'A Global Trade Item Number ([GTIN](https://www.gs1.org/standards/id-keys/gtin)). GTINs identify trade items, including products and services, using numeric identification codes.  The GS1 [digital link specifications](https://www.gs1.org/standards/Digital-Link/) express GTINs as URLs (URIs, IRIs, etc.). Details including regular expression examples can be found in, Section 6 of the GS1 URI Syntax specification; see also [schema.org tracking issue](https://github.com/schemaorg/schemaorg/issues/3156#issuecomment-1209522809) for schema.org-specific discussion. A correct [[gtin]] value should be a valid GTIN, which means that it should be an all-numeric string of either 8, 12, 13 or 14 digits, or a "GS1 Digital Link" URL based on such a string. The numeric component should also have a [valid GS1 check digit](https://www.gs1.org/services/check-digit-calculator) and meet the other rules for valid GTINs. See also [GS1\'s GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) and [Wikipedia](https://en.wikipedia.org/wiki/Global_Trade_Item_Number) for more details. Left-padding of the gtin values is not required or encouraged. The [[gtin]] property generalizes the earlier [[gtin8]], [[gtin12]], [[gtin13]], and [[gtin14]] properties.  Note also that this is a definition for how to include GTINs in Schema.org data, and not a definition of GTINs in general - see the GS1 documentation for authoritative details.',
224
+            'gtin12' => 'The GTIN-12 code of the product, or the product to which the offer refers. The GTIN-12 is the 12-digit GS1 Identification Key composed of a U.P.C. Company Prefix, Item Reference, and Check Digit used to identify trade items. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
225
+            'gtin13' => 'The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13. Former 12-digit UPC codes can be converted into a GTIN-13 code by simply adding a preceding zero. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
226
+            'gtin14' => 'The GTIN-14 code of the product, or the product to which the offer refers. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
227
+            'gtin8' => 'The GTIN-8 code of the product, or the product to which the offer refers. This code is also known as EAN/UCC-8 or 8-digit EAN. See [GS1 GTIN Summary](http://www.gs1.org/barcodes/technical/idkeys/gtin) for more details.',
228
+            'guideline' => 'A medical guideline related to this entity.',
229
+            'hasAdultConsideration' => 'Used to tag an item to be intended or suitable for consumption or use by adults only.',
230
+            'hasEnergyConsumptionDetails' => 'Defines the energy efficiency Category (also known as "class" or "rating") for a product according to an international energy efficiency standard.',
231
+            'hasMeasurement' => 'A product measurement, for example the inseam of pants, the wheel size of a bicycle, or the gauge of a screw. Usually an exact measurement, but can also be a range of measurements for adjustable products, for example belts and ski bindings.',
232
+            'hasMerchantReturnPolicy' => 'Specifies a MerchantReturnPolicy that may be applicable.',
233
+            'height' => 'The height of the item.',
234
+            '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.         ',
235
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
236
+            'inProductGroupWithID' => 'Indicates the [[productGroupID]] for a [[ProductGroup]] that this product [[isVariantOf]]. ',
237
+            'includedInHealthInsurancePlan' => 'The insurance plans that cover this drug.',
238
+            'interactingDrug' => 'Another drug that is known to interact with this drug in a way that impacts the effect of this drug or causes a risk to the patient. Note: disease interactions are typically captured as contraindications.',
239
+            'isAccessoryOrSparePartFor' => 'A pointer to another product (or multiple products) for which this product is an accessory or spare part.',
240
+            'isAvailableGenerically' => 'True if the drug is available in a generic form (regardless of name).',
241
+            'isConsumableFor' => 'A pointer to another product (or multiple products) for which this product is a consumable.',
242
+            'isFamilyFriendly' => 'Indicates whether this content is family friendly.',
243
+            'isProprietary' => 'True if this item\'s name is a proprietary/brand name (vs. generic name).',
244
+            'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
245
+            'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
246
+            'isVariantOf' => 'Indicates the kind of product that this is a variant of. In the case of [[ProductModel]], this is a pointer (from a ProductModel) to a base product from which this product is a variant. It is safe to infer that the variant inherits all product features from the base model, unless defined locally. This is not transitive. In the case of a [[ProductGroup]], the group description also serves as a template, representing a set of Products that vary on explicitly defined, specific dimensions only (so it defines both a set of variants, as well as which values distinguish amongst those variants). When used with [[ProductGroup]], this property can apply to any [[Product]] included in the group.',
247
+            'itemCondition' => 'A predefined value from OfferItemCondition specifying the condition of the product or service, or the products or services included in the offer. Also used for product return policies to specify the condition of products accepted for returns.',
248
+            '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.',
249
+            'labelDetails' => 'Link to the drug\'s label details.',
250
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
251
+            'logo' => 'An associated logo.',
252
+            '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.',
253
+            'manufacturer' => 'The manufacturer of the product.',
254
+            'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.',
255
+            'maximumIntake' => 'Recommended intake of this supplement for a given population as defined by a specific recommending authority.',
256
+            'mechanismOfAction' => 'The specific biochemical interaction through which this drug or supplement produces its pharmacological effect.',
257
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
258
+            'mobileUrl' => 'The [[mobileUrl]] property is provided for specific situations in which data consumers need to determine whether one of several provided URLs is a dedicated \'mobile site\'.  To discourage over-use, and reflecting intial usecases, the property is expected only on [[Product]] and [[Offer]], rather than [[Thing]]. The general trend in web technology is towards [responsive design](https://en.wikipedia.org/wiki/Responsive_web_design) in which content can be flexibly adapted to a wide range of browsing environments. Pages and sites referenced with the long-established [[url]] property should ideally also be usable on a wide variety of devices, including mobile phones. In most cases, it would be pointless and counter productive to attempt to update all [[url]] markup to use [[mobileUrl]] for more mobile-oriented pages. The property is intended for the case when items (primarily [[Product]] and [[Offer]]) have extra URLs hosted on an additional "mobile site" alongside the main one. It should not be taken as an endorsement of this publication style.     ',
259
+            'model' => 'The model of the product. Use with the URL of a ProductModel or a textual representation of the model identifier. The URL of the ProductModel can be from an external source. It is recommended to additionally provide strong product identifiers via the gtin8/gtin13/gtin14 and mpn properties.',
260
+            'mpn' => 'The Manufacturer Part Number (MPN) of the product, or the product to which the offer refers.',
261
+            'name' => 'The name of the item.',
262
+            'negativeNotes' => 'Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry   In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions  tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]].  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).',
263
+            'nonProprietaryName' => 'The generic name of this drug or supplement.',
264
+            'nsn' => 'Indicates the [NATO stock number](https://en.wikipedia.org/wiki/NATO_Stock_Number) (nsn) of a [[Product]]. ',
265
+            '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.       ',
266
+            'overdosage' => 'Any information related to overdose on a drug, including signs or symptoms, treatments, contact information for emergency response.',
267
+            'pattern' => 'A pattern that something has, for example \'polka dot\', \'striped\', \'Canadian flag\'. Values are typically expressed as text, although links to controlled value schemes are also supported.',
268
+            'positiveNotes' => 'Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews.  In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described.  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).',
269
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
270
+            'pregnancyCategory' => 'Pregnancy category of this drug.',
271
+            'pregnancyWarning' => 'Any precaution, guidance, contraindication, etc. related to this drug\'s use during pregnancy.',
272
+            'prescribingInfo' => 'Link to prescribing information for the drug.',
273
+            'prescriptionStatus' => 'Indicates the status of drug prescription, e.g. local catalogs classifications or whether the drug is available by prescription or over-the-counter, etc.',
274
+            'productID' => 'The product identifier, such as ISBN. For example: ``` meta itemprop="productID" content="isbn:123-456-789" ```.',
275
+            'productionDate' => 'The date of production of the item, e.g. vehicle.',
276
+            'proprietaryName' => 'Proprietary name given to the diet plan, typically by its originator or creator.',
277
+            'purchaseDate' => 'The date the item, e.g. vehicle, was purchased by the current owner.',
278
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
279
+            'relatedDrug' => 'Any other drug related to this one, for example commonly-prescribed alternatives.',
280
+            'releaseDate' => 'The release date of a product or product model. This can be used to distinguish the exact variant of a product.',
281
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
282
+            'review' => 'A review of the item.',
283
+            'reviews' => 'Review of the item.',
284
+            'rxcui' => 'The RxCUI drug identifier from RXNORM.',
285
+            '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.',
286
+            'size' => 'A standardized size of a product or creative work, specified either through a simple textual string (for example \'XL\', \'32Wx34L\'), a  QuantitativeValue with a unitCode, or a comprehensive and structured [[SizeSpecification]]; in other cases, the [[width]], [[height]], [[depth]] and [[weight]] properties may be more applicable. ',
287
+            'sku' => 'The Stock Keeping Unit (SKU), i.e. a merchant-specific identifier for a product or service, or the product to which the offer refers.',
288
+            'slogan' => 'A slogan or motto associated with the item.',
289
+            'study' => 'A medical study or trial related to this entity.',
290
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
291
+            'url' => 'URL of the item.',
292
+            'warning' => 'Any FDA or other warnings about the drug (text or URL).',
293
+            'weight' => 'The weight of the product or person.',
294
+            'width' => 'The width of the item.'
295
+        ];
296
+    }
297 297
 
298 298
 
299
-	/**
300
-	 * @inheritdoc
301
-	 */
302
-	public function getGoogleRequiredSchema(): array
303
-	{
304
-		return ['description', 'name'];
305
-	}
299
+    /**
300
+     * @inheritdoc
301
+     */
302
+    public function getGoogleRequiredSchema(): array
303
+    {
304
+        return ['description', 'name'];
305
+    }
306 306
 
307 307
 
308
-	/**
309
-	 * @inheritdoc
310
-	 */
311
-	public function getGoogleRecommendedSchema(): array
312
-	{
313
-		return ['image', 'url'];
314
-	}
308
+    /**
309
+     * @inheritdoc
310
+     */
311
+    public function getGoogleRecommendedSchema(): array
312
+    {
313
+        return ['image', 'url'];
314
+    }
315 315
 
316 316
 
317
-	/**
318
-	 * @inheritdoc
319
-	 */
320
-	public function defineRules(): array
321
-	{
322
-		$rules = parent::defineRules();
323
-		    $rules = array_merge($rules, [
324
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
325
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
326
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
327
-		    ]);
317
+    /**
318
+     * @inheritdoc
319
+     */
320
+    public function defineRules(): array
321
+    {
322
+        $rules = parent::defineRules();
323
+            $rules = array_merge($rules, [
324
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
325
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
326
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
327
+            ]);
328 328
 
329
-		    return $rules;
330
-	}
329
+            return $rules;
330
+    }
331 331
 }
Please login to merge, or discard this patch.
src/models/jsonld/Nonprofit501c18.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 Nonprofit501c18 extends MetaJsonLd implements Nonprofit501c18Interface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use Nonprofit501c18Trait;
28
-	use USNonprofitTypeTrait;
29
-	use NonprofitTypeTrait;
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 string $schemaTypeName = 'Nonprofit501c18';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static string $schemaTypeScope = 'https://schema.org/Nonprofit501c18';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static string $schemaTypeExtends = 'USNonprofitType';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static string $schemaTypeDescription = 'Nonprofit501c18: Non-profit type referring to Employee Funded Pension Trust (created before 25 June 1959).';
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 Nonprofit501c18Trait;
28
+    use USNonprofitTypeTrait;
29
+    use NonprofitTypeTrait;
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 string $schemaTypeName = 'Nonprofit501c18';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static string $schemaTypeScope = 'https://schema.org/Nonprofit501c18';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static string $schemaTypeExtends = 'USNonprofitType';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static string $schemaTypeDescription = 'Nonprofit501c18: Non-profit type referring to Employee Funded Pension Trust (created before 25 June 1959).';
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.