Passed
Push — develop ( e888e4...569633 )
by Andrew
19:20 queued 10:31
created
src/models/jsonld/Nonprofit501q.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 Nonprofit501q extends MetaJsonLd implements Nonprofit501qInterface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use Nonprofit501qTrait;
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 $schemaTypeName = 'Nonprofit501q';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/Nonprofit501q';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'USNonprofitType';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'Nonprofit501q: Non-profit type referring to Credit Counseling Organizations.';
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 Nonprofit501qTrait;
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 $schemaTypeName = 'Nonprofit501q';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/Nonprofit501q';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'USNonprofitType';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'Nonprofit501q: Non-profit type referring to Credit Counseling Organizations.';
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.
src/models/jsonld/Appearance.php 1 patch
Indentation   +153 added lines, -153 removed lines patch added patch discarded remove patch
@@ -23,157 +23,157 @@
 block discarded – undo
23 23
  */
24 24
 class Appearance extends MetaJsonLd implements AppearanceInterface, PhysicalExamInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface
25 25
 {
26
-	use AppearanceTrait;
27
-	use PhysicalExamTrait;
28
-	use MedicalProcedureTrait;
29
-	use MedicalEntityTrait;
30
-	use ThingTrait;
31
-	use MedicalEnumerationTrait;
32
-	use EnumerationTrait;
33
-	use IntangibleTrait;
34
-
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static $schemaTypeName = 'Appearance';
41
-
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/Appearance';
48
-
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeExtends = 'PhysicalExam';
55
-
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeDescription = 'Appearance assessment with clinical examination.';
62
-
63
-
64
-	/**
65
-	 * @inheritdoc
66
-	 */
67
-	public function getSchemaPropertyNames(): array
68
-	{
69
-		return array_keys($this->getSchemaPropertyExpectedTypes());
70
-	}
71
-
72
-
73
-	/**
74
-	 * @inheritdoc
75
-	 */
76
-	public function getSchemaPropertyExpectedTypes(): array
77
-	{
78
-		return [
79
-		    'additionalType' => ['URL'],
80
-		    'alternateName' => ['Text'],
81
-		    'bodyLocation' => ['Text'],
82
-		    'code' => ['MedicalCode'],
83
-		    'description' => ['Text'],
84
-		    'disambiguatingDescription' => ['Text'],
85
-		    'followup' => ['Text'],
86
-		    'funding' => ['Grant'],
87
-		    'guideline' => ['MedicalGuideline'],
88
-		    'howPerformed' => ['Text'],
89
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
90
-		    'image' => ['URL', 'ImageObject'],
91
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
92
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
93
-		    'medicineSystem' => ['MedicineSystem'],
94
-		    'name' => ['Text'],
95
-		    'potentialAction' => ['Action'],
96
-		    'preparation' => ['Text', 'MedicalEntity'],
97
-		    'procedureType' => ['MedicalProcedureType'],
98
-		    'recognizingAuthority' => ['Organization'],
99
-		    'relevantSpecialty' => ['MedicalSpecialty'],
100
-		    'sameAs' => ['URL'],
101
-		    'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
102
-		    'study' => ['MedicalStudy'],
103
-		    'subjectOf' => ['Event', 'CreativeWork'],
104
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
105
-		    'url' => ['URL']
106
-		];
107
-	}
108
-
109
-
110
-	/**
111
-	 * @inheritdoc
112
-	 */
113
-	public function getSchemaPropertyDescriptions(): array
114
-	{
115
-		return [
116
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
-		    'alternateName' => 'An alias for the item.',
118
-		    'bodyLocation' => 'Location in the body of the anatomical structure.',
119
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
120
-		    'description' => 'A description of the item.',
121
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
122
-		    'followup' => 'Typical or recommended followup care after the procedure is performed.',
123
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
124
-		    'guideline' => 'A medical guideline related to this entity.',
125
-		    'howPerformed' => 'How the procedure is performed.',
126
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
127
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
128
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
129
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
130
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
131
-		    'name' => 'The name of the item.',
132
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
133
-		    'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
134
-		    'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
135
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
136
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
137
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
138
-		    'status' => 'The status of the study (enumerated).',
139
-		    'study' => 'A medical study or trial related to this entity.',
140
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
141
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
142
-		    'url' => 'URL of the item.'
143
-		];
144
-	}
145
-
146
-
147
-	/**
148
-	 * @inheritdoc
149
-	 */
150
-	public function getGoogleRequiredSchema(): array
151
-	{
152
-		return ['description', 'name'];
153
-	}
154
-
155
-
156
-	/**
157
-	 * @inheritdoc
158
-	 */
159
-	public function getGoogleRecommendedSchema(): array
160
-	{
161
-		return ['image', 'url'];
162
-	}
163
-
164
-
165
-	/**
166
-	 * @inheritdoc
167
-	 */
168
-	public function defineRules(): array
169
-	{
170
-		$rules = parent::defineRules();
171
-		    $rules = array_merge($rules, [
172
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
173
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
174
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
175
-		    ]);
176
-
177
-		    return $rules;
178
-	}
26
+    use AppearanceTrait;
27
+    use PhysicalExamTrait;
28
+    use MedicalProcedureTrait;
29
+    use MedicalEntityTrait;
30
+    use ThingTrait;
31
+    use MedicalEnumerationTrait;
32
+    use EnumerationTrait;
33
+    use IntangibleTrait;
34
+
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static $schemaTypeName = 'Appearance';
41
+
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/Appearance';
48
+
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeExtends = 'PhysicalExam';
55
+
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeDescription = 'Appearance assessment with clinical examination.';
62
+
63
+
64
+    /**
65
+     * @inheritdoc
66
+     */
67
+    public function getSchemaPropertyNames(): array
68
+    {
69
+        return array_keys($this->getSchemaPropertyExpectedTypes());
70
+    }
71
+
72
+
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyExpectedTypes(): array
77
+    {
78
+        return [
79
+            'additionalType' => ['URL'],
80
+            'alternateName' => ['Text'],
81
+            'bodyLocation' => ['Text'],
82
+            'code' => ['MedicalCode'],
83
+            'description' => ['Text'],
84
+            'disambiguatingDescription' => ['Text'],
85
+            'followup' => ['Text'],
86
+            'funding' => ['Grant'],
87
+            'guideline' => ['MedicalGuideline'],
88
+            'howPerformed' => ['Text'],
89
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
90
+            'image' => ['URL', 'ImageObject'],
91
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
92
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
93
+            'medicineSystem' => ['MedicineSystem'],
94
+            'name' => ['Text'],
95
+            'potentialAction' => ['Action'],
96
+            'preparation' => ['Text', 'MedicalEntity'],
97
+            'procedureType' => ['MedicalProcedureType'],
98
+            'recognizingAuthority' => ['Organization'],
99
+            'relevantSpecialty' => ['MedicalSpecialty'],
100
+            'sameAs' => ['URL'],
101
+            'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
102
+            'study' => ['MedicalStudy'],
103
+            'subjectOf' => ['Event', 'CreativeWork'],
104
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
105
+            'url' => ['URL']
106
+        ];
107
+    }
108
+
109
+
110
+    /**
111
+     * @inheritdoc
112
+     */
113
+    public function getSchemaPropertyDescriptions(): array
114
+    {
115
+        return [
116
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
+            'alternateName' => 'An alias for the item.',
118
+            'bodyLocation' => 'Location in the body of the anatomical structure.',
119
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
120
+            'description' => 'A description of the item.',
121
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
122
+            'followup' => 'Typical or recommended followup care after the procedure is performed.',
123
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
124
+            'guideline' => 'A medical guideline related to this entity.',
125
+            'howPerformed' => 'How the procedure is performed.',
126
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
127
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
128
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
129
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
130
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
131
+            'name' => 'The name of the item.',
132
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
133
+            'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
134
+            'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
135
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
136
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
137
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
138
+            'status' => 'The status of the study (enumerated).',
139
+            'study' => 'A medical study or trial related to this entity.',
140
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
141
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
142
+            'url' => 'URL of the item.'
143
+        ];
144
+    }
145
+
146
+
147
+    /**
148
+     * @inheritdoc
149
+     */
150
+    public function getGoogleRequiredSchema(): array
151
+    {
152
+        return ['description', 'name'];
153
+    }
154
+
155
+
156
+    /**
157
+     * @inheritdoc
158
+     */
159
+    public function getGoogleRecommendedSchema(): array
160
+    {
161
+        return ['image', 'url'];
162
+    }
163
+
164
+
165
+    /**
166
+     * @inheritdoc
167
+     */
168
+    public function defineRules(): array
169
+    {
170
+        $rules = parent::defineRules();
171
+            $rules = array_merge($rules, [
172
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
173
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
174
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
175
+            ]);
176
+
177
+            return $rules;
178
+    }
179 179
 }
Please login to merge, or discard this patch.
src/models/jsonld/MortgageLoan.php 1 patch
Indentation   +197 added lines, -197 removed lines patch added patch discarded remove patch
@@ -24,201 +24,201 @@
 block discarded – undo
24 24
  */
25 25
 class MortgageLoan extends MetaJsonLd implements MortgageLoanInterface, LoanOrCreditInterface, FinancialProductInterface, ServiceInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use MortgageLoanTrait;
28
-	use LoanOrCreditTrait;
29
-	use FinancialProductTrait;
30
-	use ServiceTrait;
31
-	use IntangibleTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'MortgageLoan';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/MortgageLoan';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'LoanOrCredit';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'A loan in which property or real estate is used as collateral. (A loan securitized against some real estate.)';
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
-		    'aggregateRating' => ['AggregateRating'],
80
-		    'alternateName' => ['Text'],
81
-		    'amount' => ['MonetaryAmount', 'Number'],
82
-		    'annualPercentageRate' => ['Number', 'QuantitativeValue'],
83
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
84
-		    'audience' => ['Audience'],
85
-		    'availableChannel' => ['ServiceChannel'],
86
-		    'award' => ['Text'],
87
-		    'brand' => ['Brand', 'Organization'],
88
-		    'broker' => ['Person', 'Organization'],
89
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
90
-		    'currency' => ['Text'],
91
-		    'description' => ['Text'],
92
-		    'disambiguatingDescription' => ['Text'],
93
-		    'domiciledMortgage' => ['Boolean'],
94
-		    'feesAndCommissionsSpecification' => ['URL', 'Text'],
95
-		    'gracePeriod' => ['Duration'],
96
-		    'hasOfferCatalog' => ['OfferCatalog'],
97
-		    'hoursAvailable' => ['OpeningHoursSpecification'],
98
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
99
-		    'image' => ['URL', 'ImageObject'],
100
-		    'interestRate' => ['Number', 'QuantitativeValue'],
101
-		    'isRelatedTo' => ['Product', 'Service'],
102
-		    'isSimilarTo' => ['Product', 'Service'],
103
-		    'loanMortgageMandateAmount' => ['MonetaryAmount'],
104
-		    'loanRepaymentForm' => ['RepaymentSpecification'],
105
-		    'loanTerm' => ['QuantitativeValue'],
106
-		    'loanType' => ['URL', 'Text'],
107
-		    'logo' => ['ImageObject', 'URL'],
108
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
109
-		    'name' => ['Text'],
110
-		    'offers' => ['Demand', 'Offer'],
111
-		    'potentialAction' => ['Action'],
112
-		    'produces' => ['Thing'],
113
-		    'provider' => ['Organization', 'Person'],
114
-		    'providerMobility' => ['Text'],
115
-		    'recourseLoan' => ['Boolean'],
116
-		    'renegotiableLoan' => ['Boolean'],
117
-		    'requiredCollateral' => ['Thing', 'Text'],
118
-		    'review' => ['Review'],
119
-		    'sameAs' => ['URL'],
120
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
121
-		    'serviceAudience' => ['Audience'],
122
-		    'serviceOutput' => ['Thing'],
123
-		    'serviceType' => ['Text', 'GovernmentBenefitsType'],
124
-		    'slogan' => ['Text'],
125
-		    'subjectOf' => ['Event', 'CreativeWork'],
126
-		    'termsOfService' => ['URL', 'Text'],
127
-		    'url' => ['URL']
128
-		];
129
-	}
130
-
131
-
132
-	/**
133
-	 * @inheritdoc
134
-	 */
135
-	public function getSchemaPropertyDescriptions(): array
136
-	{
137
-		return [
138
-		    '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.',
139
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
140
-		    'alternateName' => 'An alias for the item.',
141
-		    'amount' => 'The amount of money.',
142
-		    '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.',
143
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
144
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
145
-		    'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
146
-		    'award' => 'An award won by or for this item.',
147
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
148
-		    '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.',
149
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
150
-		    'currency' => 'The currency in which the monetary amount is expressed.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
151
-		    'description' => 'A description of the item.',
152
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
153
-		    'domiciledMortgage' => 'Whether borrower is a resident of the jurisdiction where the property is located.',
154
-		    'feesAndCommissionsSpecification' => 'Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.',
155
-		    'gracePeriod' => 'The period of time after any due date that the borrower has to fulfil its obligations before a default (failure to pay) is deemed to have occurred.',
156
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
157
-		    'hoursAvailable' => 'The hours during which this service or contact is available.',
158
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
159
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
160
-		    'interestRate' => 'The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.',
161
-		    'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
162
-		    'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
163
-		    'loanMortgageMandateAmount' => 'Amount of mortgage mandate that can be converted into a proper mortgage at a later stage.',
164
-		    'loanRepaymentForm' => 'A form of paying back money previously borrowed from a lender. Repayment usually takes the form of periodic payments that normally include part principal plus interest in each payment.',
165
-		    'loanTerm' => 'The duration of the loan or credit agreement.',
166
-		    'loanType' => 'The type of a loan or credit.',
167
-		    'logo' => 'An associated logo.',
168
-		    '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.',
169
-		    'name' => 'The name of the item.',
170
-		    '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.       ',
171
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
172
-		    'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
173
-		    '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.',
174
-		    'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
175
-		    'recourseLoan' => 'The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money.',
176
-		    'renegotiableLoan' => 'Whether the terms for payment of interest can be renegotiated during the life of the loan.',
177
-		    'requiredCollateral' => 'Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)',
178
-		    'review' => 'A review of the item.',
179
-		    '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.',
180
-		    'serviceArea' => 'The geographic area where the service is provided.',
181
-		    'serviceAudience' => 'The audience eligible for this service.',
182
-		    'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
183
-		    'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
184
-		    'slogan' => 'A slogan or motto associated with the item.',
185
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
186
-		    'termsOfService' => 'Human-readable terms of service documentation.',
187
-		    'url' => 'URL of the item.'
188
-		];
189
-	}
190
-
191
-
192
-	/**
193
-	 * @inheritdoc
194
-	 */
195
-	public function getGoogleRequiredSchema(): array
196
-	{
197
-		return ['description', 'name'];
198
-	}
199
-
200
-
201
-	/**
202
-	 * @inheritdoc
203
-	 */
204
-	public function getGoogleRecommendedSchema(): array
205
-	{
206
-		return ['image', 'url'];
207
-	}
208
-
209
-
210
-	/**
211
-	 * @inheritdoc
212
-	 */
213
-	public function defineRules(): array
214
-	{
215
-		$rules = parent::defineRules();
216
-		    $rules = array_merge($rules, [
217
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
218
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
219
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
220
-		    ]);
221
-
222
-		    return $rules;
223
-	}
27
+    use MortgageLoanTrait;
28
+    use LoanOrCreditTrait;
29
+    use FinancialProductTrait;
30
+    use ServiceTrait;
31
+    use IntangibleTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'MortgageLoan';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/MortgageLoan';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'LoanOrCredit';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'A loan in which property or real estate is used as collateral. (A loan securitized against some real estate.)';
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
+            'aggregateRating' => ['AggregateRating'],
80
+            'alternateName' => ['Text'],
81
+            'amount' => ['MonetaryAmount', 'Number'],
82
+            'annualPercentageRate' => ['Number', 'QuantitativeValue'],
83
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
84
+            'audience' => ['Audience'],
85
+            'availableChannel' => ['ServiceChannel'],
86
+            'award' => ['Text'],
87
+            'brand' => ['Brand', 'Organization'],
88
+            'broker' => ['Person', 'Organization'],
89
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
90
+            'currency' => ['Text'],
91
+            'description' => ['Text'],
92
+            'disambiguatingDescription' => ['Text'],
93
+            'domiciledMortgage' => ['Boolean'],
94
+            'feesAndCommissionsSpecification' => ['URL', 'Text'],
95
+            'gracePeriod' => ['Duration'],
96
+            'hasOfferCatalog' => ['OfferCatalog'],
97
+            'hoursAvailable' => ['OpeningHoursSpecification'],
98
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
99
+            'image' => ['URL', 'ImageObject'],
100
+            'interestRate' => ['Number', 'QuantitativeValue'],
101
+            'isRelatedTo' => ['Product', 'Service'],
102
+            'isSimilarTo' => ['Product', 'Service'],
103
+            'loanMortgageMandateAmount' => ['MonetaryAmount'],
104
+            'loanRepaymentForm' => ['RepaymentSpecification'],
105
+            'loanTerm' => ['QuantitativeValue'],
106
+            'loanType' => ['URL', 'Text'],
107
+            'logo' => ['ImageObject', 'URL'],
108
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
109
+            'name' => ['Text'],
110
+            'offers' => ['Demand', 'Offer'],
111
+            'potentialAction' => ['Action'],
112
+            'produces' => ['Thing'],
113
+            'provider' => ['Organization', 'Person'],
114
+            'providerMobility' => ['Text'],
115
+            'recourseLoan' => ['Boolean'],
116
+            'renegotiableLoan' => ['Boolean'],
117
+            'requiredCollateral' => ['Thing', 'Text'],
118
+            'review' => ['Review'],
119
+            'sameAs' => ['URL'],
120
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
121
+            'serviceAudience' => ['Audience'],
122
+            'serviceOutput' => ['Thing'],
123
+            'serviceType' => ['Text', 'GovernmentBenefitsType'],
124
+            'slogan' => ['Text'],
125
+            'subjectOf' => ['Event', 'CreativeWork'],
126
+            'termsOfService' => ['URL', 'Text'],
127
+            'url' => ['URL']
128
+        ];
129
+    }
130
+
131
+
132
+    /**
133
+     * @inheritdoc
134
+     */
135
+    public function getSchemaPropertyDescriptions(): array
136
+    {
137
+        return [
138
+            '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.',
139
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
140
+            'alternateName' => 'An alias for the item.',
141
+            'amount' => 'The amount of money.',
142
+            '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.',
143
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
144
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
145
+            'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
146
+            'award' => 'An award won by or for this item.',
147
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
148
+            '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.',
149
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
150
+            'currency' => 'The currency in which the monetary amount is expressed.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
151
+            'description' => 'A description of the item.',
152
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
153
+            'domiciledMortgage' => 'Whether borrower is a resident of the jurisdiction where the property is located.',
154
+            'feesAndCommissionsSpecification' => 'Description of fees, commissions, and other terms applied either to a class of financial product, or by a financial service organization.',
155
+            'gracePeriod' => 'The period of time after any due date that the borrower has to fulfil its obligations before a default (failure to pay) is deemed to have occurred.',
156
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
157
+            'hoursAvailable' => 'The hours during which this service or contact is available.',
158
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
159
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
160
+            'interestRate' => 'The interest rate, charged or paid, applicable to the financial product. Note: This is different from the calculated annualPercentageRate.',
161
+            'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
162
+            'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
163
+            'loanMortgageMandateAmount' => 'Amount of mortgage mandate that can be converted into a proper mortgage at a later stage.',
164
+            'loanRepaymentForm' => 'A form of paying back money previously borrowed from a lender. Repayment usually takes the form of periodic payments that normally include part principal plus interest in each payment.',
165
+            'loanTerm' => 'The duration of the loan or credit agreement.',
166
+            'loanType' => 'The type of a loan or credit.',
167
+            'logo' => 'An associated logo.',
168
+            '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.',
169
+            'name' => 'The name of the item.',
170
+            '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.       ',
171
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
172
+            'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
173
+            '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.',
174
+            'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
175
+            'recourseLoan' => 'The only way you get the money back in the event of default is the security. Recourse is where you still have the opportunity to go back to the borrower for the rest of the money.',
176
+            'renegotiableLoan' => 'Whether the terms for payment of interest can be renegotiated during the life of the loan.',
177
+            'requiredCollateral' => 'Assets required to secure loan or credit repayments. It may take form of third party pledge, goods, financial instruments (cash, securities, etc.)',
178
+            'review' => 'A review of the item.',
179
+            '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.',
180
+            'serviceArea' => 'The geographic area where the service is provided.',
181
+            'serviceAudience' => 'The audience eligible for this service.',
182
+            'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
183
+            'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
184
+            'slogan' => 'A slogan or motto associated with the item.',
185
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
186
+            'termsOfService' => 'Human-readable terms of service documentation.',
187
+            'url' => 'URL of the item.'
188
+        ];
189
+    }
190
+
191
+
192
+    /**
193
+     * @inheritdoc
194
+     */
195
+    public function getGoogleRequiredSchema(): array
196
+    {
197
+        return ['description', 'name'];
198
+    }
199
+
200
+
201
+    /**
202
+     * @inheritdoc
203
+     */
204
+    public function getGoogleRecommendedSchema(): array
205
+    {
206
+        return ['image', 'url'];
207
+    }
208
+
209
+
210
+    /**
211
+     * @inheritdoc
212
+     */
213
+    public function defineRules(): array
214
+    {
215
+        $rules = parent::defineRules();
216
+            $rules = array_merge($rules, [
217
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
218
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
219
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
220
+            ]);
221
+
222
+            return $rules;
223
+    }
224 224
 }
Please login to merge, or discard this patch.
src/models/jsonld/ExercisePlan.php 1 patch
Indentation   +366 added lines, -366 removed lines patch added patch discarded remove patch
@@ -25,387 +25,387 @@
 block discarded – undo
25 25
  */
26 26
 class ExercisePlan extends MetaJsonLd implements ExercisePlanInterface, CreativeWorkInterface, ThingInterface, PhysicalActivityInterface, LifestyleModificationInterface, MedicalEntityInterface
27 27
 {
28
-	use ExercisePlanTrait;
29
-	use CreativeWorkTrait;
30
-	use ThingTrait;
31
-	use PhysicalActivityTrait;
32
-	use LifestyleModificationTrait;
33
-	use MedicalEntityTrait;
28
+    use ExercisePlanTrait;
29
+    use CreativeWorkTrait;
30
+    use ThingTrait;
31
+    use PhysicalActivityTrait;
32
+    use LifestyleModificationTrait;
33
+    use MedicalEntityTrait;
34 34
 
35
-	/**
36
-	 * The Schema.org Type Name
37
-	 *
38
-	 * @var string
39
-	 */
40
-	public static $schemaTypeName = 'ExercisePlan';
35
+    /**
36
+     * The Schema.org Type Name
37
+     *
38
+     * @var string
39
+     */
40
+    public static $schemaTypeName = 'ExercisePlan';
41 41
 
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/ExercisePlan';
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/ExercisePlan';
48 48
 
49
-	/**
50
-	 * The Schema.org Type Extends
51
-	 *
52
-	 * @var string
53
-	 */
54
-	public static $schemaTypeExtends = 'CreativeWork';
49
+    /**
50
+     * The Schema.org Type Extends
51
+     *
52
+     * @var string
53
+     */
54
+    public static $schemaTypeExtends = 'CreativeWork';
55 55
 
56
-	/**
57
-	 * The Schema.org Type Description
58
-	 *
59
-	 * @var string
60
-	 */
61
-	public static $schemaTypeDescription = 'Fitness-related activity designed for a specific health-related purpose, including defined exercise routines as well as activity prescribed by a clinician.';
56
+    /**
57
+     * The Schema.org Type Description
58
+     *
59
+     * @var string
60
+     */
61
+    public static $schemaTypeDescription = 'Fitness-related activity designed for a specific health-related purpose, including defined exercise routines as well as activity prescribed by a clinician.';
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
-		    'about' => ['Thing'],
80
-		    'abstract' => ['Text'],
81
-		    'accessMode' => ['Text'],
82
-		    'accessModeSufficient' => ['ItemList'],
83
-		    'accessibilityAPI' => ['Text'],
84
-		    'accessibilityControl' => ['Text'],
85
-		    'accessibilityFeature' => ['Text'],
86
-		    'accessibilityHazard' => ['Text'],
87
-		    'accessibilitySummary' => ['Text'],
88
-		    'accountablePerson' => ['Person'],
89
-		    'acquireLicensePage' => ['CreativeWork', 'URL'],
90
-		    'activityDuration' => ['QuantitativeValue', 'Duration'],
91
-		    'activityFrequency' => ['QuantitativeValue', 'Text'],
92
-		    'additionalType' => ['URL'],
93
-		    'additionalVariable' => ['Text'],
94
-		    'aggregateRating' => ['AggregateRating'],
95
-		    'alternateName' => ['Text'],
96
-		    'alternativeHeadline' => ['Text'],
97
-		    'archivedAt' => ['WebPage', 'URL'],
98
-		    'assesses' => ['DefinedTerm', 'Text'],
99
-		    'associatedAnatomy' => ['SuperficialAnatomy', 'AnatomicalSystem', 'AnatomicalStructure'],
100
-		    'associatedMedia' => ['MediaObject'],
101
-		    'audience' => ['Audience'],
102
-		    'audio' => ['MusicRecording', 'AudioObject', 'Clip'],
103
-		    'author' => ['Organization', 'Person'],
104
-		    'award' => ['Text'],
105
-		    'awards' => ['Text'],
106
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
107
-		    'character' => ['Person'],
108
-		    'citation' => ['CreativeWork', 'Text'],
109
-		    'code' => ['MedicalCode'],
110
-		    'comment' => ['Comment'],
111
-		    'commentCount' => ['Integer'],
112
-		    'conditionsOfAccess' => ['Text'],
113
-		    'contentLocation' => ['Place'],
114
-		    'contentRating' => ['Text', 'Rating'],
115
-		    'contentReferenceTime' => ['DateTime'],
116
-		    'contributor' => ['Organization', 'Person'],
117
-		    'copyrightHolder' => ['Organization', 'Person'],
118
-		    'copyrightNotice' => ['Text'],
119
-		    'copyrightYear' => ['Number'],
120
-		    'correction' => ['URL', 'Text', 'CorrectionComment'],
121
-		    'countryOfOrigin' => ['Country'],
122
-		    'creativeWorkStatus' => ['DefinedTerm', 'Text'],
123
-		    'creator' => ['Person', 'Organization'],
124
-		    'creditText' => ['Text'],
125
-		    'dateCreated' => ['DateTime', 'Date'],
126
-		    'dateModified' => ['DateTime', 'Date'],
127
-		    'datePublished' => ['DateTime', 'Date'],
128
-		    'description' => ['Text'],
129
-		    'disambiguatingDescription' => ['Text'],
130
-		    'discussionUrl' => ['URL'],
131
-		    'editEIDR' => ['URL', 'Text'],
132
-		    'editor' => ['Person'],
133
-		    'educationalAlignment' => ['AlignmentObject'],
134
-		    'educationalLevel' => ['Text', 'URL', 'DefinedTerm'],
135
-		    'educationalUse' => ['DefinedTerm', 'Text'],
136
-		    'encoding' => ['MediaObject'],
137
-		    'encodingFormat' => ['URL', 'Text'],
138
-		    'encodings' => ['MediaObject'],
139
-		    'epidemiology' => ['Text'],
140
-		    'exampleOfWork' => ['CreativeWork'],
141
-		    'exerciseType' => ['Text'],
142
-		    'expires' => ['Date', 'DateTime'],
143
-		    'fileFormat' => ['Text', 'URL'],
144
-		    'funder' => ['Organization', 'Person'],
145
-		    'funding' => ['Grant'],
146
-		    'genre' => ['Text', 'URL'],
147
-		    'guideline' => ['MedicalGuideline'],
148
-		    'hasPart' => ['CreativeWork'],
149
-		    'headline' => ['Text'],
150
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
151
-		    'image' => ['URL', 'ImageObject'],
152
-		    'inLanguage' => ['Text', 'Language'],
153
-		    'intensity' => ['QuantitativeValue', 'Text'],
154
-		    'interactionStatistic' => ['InteractionCounter'],
155
-		    'interactivityType' => ['Text'],
156
-		    'interpretedAsClaim' => ['Claim'],
157
-		    'isAccessibleForFree' => ['Boolean'],
158
-		    'isBasedOn' => ['URL', 'Product', 'CreativeWork'],
159
-		    'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'],
160
-		    'isFamilyFriendly' => ['Boolean'],
161
-		    'isPartOf' => ['URL', 'CreativeWork'],
162
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
163
-		    'learningResourceType' => ['DefinedTerm', 'Text'],
164
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
165
-		    'license' => ['URL', 'CreativeWork'],
166
-		    'locationCreated' => ['Place'],
167
-		    'mainEntity' => ['Thing'],
168
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
169
-		    'maintainer' => ['Person', 'Organization'],
170
-		    'material' => ['Product', 'URL', 'Text'],
171
-		    'materialExtent' => ['QuantitativeValue', 'Text'],
172
-		    'medicineSystem' => ['MedicineSystem'],
173
-		    'mentions' => ['Thing'],
174
-		    'name' => ['Text'],
175
-		    'offers' => ['Demand', 'Offer'],
176
-		    'pathophysiology' => ['Text'],
177
-		    'pattern' => ['DefinedTerm', 'Text'],
178
-		    'position' => ['Text', 'Integer'],
179
-		    'potentialAction' => ['Action'],
180
-		    'producer' => ['Organization', 'Person'],
181
-		    'provider' => ['Organization', 'Person'],
182
-		    'publication' => ['PublicationEvent'],
183
-		    'publisher' => ['Organization', 'Person'],
184
-		    'publisherImprint' => ['Organization'],
185
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
186
-		    'recognizingAuthority' => ['Organization'],
187
-		    'recordedAt' => ['Event'],
188
-		    'releasedEvent' => ['PublicationEvent'],
189
-		    'relevantSpecialty' => ['MedicalSpecialty'],
190
-		    'repetitions' => ['Number', 'QuantitativeValue'],
191
-		    'restPeriods' => ['QuantitativeValue', 'Text'],
192
-		    'review' => ['Review'],
193
-		    'reviews' => ['Review'],
194
-		    'sameAs' => ['URL'],
195
-		    'schemaVersion' => ['URL', 'Text'],
196
-		    'sdDatePublished' => ['Date'],
197
-		    'sdLicense' => ['CreativeWork', 'URL'],
198
-		    'sdPublisher' => ['Organization', 'Person'],
199
-		    'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'],
200
-		    'sourceOrganization' => ['Organization'],
201
-		    'spatial' => ['Place'],
202
-		    'spatialCoverage' => ['Place'],
203
-		    'sponsor' => ['Organization', 'Person'],
204
-		    'study' => ['MedicalStudy'],
205
-		    'subjectOf' => ['Event', 'CreativeWork'],
206
-		    'teaches' => ['DefinedTerm', 'Text'],
207
-		    'temporal' => ['DateTime', 'Text'],
208
-		    'temporalCoverage' => ['URL', 'Text', 'DateTime'],
209
-		    'text' => ['Text'],
210
-		    'thumbnailUrl' => ['URL'],
211
-		    'timeRequired' => ['Duration'],
212
-		    'translationOfWork' => ['CreativeWork'],
213
-		    'translator' => ['Organization', 'Person'],
214
-		    'typicalAgeRange' => ['Text'],
215
-		    'url' => ['URL'],
216
-		    'usageInfo' => ['URL', 'CreativeWork'],
217
-		    'version' => ['Number', 'Text'],
218
-		    'video' => ['VideoObject', 'Clip'],
219
-		    'workExample' => ['CreativeWork'],
220
-		    'workTranslation' => ['CreativeWork'],
221
-		    'workload' => ['Energy', 'QuantitativeValue']
222
-		];
223
-	}
73
+    /**
74
+     * @inheritdoc
75
+     */
76
+    public function getSchemaPropertyExpectedTypes(): array
77
+    {
78
+        return [
79
+            'about' => ['Thing'],
80
+            'abstract' => ['Text'],
81
+            'accessMode' => ['Text'],
82
+            'accessModeSufficient' => ['ItemList'],
83
+            'accessibilityAPI' => ['Text'],
84
+            'accessibilityControl' => ['Text'],
85
+            'accessibilityFeature' => ['Text'],
86
+            'accessibilityHazard' => ['Text'],
87
+            'accessibilitySummary' => ['Text'],
88
+            'accountablePerson' => ['Person'],
89
+            'acquireLicensePage' => ['CreativeWork', 'URL'],
90
+            'activityDuration' => ['QuantitativeValue', 'Duration'],
91
+            'activityFrequency' => ['QuantitativeValue', 'Text'],
92
+            'additionalType' => ['URL'],
93
+            'additionalVariable' => ['Text'],
94
+            'aggregateRating' => ['AggregateRating'],
95
+            'alternateName' => ['Text'],
96
+            'alternativeHeadline' => ['Text'],
97
+            'archivedAt' => ['WebPage', 'URL'],
98
+            'assesses' => ['DefinedTerm', 'Text'],
99
+            'associatedAnatomy' => ['SuperficialAnatomy', 'AnatomicalSystem', 'AnatomicalStructure'],
100
+            'associatedMedia' => ['MediaObject'],
101
+            'audience' => ['Audience'],
102
+            'audio' => ['MusicRecording', 'AudioObject', 'Clip'],
103
+            'author' => ['Organization', 'Person'],
104
+            'award' => ['Text'],
105
+            'awards' => ['Text'],
106
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
107
+            'character' => ['Person'],
108
+            'citation' => ['CreativeWork', 'Text'],
109
+            'code' => ['MedicalCode'],
110
+            'comment' => ['Comment'],
111
+            'commentCount' => ['Integer'],
112
+            'conditionsOfAccess' => ['Text'],
113
+            'contentLocation' => ['Place'],
114
+            'contentRating' => ['Text', 'Rating'],
115
+            'contentReferenceTime' => ['DateTime'],
116
+            'contributor' => ['Organization', 'Person'],
117
+            'copyrightHolder' => ['Organization', 'Person'],
118
+            'copyrightNotice' => ['Text'],
119
+            'copyrightYear' => ['Number'],
120
+            'correction' => ['URL', 'Text', 'CorrectionComment'],
121
+            'countryOfOrigin' => ['Country'],
122
+            'creativeWorkStatus' => ['DefinedTerm', 'Text'],
123
+            'creator' => ['Person', 'Organization'],
124
+            'creditText' => ['Text'],
125
+            'dateCreated' => ['DateTime', 'Date'],
126
+            'dateModified' => ['DateTime', 'Date'],
127
+            'datePublished' => ['DateTime', 'Date'],
128
+            'description' => ['Text'],
129
+            'disambiguatingDescription' => ['Text'],
130
+            'discussionUrl' => ['URL'],
131
+            'editEIDR' => ['URL', 'Text'],
132
+            'editor' => ['Person'],
133
+            'educationalAlignment' => ['AlignmentObject'],
134
+            'educationalLevel' => ['Text', 'URL', 'DefinedTerm'],
135
+            'educationalUse' => ['DefinedTerm', 'Text'],
136
+            'encoding' => ['MediaObject'],
137
+            'encodingFormat' => ['URL', 'Text'],
138
+            'encodings' => ['MediaObject'],
139
+            'epidemiology' => ['Text'],
140
+            'exampleOfWork' => ['CreativeWork'],
141
+            'exerciseType' => ['Text'],
142
+            'expires' => ['Date', 'DateTime'],
143
+            'fileFormat' => ['Text', 'URL'],
144
+            'funder' => ['Organization', 'Person'],
145
+            'funding' => ['Grant'],
146
+            'genre' => ['Text', 'URL'],
147
+            'guideline' => ['MedicalGuideline'],
148
+            'hasPart' => ['CreativeWork'],
149
+            'headline' => ['Text'],
150
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
151
+            'image' => ['URL', 'ImageObject'],
152
+            'inLanguage' => ['Text', 'Language'],
153
+            'intensity' => ['QuantitativeValue', 'Text'],
154
+            'interactionStatistic' => ['InteractionCounter'],
155
+            'interactivityType' => ['Text'],
156
+            'interpretedAsClaim' => ['Claim'],
157
+            'isAccessibleForFree' => ['Boolean'],
158
+            'isBasedOn' => ['URL', 'Product', 'CreativeWork'],
159
+            'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'],
160
+            'isFamilyFriendly' => ['Boolean'],
161
+            'isPartOf' => ['URL', 'CreativeWork'],
162
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
163
+            'learningResourceType' => ['DefinedTerm', 'Text'],
164
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
165
+            'license' => ['URL', 'CreativeWork'],
166
+            'locationCreated' => ['Place'],
167
+            'mainEntity' => ['Thing'],
168
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
169
+            'maintainer' => ['Person', 'Organization'],
170
+            'material' => ['Product', 'URL', 'Text'],
171
+            'materialExtent' => ['QuantitativeValue', 'Text'],
172
+            'medicineSystem' => ['MedicineSystem'],
173
+            'mentions' => ['Thing'],
174
+            'name' => ['Text'],
175
+            'offers' => ['Demand', 'Offer'],
176
+            'pathophysiology' => ['Text'],
177
+            'pattern' => ['DefinedTerm', 'Text'],
178
+            'position' => ['Text', 'Integer'],
179
+            'potentialAction' => ['Action'],
180
+            'producer' => ['Organization', 'Person'],
181
+            'provider' => ['Organization', 'Person'],
182
+            'publication' => ['PublicationEvent'],
183
+            'publisher' => ['Organization', 'Person'],
184
+            'publisherImprint' => ['Organization'],
185
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
186
+            'recognizingAuthority' => ['Organization'],
187
+            'recordedAt' => ['Event'],
188
+            'releasedEvent' => ['PublicationEvent'],
189
+            'relevantSpecialty' => ['MedicalSpecialty'],
190
+            'repetitions' => ['Number', 'QuantitativeValue'],
191
+            'restPeriods' => ['QuantitativeValue', 'Text'],
192
+            'review' => ['Review'],
193
+            'reviews' => ['Review'],
194
+            'sameAs' => ['URL'],
195
+            'schemaVersion' => ['URL', 'Text'],
196
+            'sdDatePublished' => ['Date'],
197
+            'sdLicense' => ['CreativeWork', 'URL'],
198
+            'sdPublisher' => ['Organization', 'Person'],
199
+            'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'],
200
+            'sourceOrganization' => ['Organization'],
201
+            'spatial' => ['Place'],
202
+            'spatialCoverage' => ['Place'],
203
+            'sponsor' => ['Organization', 'Person'],
204
+            'study' => ['MedicalStudy'],
205
+            'subjectOf' => ['Event', 'CreativeWork'],
206
+            'teaches' => ['DefinedTerm', 'Text'],
207
+            'temporal' => ['DateTime', 'Text'],
208
+            'temporalCoverage' => ['URL', 'Text', 'DateTime'],
209
+            'text' => ['Text'],
210
+            'thumbnailUrl' => ['URL'],
211
+            'timeRequired' => ['Duration'],
212
+            'translationOfWork' => ['CreativeWork'],
213
+            'translator' => ['Organization', 'Person'],
214
+            'typicalAgeRange' => ['Text'],
215
+            'url' => ['URL'],
216
+            'usageInfo' => ['URL', 'CreativeWork'],
217
+            'version' => ['Number', 'Text'],
218
+            'video' => ['VideoObject', 'Clip'],
219
+            'workExample' => ['CreativeWork'],
220
+            'workTranslation' => ['CreativeWork'],
221
+            'workload' => ['Energy', 'QuantitativeValue']
222
+        ];
223
+    }
224 224
 
225 225
 
226
-	/**
227
-	 * @inheritdoc
228
-	 */
229
-	public function getSchemaPropertyDescriptions(): array
230
-	{
231
-		return [
232
-		    'about' => 'The subject matter of the content.',
233
-		    'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].',
234
-		    'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).',
235
-		    'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).',
236
-		    'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).',
237
-		    'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).',
238
-		    'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).',
239
-		    'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).',
240
-		    'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."',
241
-		    'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.',
242
-		    'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.',
243
-		    'activityDuration' => 'Length of time to engage in the activity.',
244
-		    'activityFrequency' => 'How often one should engage in the activity.',
245
-		    '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.',
246
-		    'additionalVariable' => 'Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc.',
247
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
248
-		    'alternateName' => 'An alias for the item.',
249
-		    'alternativeHeadline' => 'A secondary title of the CreativeWork.',
250
-		    'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.',
251
-		    'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.',
252
-		    'associatedAnatomy' => 'The anatomy of the underlying organ system or structures associated with this entity.',
253
-		    'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.',
254
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
255
-		    'audio' => 'An embedded audio object.',
256
-		    'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.',
257
-		    'award' => 'An award won by or for this item.',
258
-		    'awards' => 'Awards won by or for this item.',
259
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
260
-		    'character' => 'Fictional person connected with a creative work.',
261
-		    'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.',
262
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
263
-		    'comment' => 'Comments, typically from users.',
264
-		    'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.',
265
-		    'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.  For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ',
266
-		    'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.',
267
-		    'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.',
268
-		    'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.',
269
-		    'contributor' => 'A secondary contributor to the CreativeWork or Event.',
270
-		    'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.',
271
-		    'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.',
272
-		    'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.',
273
-		    'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.',
274
-		    '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.',
275
-		    'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.',
276
-		    'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.',
277
-		    'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.',
278
-		    'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.',
279
-		    'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.',
280
-		    'datePublished' => 'Date of first broadcast/publication.',
281
-		    'description' => 'A description of the item.',
282
-		    '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.',
283
-		    'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.',
284
-		    'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television.  For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3".  Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ',
285
-		    'editor' => 'Specifies the Person who edited the CreativeWork.',
286
-		    'educationalAlignment' => 'An alignment to an established educational framework.  This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.',
287
-		    'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.',
288
-		    'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.',
289
-		    'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.',
290
-		    'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.  In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.  Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.',
291
-		    'encodings' => 'A media object that encodes this CreativeWork.',
292
-		    'epidemiology' => 'The characteristics of associated patients, such as age, gender, race etc.',
293
-		    'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.',
294
-		    'exerciseType' => 'Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.',
295
-		    'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.',
296
-		    'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.',
297
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
298
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
299
-		    'genre' => 'Genre of the creative work, broadcast channel or group.',
300
-		    'guideline' => 'A medical guideline related to this entity.',
301
-		    'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).',
302
-		    'headline' => 'Headline of the article.',
303
-		    '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.         ',
304
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
305
-		    'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
306
-		    'intensity' => 'Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.',
307
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
308
-		    'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.',
309
-		    'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].',
310
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
311
-		    'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.',
312
-		    'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.',
313
-		    'isFamilyFriendly' => 'Indicates whether this content is family friendly.',
314
-		    'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.',
315
-		    '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.',
316
-		    'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.',
317
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
318
-		    'license' => 'A license document that applies to this content, typically indicated by URL.',
319
-		    'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.',
320
-		    'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.',
321
-		    '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.',
322
-		    'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always  possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work.       ',
323
-		    'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.',
324
-		    'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.',
325
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
326
-		    'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.',
327
-		    'name' => 'The name of the item.',
328
-		    '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.       ',
329
-		    'pathophysiology' => 'Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.',
330
-		    '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.',
331
-		    'position' => 'The position of an item in a series or sequence of items.',
332
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
333
-		    'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).',
334
-		    '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.',
335
-		    'publication' => 'A publication event associated with the item.',
336
-		    'publisher' => 'The publisher of the creative work.',
337
-		    'publisherImprint' => 'The publishing division which published the comic.',
338
-		    'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
339
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
340
-		    'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.',
341
-		    'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.',
342
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
343
-		    'repetitions' => 'Number of times one should repeat the activity.',
344
-		    'restPeriods' => 'How often one should break from the activity.',
345
-		    'review' => 'A review of the item.',
346
-		    'reviews' => 'Review of the item.',
347
-		    '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.',
348
-		    'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to     indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.',
349
-		    'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]',
350
-		    'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.',
351
-		    'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.',
352
-		    '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. ',
353
-		    'sourceOrganization' => 'The Organization on whose behalf the creator was working.',
354
-		    'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.',
355
-		    'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of       contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates       areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.',
356
-		    'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
357
-		    'study' => 'A medical study or trial related to this entity.',
358
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
359
-		    'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.',
360
-		    'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.',
361
-		    'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In       the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL.       Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945".  Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.',
362
-		    'text' => 'The textual content of this CreativeWork.',
363
-		    'thumbnailUrl' => 'A thumbnail image relevant to the Thing.',
364
-		    'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.',
365
-		    'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.',
366
-		    'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
367
-		    'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
368
-		    'url' => 'URL of the item.',
369
-		    'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.  This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.',
370
-		    'version' => 'The version of the CreativeWork embodied by a specified resource.',
371
-		    'video' => 'An embedded video object.',
372
-		    'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.',
373
-		    'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese  translation Tây du ký bình khảo.',
374
-		    'workload' => 'Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.'
375
-		];
376
-	}
226
+    /**
227
+     * @inheritdoc
228
+     */
229
+    public function getSchemaPropertyDescriptions(): array
230
+    {
231
+        return [
232
+            'about' => 'The subject matter of the content.',
233
+            'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].',
234
+            'accessMode' => 'The human sensory perceptual system or cognitive faculty through which a person may process or perceive information. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessMode-vocabulary).',
235
+            'accessModeSufficient' => 'A list of single or combined accessModes that are sufficient to understand all the intellectual content of a resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessModeSufficient-vocabulary).',
236
+            'accessibilityAPI' => 'Indicates that the resource is compatible with the referenced accessibility API. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityAPI-vocabulary).',
237
+            'accessibilityControl' => 'Identifies input methods that are sufficient to fully control the described resource. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityControl-vocabulary).',
238
+            'accessibilityFeature' => 'Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityFeature-vocabulary).',
239
+            'accessibilityHazard' => 'A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3. Values should be drawn from the [approved vocabulary](https://www.w3.org/2021/a11y-discov-vocab/latest/#accessibilityHazard-vocabulary).',
240
+            'accessibilitySummary' => 'A human-readable summary of specific accessibility features or deficiencies, consistent with the other accessibility metadata but expressing subtleties such as "short descriptions are present but long descriptions will be needed for non-visual users" or "short descriptions are present and no long descriptions are needed."',
241
+            'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.',
242
+            'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.',
243
+            'activityDuration' => 'Length of time to engage in the activity.',
244
+            'activityFrequency' => 'How often one should engage in the activity.',
245
+            '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.',
246
+            'additionalVariable' => 'Any additional component of the exercise prescription that may need to be articulated to the patient. This may include the order of exercises, the number of repetitions of movement, quantitative distance, progressions over time, etc.',
247
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
248
+            'alternateName' => 'An alias for the item.',
249
+            'alternativeHeadline' => 'A secondary title of the CreativeWork.',
250
+            'archivedAt' => 'Indicates a page or other link involved in archival of a [[CreativeWork]]. In the case of [[MediaReview]], the items in a [[MediaReviewItem]] may often become inaccessible, but be archived by archival, journalistic, activist, or law enforcement organizations. In such cases, the referenced page may not directly publish the content.',
251
+            'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.',
252
+            'associatedAnatomy' => 'The anatomy of the underlying organ system or structures associated with this entity.',
253
+            'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.',
254
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
255
+            'audio' => 'An embedded audio object.',
256
+            'author' => 'The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.',
257
+            'award' => 'An award won by or for this item.',
258
+            'awards' => 'Awards won by or for this item.',
259
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
260
+            'character' => 'Fictional person connected with a creative work.',
261
+            'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.',
262
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
263
+            'comment' => 'Comments, typically from users.',
264
+            'commentCount' => 'The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere.',
265
+            'conditionsOfAccess' => 'Conditions that affect the availability of, or method(s) of access to, an item. Typically used for real world items such as an [[ArchiveComponent]] held by an [[ArchiveOrganization]]. This property is not suitable for use as a general Web access control mechanism. It is expressed only in natural language.  For example "Available by appointment from the Reading Room" or "Accessible only from logged-in accounts ". ',
266
+            'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.',
267
+            'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.',
268
+            'contentReferenceTime' => 'The specific time described by a creative work, for works (e.g. articles, video objects etc.) that emphasise a particular moment within an Event.',
269
+            'contributor' => 'A secondary contributor to the CreativeWork or Event.',
270
+            'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.',
271
+            'copyrightNotice' => 'Text of a notice appropriate for describing the copyright aspects of this Creative Work, ideally indicating the owner of the copyright for the Work.',
272
+            'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.',
273
+            'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.',
274
+            '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.',
275
+            'creativeWorkStatus' => 'The status of a creative work in terms of its stage in a lifecycle. Example terms include Incomplete, Draft, Published, Obsolete. Some organizations define a set of terms for the stages of their publication lifecycle.',
276
+            'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.',
277
+            'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.',
278
+            'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.',
279
+            'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.',
280
+            'datePublished' => 'Date of first broadcast/publication.',
281
+            'description' => 'A description of the item.',
282
+            '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.',
283
+            'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.',
284
+            'editEIDR' => 'An [EIDR](https://eidr.org/) (Entertainment Identifier Registry) [[identifier]] representing a specific edit / edition for a work of film or television.  For example, the motion picture known as "Ghostbusters" whose [[titleEIDR]] is "10.5240/7EC7-228A-510A-053E-CBB8-J" has several edits, e.g. "10.5240/1F2A-E1C5-680A-14C6-E76B-I" and "10.5240/8A35-3BEE-6497-5D12-9E4F-3".  Since schema.org types like [[Movie]] and [[TVEpisode]] can be used for both works and their multiple expressions, it is possible to use [[titleEIDR]] alone (for a general description), or alongside [[editEIDR]] for a more edit-specific description. ',
285
+            'editor' => 'Specifies the Person who edited the CreativeWork.',
286
+            'educationalAlignment' => 'An alignment to an established educational framework.  This property should not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.',
287
+            'educationalLevel' => 'The level in terms of progression through an educational or training context. Examples of educational levels include \'beginner\', \'intermediate\' or \'advanced\', and formal sets of level indicators.',
288
+            'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.',
289
+            'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.',
290
+            'encodingFormat' => 'Media type typically expressed using a MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml) and [MDN reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)), e.g. application/zip for a SoftwareApplication binary, audio/mpeg for .mp3 etc.  In cases where a [[CreativeWork]] has several media type representations, [[encoding]] can be used to indicate each [[MediaObject]] alongside particular [[encodingFormat]] information.  Unregistered or niche encoding and file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia/Wikidata entry.',
291
+            'encodings' => 'A media object that encodes this CreativeWork.',
292
+            'epidemiology' => 'The characteristics of associated patients, such as age, gender, race etc.',
293
+            'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.',
294
+            'exerciseType' => 'Type(s) of exercise or activity, such as strength training, flexibility training, aerobics, cardiac rehabilitation, etc.',
295
+            'expires' => 'Date the content expires and is no longer useful or available. For example a [[VideoObject]] or [[NewsArticle]] whose availability or relevance is time-limited, or a [[ClaimReview]] fact check whose publisher wants to indicate that it may no longer be relevant (or helpful to highlight) after some date.',
296
+            'fileFormat' => 'Media type, typically MIME format (see [IANA site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of the content, e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, \'encoding\' can be used to indicate each MediaObject alongside particular fileFormat information. Unregistered or niche file formats can be indicated instead via the most appropriate URL, e.g. defining Web page or a Wikipedia entry.',
297
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
298
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
299
+            'genre' => 'Genre of the creative work, broadcast channel or group.',
300
+            'guideline' => 'A medical guideline related to this entity.',
301
+            'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).',
302
+            'headline' => 'Headline of the article.',
303
+            '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.         ',
304
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
305
+            'inLanguage' => 'The language of the content or performance or used in an action. Please use one of the language codes from the [IETF BCP 47 standard](http://tools.ietf.org/html/bcp47). See also [[availableLanguage]].',
306
+            'intensity' => 'Quantitative measure gauging the degree of force involved in the exercise, for example, heartbeats per minute. May include the velocity of the movement.',
307
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
308
+            'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.',
309
+            'interpretedAsClaim' => 'Used to indicate a specific claim contained, implied, translated or refined from the content of a [[MediaObject]] or other [[CreativeWork]]. The interpreting party can be indicated using [[claimInterpreter]].',
310
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
311
+            'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.',
312
+            'isBasedOnUrl' => 'A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html.',
313
+            'isFamilyFriendly' => 'Indicates whether this content is family friendly.',
314
+            'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.',
315
+            '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.',
316
+            'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.',
317
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
318
+            'license' => 'A license document that applies to this content, typically indicated by URL.',
319
+            'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.',
320
+            'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.',
321
+            '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.',
322
+            'maintainer' => 'A maintainer of a [[Dataset]], software package ([[SoftwareApplication]]), or other [[Project]]. A maintainer is a [[Person]] or [[Organization]] that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When [[maintainer]] is applied to a specific version of something e.g. a particular version or packaging of a [[Dataset]], it is always  possible that the upstream source has a different maintainer. The [[isBasedOn]] property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work.       ',
323
+            'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.',
324
+            'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.',
325
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
326
+            'mentions' => 'Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.',
327
+            'name' => 'The name of the item.',
328
+            '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.       ',
329
+            'pathophysiology' => 'Changes in the normal mechanical, physical, and biochemical functions that are associated with this activity or condition.',
330
+            '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.',
331
+            'position' => 'The position of an item in a series or sequence of items.',
332
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
333
+            'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).',
334
+            '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.',
335
+            'publication' => 'A publication event associated with the item.',
336
+            'publisher' => 'The publisher of the creative work.',
337
+            'publisherImprint' => 'The publishing division which published the comic.',
338
+            'publishingPrinciples' => 'The publishingPrinciples property indicates (typically via [[URL]]) a document describing the editorial principles of an [[Organization]] (or individual, e.g. a [[Person]] writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are those of the party primarily responsible for the creation of the [[CreativeWork]].  While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a [[funder]]) can be expressed using schema.org terminology. ',
339
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
340
+            'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.',
341
+            'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.',
342
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
343
+            'repetitions' => 'Number of times one should repeat the activity.',
344
+            'restPeriods' => 'How often one should break from the activity.',
345
+            'review' => 'A review of the item.',
346
+            'reviews' => 'Review of the item.',
347
+            '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.',
348
+            'schemaVersion' => 'Indicates (by URL or string) a particular version of a schema used in some CreativeWork. This property was created primarily to     indicate the use of a specific schema.org release, e.g. ```10.0``` as a simple string, or more explicitly via URL, ```https://schema.org/docs/releases.html#v10.0```. There may be situations in which other schemas might usefully be referenced this way, e.g. ```http://dublincore.org/specifications/dublin-core/dces/1999-07-02/``` but this has not been carefully explored in the community.',
349
+            'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]',
350
+            'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.',
351
+            'sdPublisher' => 'Indicates the party responsible for generating and publishing the current structured data markup, typically in cases where the structured data is derived automatically from existing published content but published on a different site. For example, student projects and open data initiatives often re-publish existing content with more explicitly structured metadata. The [[sdPublisher]] property helps make such practices more explicit.',
352
+            '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. ',
353
+            'sourceOrganization' => 'The Organization on whose behalf the creator was working.',
354
+            'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.',
355
+            'spatialCoverage' => 'The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of       contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates       areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York.',
356
+            'sponsor' => 'A person or organization that supports a thing through a pledge, promise, or financial contribution. E.g. a sponsor of a Medical Study or a corporate sponsor of an event.',
357
+            'study' => 'A medical study or trial related to this entity.',
358
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
359
+            'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.',
360
+            'temporal' => 'The "temporal" property can be used in cases where more specific properties (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], [[datePublished]]) are not known to be appropriate.',
361
+            'temporalCoverage' => 'The temporalCoverage of a CreativeWork indicates the period that the content applies to, i.e. that it describes, either as a DateTime or as a textual string indicating a time period in [ISO 8601 time interval format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In       the case of a Dataset it will typically indicate the relevant time period in a precise notation (e.g. for a 2011 census dataset, the year 2011 would be written "2011/2012"). Other forms of content, e.g. ScholarlyArticle, Book, TVSeries or TVEpisode, may indicate their temporalCoverage in broader terms - textually or via well-known URL.       Written works such as books may sometimes have precise temporal coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 interval format format via "1939/1945".  Open-ended date ranges can be written with ".." in place of the end date. For example, "2015-11/.." indicates a range beginning in November 2015 and with no specified final date. This is tentative and might be updated in future when ISO 8601 is officially updated.',
362
+            'text' => 'The textual content of this CreativeWork.',
363
+            'thumbnailUrl' => 'A thumbnail image relevant to the Thing.',
364
+            'timeRequired' => 'Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. \'PT30M\', \'PT1H25M\'.',
365
+            'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.',
366
+            'translator' => 'Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.',
367
+            'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
368
+            'url' => 'URL of the item.',
369
+            'usageInfo' => 'The schema.org [[usageInfo]] property indicates further information about a [[CreativeWork]]. This property is applicable both to works that are freely available and to those that require payment or other transactions. It can reference additional information, e.g. community expectations on preferred linking and citation conventions, as well as purchasing details. For something that can be commercially licensed, usageInfo can provide detailed, resource-specific information about licensing options.  This property can be used alongside the license property which indicates license(s) applicable to some piece of content. The usageInfo property can provide information about other licensing options, e.g. acquiring commercial usage rights for an image that is also available under non-commercial creative commons licenses.',
370
+            'version' => 'The version of the CreativeWork embodied by a specified resource.',
371
+            'video' => 'An embedded video object.',
372
+            'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.',
373
+            'workTranslation' => 'A work that is a translation of the content of this work. E.g. 西遊記 has an English workTranslation “Journey to the West”, a German workTranslation “Monkeys Pilgerfahrt” and a Vietnamese  translation Tây du ký bình khảo.',
374
+            'workload' => 'Quantitative measure of the physiologic output of the exercise; also referred to as energy expenditure.'
375
+        ];
376
+    }
377 377
 
378 378
 
379
-	/**
380
-	 * @inheritdoc
381
-	 */
382
-	public function getGoogleRequiredSchema(): array
383
-	{
384
-		return ['description', 'name'];
385
-	}
379
+    /**
380
+     * @inheritdoc
381
+     */
382
+    public function getGoogleRequiredSchema(): array
383
+    {
384
+        return ['description', 'name'];
385
+    }
386 386
 
387 387
 
388
-	/**
389
-	 * @inheritdoc
390
-	 */
391
-	public function getGoogleRecommendedSchema(): array
392
-	{
393
-		return ['image', 'url'];
394
-	}
388
+    /**
389
+     * @inheritdoc
390
+     */
391
+    public function getGoogleRecommendedSchema(): array
392
+    {
393
+        return ['image', 'url'];
394
+    }
395 395
 
396 396
 
397
-	/**
398
-	 * @inheritdoc
399
-	 */
400
-	public function defineRules(): array
401
-	{
402
-		$rules = parent::defineRules();
403
-		    $rules = array_merge($rules, [
404
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
405
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
406
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
407
-		    ]);
397
+    /**
398
+     * @inheritdoc
399
+     */
400
+    public function defineRules(): array
401
+    {
402
+        $rules = parent::defineRules();
403
+            $rules = array_merge($rules, [
404
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
405
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
406
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
407
+            ]);
408 408
 
409
-		    return $rules;
410
-	}
409
+            return $rules;
410
+    }
411 411
 }
Please login to merge, or discard this patch.
src/models/jsonld/AlbumRelease.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 AlbumRelease extends MetaJsonLd implements AlbumReleaseInterface, MusicAlbumReleaseTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use AlbumReleaseTrait;
27
-	use MusicAlbumReleaseTypeTrait;
28
-	use EnumerationTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'AlbumRelease';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/AlbumRelease';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'MusicAlbumReleaseType';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'AlbumRelease.';
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 AlbumReleaseTrait;
27
+    use MusicAlbumReleaseTypeTrait;
28
+    use EnumerationTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'AlbumRelease';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/AlbumRelease';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'MusicAlbumReleaseType';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'AlbumRelease.';
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/OrderAction.php 1 patch
Indentation   +151 added lines, -151 removed lines patch added patch discarded remove patch
@@ -23,155 +23,155 @@
 block discarded – undo
23 23
  */
24 24
 class OrderAction extends MetaJsonLd implements OrderActionInterface, TradeActionInterface, ActionInterface, ThingInterface
25 25
 {
26
-	use OrderActionTrait;
27
-	use TradeActionTrait;
28
-	use ActionTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'OrderAction';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/OrderAction';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'TradeAction';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'An agent orders an object/product/service to be delivered/sent.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'actionStatus' => ['ActionStatusType'],
76
-		    'additionalType' => ['URL'],
77
-		    'agent' => ['Organization', 'Person'],
78
-		    'alternateName' => ['Text'],
79
-		    'deliveryMethod' => ['DeliveryMethod'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'endTime' => ['DateTime', 'Time'],
83
-		    'error' => ['Thing'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'instrument' => ['Thing'],
87
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
-		    'name' => ['Text'],
90
-		    'object' => ['Thing'],
91
-		    'participant' => ['Organization', 'Person'],
92
-		    'potentialAction' => ['Action'],
93
-		    'price' => ['Text', 'Number'],
94
-		    'priceCurrency' => ['Text'],
95
-		    'priceSpecification' => ['PriceSpecification'],
96
-		    'provider' => ['Organization', 'Person'],
97
-		    'result' => ['Thing'],
98
-		    'sameAs' => ['URL'],
99
-		    'startTime' => ['Time', 'DateTime'],
100
-		    'subjectOf' => ['Event', 'CreativeWork'],
101
-		    'target' => ['URL', 'EntryPoint'],
102
-		    'url' => ['URL']
103
-		];
104
-	}
105
-
106
-
107
-	/**
108
-	 * @inheritdoc
109
-	 */
110
-	public function getSchemaPropertyDescriptions(): array
111
-	{
112
-		return [
113
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
114
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
115
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
116
-		    'alternateName' => 'An alias for the item.',
117
-		    'deliveryMethod' => 'A sub property of instrument. The method of delivery.',
118
-		    'description' => 'A description of the item.',
119
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
120
-		    '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.',
121
-		    'error' => 'For failed actions, more information on the cause of the failure.',
122
-		    '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.         ',
123
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
124
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
125
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
126
-		    '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.',
127
-		    'name' => 'The name of the item.',
128
-		    '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*.',
129
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
130
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
131
-		    'price' => 'The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.  Usage guidelines:  * Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as \'$\' in the value. * Use \'.\' (Unicode \'FULL STOP\' (U+002E)) rather than \',\' to indicate a decimal point. Avoid using these symbols as a readability separator. * Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting. * Use values from 0123456789 (Unicode \'DIGIT ZERO\' (U+0030) to \'DIGIT NINE\' (U+0039)) rather than superficially similar Unicode symbols.       ',
132
-		    'priceCurrency' => 'The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
133
-		    'priceSpecification' => 'One or more detailed price specifications, indicating the unit price and delivery or payment charges.',
134
-		    '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.',
135
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
136
-		    '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.',
137
-		    '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.',
138
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
139
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
140
-		    'url' => 'URL of the item.'
141
-		];
142
-	}
143
-
144
-
145
-	/**
146
-	 * @inheritdoc
147
-	 */
148
-	public function getGoogleRequiredSchema(): array
149
-	{
150
-		return ['description', 'name'];
151
-	}
152
-
153
-
154
-	/**
155
-	 * @inheritdoc
156
-	 */
157
-	public function getGoogleRecommendedSchema(): array
158
-	{
159
-		return ['image', 'url'];
160
-	}
161
-
162
-
163
-	/**
164
-	 * @inheritdoc
165
-	 */
166
-	public function defineRules(): array
167
-	{
168
-		$rules = parent::defineRules();
169
-		    $rules = array_merge($rules, [
170
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
171
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
172
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
173
-		    ]);
174
-
175
-		    return $rules;
176
-	}
26
+    use OrderActionTrait;
27
+    use TradeActionTrait;
28
+    use ActionTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'OrderAction';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/OrderAction';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'TradeAction';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'An agent orders an object/product/service to be delivered/sent.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'actionStatus' => ['ActionStatusType'],
76
+            'additionalType' => ['URL'],
77
+            'agent' => ['Organization', 'Person'],
78
+            'alternateName' => ['Text'],
79
+            'deliveryMethod' => ['DeliveryMethod'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'endTime' => ['DateTime', 'Time'],
83
+            'error' => ['Thing'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'instrument' => ['Thing'],
87
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
+            'name' => ['Text'],
90
+            'object' => ['Thing'],
91
+            'participant' => ['Organization', 'Person'],
92
+            'potentialAction' => ['Action'],
93
+            'price' => ['Text', 'Number'],
94
+            'priceCurrency' => ['Text'],
95
+            'priceSpecification' => ['PriceSpecification'],
96
+            'provider' => ['Organization', 'Person'],
97
+            'result' => ['Thing'],
98
+            'sameAs' => ['URL'],
99
+            'startTime' => ['Time', 'DateTime'],
100
+            'subjectOf' => ['Event', 'CreativeWork'],
101
+            'target' => ['URL', 'EntryPoint'],
102
+            'url' => ['URL']
103
+        ];
104
+    }
105
+
106
+
107
+    /**
108
+     * @inheritdoc
109
+     */
110
+    public function getSchemaPropertyDescriptions(): array
111
+    {
112
+        return [
113
+            'actionStatus' => 'Indicates the current disposition of the Action.',
114
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
115
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
116
+            'alternateName' => 'An alias for the item.',
117
+            'deliveryMethod' => 'A sub property of instrument. The method of delivery.',
118
+            'description' => 'A description of the item.',
119
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
120
+            '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.',
121
+            'error' => 'For failed actions, more information on the cause of the failure.',
122
+            '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.         ',
123
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
124
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
125
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
126
+            '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.',
127
+            'name' => 'The name of the item.',
128
+            '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*.',
129
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
130
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
131
+            'price' => 'The offer price of a product, or of a price component when attached to PriceSpecification and its subtypes.  Usage guidelines:  * Use the [[priceCurrency]] property (with standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR") instead of including [ambiguous symbols](http://en.wikipedia.org/wiki/Dollar_sign#Currencies_that_use_the_dollar_or_peso_sign) such as \'$\' in the value. * Use \'.\' (Unicode \'FULL STOP\' (U+002E)) rather than \',\' to indicate a decimal point. Avoid using these symbols as a readability separator. * Note that both [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute) and Microdata syntax allow the use of a "content=" attribute for publishing simple machine-readable values alongside more human-friendly formatting. * Use values from 0123456789 (Unicode \'DIGIT ZERO\' (U+0030) to \'DIGIT NINE\' (U+0039)) rather than superficially similar Unicode symbols.       ',
132
+            'priceCurrency' => 'The currency of the price, or a price component when attached to [[PriceSpecification]] and its subtypes.  Use standard formats: [ISO 4217 currency format](http://en.wikipedia.org/wiki/ISO_4217), e.g. "USD"; [Ticker symbol](https://en.wikipedia.org/wiki/List_of_cryptocurrencies) for cryptocurrencies, e.g. "BTC"; well known names for [Local Exchange Trading Systems](https://en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS) and other currency types, e.g. "Ithaca HOUR".',
133
+            'priceSpecification' => 'One or more detailed price specifications, indicating the unit price and delivery or payment charges.',
134
+            '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.',
135
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
136
+            '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.',
137
+            '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.',
138
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
139
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
140
+            'url' => 'URL of the item.'
141
+        ];
142
+    }
143
+
144
+
145
+    /**
146
+     * @inheritdoc
147
+     */
148
+    public function getGoogleRequiredSchema(): array
149
+    {
150
+        return ['description', 'name'];
151
+    }
152
+
153
+
154
+    /**
155
+     * @inheritdoc
156
+     */
157
+    public function getGoogleRecommendedSchema(): array
158
+    {
159
+        return ['image', 'url'];
160
+    }
161
+
162
+
163
+    /**
164
+     * @inheritdoc
165
+     */
166
+    public function defineRules(): array
167
+    {
168
+        $rules = parent::defineRules();
169
+            $rules = array_merge($rules, [
170
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
171
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
172
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
173
+            ]);
174
+
175
+            return $rules;
176
+    }
177 177
 }
Please login to merge, or discard this patch.
src/models/jsonld/PaymentDue.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -23,127 +23,127 @@
 block discarded – undo
23 23
  */
24 24
 class PaymentDue extends MetaJsonLd implements PaymentDueInterface, PaymentStatusTypeInterface, StatusEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use PaymentDueTrait;
27
-	use PaymentStatusTypeTrait;
28
-	use StatusEnumerationTrait;
29
-	use EnumerationTrait;
30
-	use IntangibleTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'PaymentDue';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/PaymentDue';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'PaymentStatusType';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'The payment is due, but still within an acceptable time to be received.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
26
+    use PaymentDueTrait;
27
+    use PaymentStatusTypeTrait;
28
+    use StatusEnumerationTrait;
29
+    use EnumerationTrait;
30
+    use IntangibleTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'PaymentDue';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/PaymentDue';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'PaymentStatusType';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'The payment is due, but still within an acceptable time to be received.';
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/AddAction.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 AddAction extends MetaJsonLd implements AddActionInterface, UpdateActionInterface, ActionInterface, ThingInterface
25 25
 {
26
-	use AddActionTrait;
27
-	use UpdateActionTrait;
28
-	use ActionTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'AddAction';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/AddAction';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'UpdateAction';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'The act of editing by adding an object to a collection.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'actionStatus' => ['ActionStatusType'],
76
-		    'additionalType' => ['URL'],
77
-		    'agent' => ['Organization', 'Person'],
78
-		    'alternateName' => ['Text'],
79
-		    'collection' => ['Thing'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'endTime' => ['DateTime', 'Time'],
83
-		    'error' => ['Thing'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'instrument' => ['Thing'],
87
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
-		    'name' => ['Text'],
90
-		    'object' => ['Thing'],
91
-		    'participant' => ['Organization', 'Person'],
92
-		    'potentialAction' => ['Action'],
93
-		    'provider' => ['Organization', 'Person'],
94
-		    'result' => ['Thing'],
95
-		    'sameAs' => ['URL'],
96
-		    'startTime' => ['Time', 'DateTime'],
97
-		    'subjectOf' => ['Event', 'CreativeWork'],
98
-		    'target' => ['URL', 'EntryPoint'],
99
-		    'targetCollection' => ['Thing'],
100
-		    'url' => ['URL']
101
-		];
102
-	}
103
-
104
-
105
-	/**
106
-	 * @inheritdoc
107
-	 */
108
-	public function getSchemaPropertyDescriptions(): array
109
-	{
110
-		return [
111
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
112
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
113
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
114
-		    'alternateName' => 'An alias for the item.',
115
-		    'collection' => 'A sub property of object. The collection target of the action.',
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
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
121
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
123
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
124
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
125
-		    'name' => 'The name of the item.',
126
-		    'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
127
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
128
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
-		    'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
130
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
131
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
132
-		    'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
133
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
134
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
135
-		    'targetCollection' => 'A sub property of object. The collection target of the action.',
136
-		    'url' => 'URL of the item.'
137
-		];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRequiredSchema(): array
145
-	{
146
-		return ['description', 'name'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function getGoogleRecommendedSchema(): array
154
-	{
155
-		return ['image', 'url'];
156
-	}
157
-
158
-
159
-	/**
160
-	 * @inheritdoc
161
-	 */
162
-	public function defineRules(): array
163
-	{
164
-		$rules = parent::defineRules();
165
-		    $rules = array_merge($rules, [
166
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
-		    ]);
170
-
171
-		    return $rules;
172
-	}
26
+    use AddActionTrait;
27
+    use UpdateActionTrait;
28
+    use ActionTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'AddAction';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/AddAction';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'UpdateAction';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'The act of editing by adding an object to a collection.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'actionStatus' => ['ActionStatusType'],
76
+            'additionalType' => ['URL'],
77
+            'agent' => ['Organization', 'Person'],
78
+            'alternateName' => ['Text'],
79
+            'collection' => ['Thing'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'endTime' => ['DateTime', 'Time'],
83
+            'error' => ['Thing'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'instrument' => ['Thing'],
87
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
+            'name' => ['Text'],
90
+            'object' => ['Thing'],
91
+            'participant' => ['Organization', 'Person'],
92
+            'potentialAction' => ['Action'],
93
+            'provider' => ['Organization', 'Person'],
94
+            'result' => ['Thing'],
95
+            'sameAs' => ['URL'],
96
+            'startTime' => ['Time', 'DateTime'],
97
+            'subjectOf' => ['Event', 'CreativeWork'],
98
+            'target' => ['URL', 'EntryPoint'],
99
+            'targetCollection' => ['Thing'],
100
+            'url' => ['URL']
101
+        ];
102
+    }
103
+
104
+
105
+    /**
106
+     * @inheritdoc
107
+     */
108
+    public function getSchemaPropertyDescriptions(): array
109
+    {
110
+        return [
111
+            'actionStatus' => 'Indicates the current disposition of the Action.',
112
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
113
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
114
+            'alternateName' => 'An alias for the item.',
115
+            'collection' => 'A sub property of object. The collection target of the action.',
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
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
121
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
123
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
124
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
125
+            'name' => 'The name of the item.',
126
+            'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
127
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
128
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
+            'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
130
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
131
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
132
+            'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
133
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
134
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
135
+            'targetCollection' => 'A sub property of object. The collection target of the action.',
136
+            'url' => 'URL of the item.'
137
+        ];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRequiredSchema(): array
145
+    {
146
+        return ['description', 'name'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function getGoogleRecommendedSchema(): array
154
+    {
155
+        return ['image', 'url'];
156
+    }
157
+
158
+
159
+    /**
160
+     * @inheritdoc
161
+     */
162
+    public function defineRules(): array
163
+    {
164
+        $rules = parent::defineRules();
165
+            $rules = array_merge($rules, [
166
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
+            ]);
170
+
171
+            return $rules;
172
+    }
173 173
 }
Please login to merge, or discard this patch.
src/models/jsonld/GovernmentPermit.php 1 patch
Indentation   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -23,137 +23,137 @@
 block discarded – undo
23 23
  */
24 24
 class GovernmentPermit extends MetaJsonLd implements GovernmentPermitInterface, PermitInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use GovernmentPermitTrait;
27
-	use PermitTrait;
28
-	use IntangibleTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'GovernmentPermit';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/GovernmentPermit';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'Permit';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'A permit issued by a government agency.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'additionalType' => ['URL'],
76
-		    'alternateName' => ['Text'],
77
-		    'description' => ['Text'],
78
-		    'disambiguatingDescription' => ['Text'],
79
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
80
-		    'image' => ['URL', 'ImageObject'],
81
-		    'issuedBy' => ['Organization'],
82
-		    'issuedThrough' => ['Service'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'permitAudience' => ['Audience'],
86
-		    'potentialAction' => ['Action'],
87
-		    'sameAs' => ['URL'],
88
-		    'subjectOf' => ['Event', 'CreativeWork'],
89
-		    'url' => ['URL'],
90
-		    'validFor' => ['Duration'],
91
-		    'validFrom' => ['Date', 'DateTime'],
92
-		    'validIn' => ['AdministrativeArea'],
93
-		    'validUntil' => ['Date']
94
-		];
95
-	}
96
-
97
-
98
-	/**
99
-	 * @inheritdoc
100
-	 */
101
-	public function getSchemaPropertyDescriptions(): array
102
-	{
103
-		return [
104
-		    '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.',
105
-		    'alternateName' => 'An alias for the item.',
106
-		    'description' => 'A description of the item.',
107
-		    '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.',
108
-		    '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.         ',
109
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
110
-		    'issuedBy' => 'The organization issuing the ticket or permit.',
111
-		    'issuedThrough' => 'The service through which the permit was granted.',
112
-		    '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.',
113
-		    'name' => 'The name of the item.',
114
-		    'permitAudience' => 'The target audience for this permit.',
115
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
116
-		    '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.',
117
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
118
-		    'url' => 'URL of the item.',
119
-		    'validFor' => 'The duration of validity of a permit or similar thing.',
120
-		    'validFrom' => 'The date when the item becomes valid.',
121
-		    'validIn' => 'The geographic area where a permit or similar thing is valid.',
122
-		    'validUntil' => 'The date when the item is no longer valid.'
123
-		];
124
-	}
125
-
126
-
127
-	/**
128
-	 * @inheritdoc
129
-	 */
130
-	public function getGoogleRequiredSchema(): array
131
-	{
132
-		return ['description', 'name'];
133
-	}
134
-
135
-
136
-	/**
137
-	 * @inheritdoc
138
-	 */
139
-	public function getGoogleRecommendedSchema(): array
140
-	{
141
-		return ['image', 'url'];
142
-	}
143
-
144
-
145
-	/**
146
-	 * @inheritdoc
147
-	 */
148
-	public function defineRules(): array
149
-	{
150
-		$rules = parent::defineRules();
151
-		    $rules = array_merge($rules, [
152
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
153
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
154
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
155
-		    ]);
156
-
157
-		    return $rules;
158
-	}
26
+    use GovernmentPermitTrait;
27
+    use PermitTrait;
28
+    use IntangibleTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'GovernmentPermit';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/GovernmentPermit';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'Permit';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'A permit issued by a government agency.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'additionalType' => ['URL'],
76
+            'alternateName' => ['Text'],
77
+            'description' => ['Text'],
78
+            'disambiguatingDescription' => ['Text'],
79
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
80
+            'image' => ['URL', 'ImageObject'],
81
+            'issuedBy' => ['Organization'],
82
+            'issuedThrough' => ['Service'],
83
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
+            'name' => ['Text'],
85
+            'permitAudience' => ['Audience'],
86
+            'potentialAction' => ['Action'],
87
+            'sameAs' => ['URL'],
88
+            'subjectOf' => ['Event', 'CreativeWork'],
89
+            'url' => ['URL'],
90
+            'validFor' => ['Duration'],
91
+            'validFrom' => ['Date', 'DateTime'],
92
+            'validIn' => ['AdministrativeArea'],
93
+            'validUntil' => ['Date']
94
+        ];
95
+    }
96
+
97
+
98
+    /**
99
+     * @inheritdoc
100
+     */
101
+    public function getSchemaPropertyDescriptions(): array
102
+    {
103
+        return [
104
+            '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.',
105
+            'alternateName' => 'An alias for the item.',
106
+            'description' => 'A description of the item.',
107
+            '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.',
108
+            '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.         ',
109
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
110
+            'issuedBy' => 'The organization issuing the ticket or permit.',
111
+            'issuedThrough' => 'The service through which the permit was granted.',
112
+            '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.',
113
+            'name' => 'The name of the item.',
114
+            'permitAudience' => 'The target audience for this permit.',
115
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
116
+            '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.',
117
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
118
+            'url' => 'URL of the item.',
119
+            'validFor' => 'The duration of validity of a permit or similar thing.',
120
+            'validFrom' => 'The date when the item becomes valid.',
121
+            'validIn' => 'The geographic area where a permit or similar thing is valid.',
122
+            'validUntil' => 'The date when the item is no longer valid.'
123
+        ];
124
+    }
125
+
126
+
127
+    /**
128
+     * @inheritdoc
129
+     */
130
+    public function getGoogleRequiredSchema(): array
131
+    {
132
+        return ['description', 'name'];
133
+    }
134
+
135
+
136
+    /**
137
+     * @inheritdoc
138
+     */
139
+    public function getGoogleRecommendedSchema(): array
140
+    {
141
+        return ['image', 'url'];
142
+    }
143
+
144
+
145
+    /**
146
+     * @inheritdoc
147
+     */
148
+    public function defineRules(): array
149
+    {
150
+        $rules = parent::defineRules();
151
+            $rules = array_merge($rules, [
152
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
153
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
154
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
155
+            ]);
156
+
157
+            return $rules;
158
+    }
159 159
 }
Please login to merge, or discard this patch.