Passed
Push — v3 ( 432ffb...f9ff88 )
by Andrew
40:19 queued 27:54
created
src/models/jsonld/ListenAction.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 ListenAction extends MetaJsonLd implements ListenActionInterface, ConsumeActionInterface, ActionInterface, ThingInterface
25 25
 {
26
-	use ListenActionTrait;
27
-	use ConsumeActionTrait;
28
-	use ActionTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'ListenAction';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/ListenAction';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'ConsumeAction';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'The act of consuming audio content.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'actionAccessibilityRequirement' => ['ActionAccessSpecification'],
76
-		    'actionStatus' => ['ActionStatusType'],
77
-		    'additionalType' => ['URL'],
78
-		    'agent' => ['Organization', 'Person'],
79
-		    'alternateName' => ['Text'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'endTime' => ['DateTime', 'Time'],
83
-		    'error' => ['Thing'],
84
-		    'expectsAcceptanceOf' => ['Offer'],
85
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
86
-		    'image' => ['URL', 'ImageObject'],
87
-		    'instrument' => ['Thing'],
88
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
89
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
90
-		    'name' => ['Text'],
91
-		    'object' => ['Thing'],
92
-		    'participant' => ['Organization', 'Person'],
93
-		    'potentialAction' => ['Action'],
94
-		    'provider' => ['Organization', 'Person'],
95
-		    'result' => ['Thing'],
96
-		    'sameAs' => ['URL'],
97
-		    'startTime' => ['Time', 'DateTime'],
98
-		    'subjectOf' => ['Event', 'CreativeWork'],
99
-		    'target' => ['URL', 'EntryPoint'],
100
-		    'url' => ['URL']
101
-		];
102
-	}
103
-
104
-
105
-	/**
106
-	 * @inheritdoc
107
-	 */
108
-	public function getSchemaPropertyDescriptions(): array
109
-	{
110
-		return [
111
-		    'actionAccessibilityRequirement' => 'A set of requirements that must be fulfilled in order to perform an Action. If more than one value is specified, fulfilling one set of requirements will allow the Action to be performed.',
112
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
113
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
114
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
115
-		    'alternateName' => 'An alias for the item.',
116
-		    'description' => 'A description of the item.',
117
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
-		    'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
119
-		    'error' => 'For failed actions, more information on the cause of the failure.',
120
-		    'expectsAcceptanceOf' => 'An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.',
121
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
124
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
125
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
126
-		    'name' => 'The name of the item.',
127
-		    'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
128
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
129
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
130
-		    'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
131
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
132
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
133
-		    'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
134
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
135
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
136
-		    'url' => 'URL of the item.'
137
-		];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRequiredSchema(): array
145
-	{
146
-		return ['description', 'name'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function getGoogleRecommendedSchema(): array
154
-	{
155
-		return ['image', 'url'];
156
-	}
157
-
158
-
159
-	/**
160
-	 * @inheritdoc
161
-	 */
162
-	public function defineRules(): array
163
-	{
164
-		$rules = parent::defineRules();
165
-		    $rules = array_merge($rules, [
166
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
-		    ]);
170
-
171
-		    return $rules;
172
-	}
26
+    use ListenActionTrait;
27
+    use ConsumeActionTrait;
28
+    use ActionTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'ListenAction';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/ListenAction';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'ConsumeAction';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'The act of consuming audio content.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'actionAccessibilityRequirement' => ['ActionAccessSpecification'],
76
+            'actionStatus' => ['ActionStatusType'],
77
+            'additionalType' => ['URL'],
78
+            'agent' => ['Organization', 'Person'],
79
+            'alternateName' => ['Text'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'endTime' => ['DateTime', 'Time'],
83
+            'error' => ['Thing'],
84
+            'expectsAcceptanceOf' => ['Offer'],
85
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
86
+            'image' => ['URL', 'ImageObject'],
87
+            'instrument' => ['Thing'],
88
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
89
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
90
+            'name' => ['Text'],
91
+            'object' => ['Thing'],
92
+            'participant' => ['Organization', 'Person'],
93
+            'potentialAction' => ['Action'],
94
+            'provider' => ['Organization', 'Person'],
95
+            'result' => ['Thing'],
96
+            'sameAs' => ['URL'],
97
+            'startTime' => ['Time', 'DateTime'],
98
+            'subjectOf' => ['Event', 'CreativeWork'],
99
+            'target' => ['URL', 'EntryPoint'],
100
+            'url' => ['URL']
101
+        ];
102
+    }
103
+
104
+
105
+    /**
106
+     * @inheritdoc
107
+     */
108
+    public function getSchemaPropertyDescriptions(): array
109
+    {
110
+        return [
111
+            'actionAccessibilityRequirement' => 'A set of requirements that must be fulfilled in order to perform an Action. If more than one value is specified, fulfilling one set of requirements will allow the Action to be performed.',
112
+            'actionStatus' => 'Indicates the current disposition of the Action.',
113
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
114
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
115
+            'alternateName' => 'An alias for the item.',
116
+            'description' => 'A description of the item.',
117
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
+            'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
119
+            'error' => 'For failed actions, more information on the cause of the failure.',
120
+            'expectsAcceptanceOf' => 'An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.',
121
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
122
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
123
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
124
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
125
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
126
+            'name' => 'The name of the item.',
127
+            'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
128
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
129
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
130
+            'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
131
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
132
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
133
+            'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
134
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
135
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
136
+            'url' => 'URL of the item.'
137
+        ];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRequiredSchema(): array
145
+    {
146
+        return ['description', 'name'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function getGoogleRecommendedSchema(): array
154
+    {
155
+        return ['image', 'url'];
156
+    }
157
+
158
+
159
+    /**
160
+     * @inheritdoc
161
+     */
162
+    public function defineRules(): array
163
+    {
164
+        $rules = parent::defineRules();
165
+            $rules = array_merge($rules, [
166
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
+            ]);
170
+
171
+            return $rules;
172
+    }
173 173
 }
Please login to merge, or discard this patch.
src/models/jsonld/ReviewNewsArticle.php 1 patch
Indentation   +373 added lines, -373 removed lines patch added patch discarded remove patch
@@ -25,394 +25,394 @@
 block discarded – undo
25 25
  */
26 26
 class ReviewNewsArticle extends MetaJsonLd implements ReviewNewsArticleInterface, NewsArticleInterface, ArticleInterface, CreativeWorkInterface, ThingInterface, CriticReviewInterface, ReviewInterface
27 27
 {
28
-	use ReviewNewsArticleTrait;
29
-	use NewsArticleTrait;
30
-	use ArticleTrait;
31
-	use CreativeWorkTrait;
32
-	use ThingTrait;
33
-	use CriticReviewTrait;
34
-	use ReviewTrait;
28
+    use ReviewNewsArticleTrait;
29
+    use NewsArticleTrait;
30
+    use ArticleTrait;
31
+    use CreativeWorkTrait;
32
+    use ThingTrait;
33
+    use CriticReviewTrait;
34
+    use ReviewTrait;
35 35
 
36
-	/**
37
-	 * The Schema.org Type Name
38
-	 *
39
-	 * @var string
40
-	 */
41
-	public static $schemaTypeName = 'ReviewNewsArticle';
36
+    /**
37
+     * The Schema.org Type Name
38
+     *
39
+     * @var string
40
+     */
41
+    public static $schemaTypeName = 'ReviewNewsArticle';
42 42
 
43
-	/**
44
-	 * The Schema.org Type Scope
45
-	 *
46
-	 * @var string
47
-	 */
48
-	public static $schemaTypeScope = 'https://schema.org/ReviewNewsArticle';
43
+    /**
44
+     * The Schema.org Type Scope
45
+     *
46
+     * @var string
47
+     */
48
+    public static $schemaTypeScope = 'https://schema.org/ReviewNewsArticle';
49 49
 
50
-	/**
51
-	 * The Schema.org Type Extends
52
-	 *
53
-	 * @var string
54
-	 */
55
-	public static $schemaTypeExtends = 'NewsArticle';
50
+    /**
51
+     * The Schema.org Type Extends
52
+     *
53
+     * @var string
54
+     */
55
+    public static $schemaTypeExtends = 'NewsArticle';
56 56
 
57
-	/**
58
-	 * The Schema.org Type Description
59
-	 *
60
-	 * @var string
61
-	 */
62
-	public static $schemaTypeDescription = 'A [[NewsArticle]] and [[CriticReview]] providing a professional critic\'s assessment of a service, product, performance, or artistic or literary work.';
57
+    /**
58
+     * The Schema.org Type Description
59
+     *
60
+     * @var string
61
+     */
62
+    public static $schemaTypeDescription = 'A [[NewsArticle]] and [[CriticReview]] providing a professional critic\'s assessment of a service, product, performance, or artistic or literary work.';
63 63
 
64 64
 
65
-	/**
66
-	 * @inheritdoc
67
-	 */
68
-	public function getSchemaPropertyNames(): array
69
-	{
70
-		return array_keys($this->getSchemaPropertyExpectedTypes());
71
-	}
65
+    /**
66
+     * @inheritdoc
67
+     */
68
+    public function getSchemaPropertyNames(): array
69
+    {
70
+        return array_keys($this->getSchemaPropertyExpectedTypes());
71
+    }
72 72
 
73 73
 
74
-	/**
75
-	 * @inheritdoc
76
-	 */
77
-	public function getSchemaPropertyExpectedTypes(): array
78
-	{
79
-		return [
80
-		    'about' => ['Thing'],
81
-		    'abstract' => ['Text'],
82
-		    'accessMode' => ['Text'],
83
-		    'accessModeSufficient' => ['ItemList'],
84
-		    'accessibilityAPI' => ['Text'],
85
-		    'accessibilityControl' => ['Text'],
86
-		    'accessibilityFeature' => ['Text'],
87
-		    'accessibilityHazard' => ['Text'],
88
-		    'accessibilitySummary' => ['Text'],
89
-		    'accountablePerson' => ['Person'],
90
-		    'acquireLicensePage' => ['CreativeWork', 'URL'],
91
-		    'additionalType' => ['URL'],
92
-		    'aggregateRating' => ['AggregateRating'],
93
-		    'alternateName' => ['Text'],
94
-		    'alternativeHeadline' => ['Text'],
95
-		    'archivedAt' => ['WebPage', 'URL'],
96
-		    'articleBody' => ['Text'],
97
-		    'articleSection' => ['Text'],
98
-		    'assesses' => ['DefinedTerm', 'Text'],
99
-		    'associatedClaimReview' => ['Review'],
100
-		    'associatedMedia' => ['MediaObject'],
101
-		    'associatedMediaReview' => ['Review'],
102
-		    'associatedReview' => ['Review'],
103
-		    'audience' => ['Audience'],
104
-		    'audio' => ['MusicRecording', 'AudioObject', 'Clip'],
105
-		    'author' => ['Organization', 'Person'],
106
-		    'award' => ['Text'],
107
-		    'awards' => ['Text'],
108
-		    'backstory' => ['CreativeWork', 'Text'],
109
-		    'character' => ['Person'],
110
-		    'citation' => ['CreativeWork', 'Text'],
111
-		    'comment' => ['Comment'],
112
-		    'commentCount' => ['Integer'],
113
-		    'conditionsOfAccess' => ['Text'],
114
-		    'contentLocation' => ['Place'],
115
-		    'contentRating' => ['Text', 'Rating'],
116
-		    'contentReferenceTime' => ['DateTime'],
117
-		    'contributor' => ['Organization', 'Person'],
118
-		    'copyrightHolder' => ['Organization', 'Person'],
119
-		    'copyrightNotice' => ['Text'],
120
-		    'copyrightYear' => ['Number'],
121
-		    'correction' => ['URL', 'Text', 'CorrectionComment'],
122
-		    'countryOfOrigin' => ['Country'],
123
-		    'creativeWorkStatus' => ['DefinedTerm', 'Text'],
124
-		    'creator' => ['Person', 'Organization'],
125
-		    'creditText' => ['Text'],
126
-		    'dateCreated' => ['DateTime', 'Date'],
127
-		    'dateModified' => ['DateTime', 'Date'],
128
-		    'datePublished' => ['DateTime', 'Date'],
129
-		    'dateline' => ['Text'],
130
-		    'description' => ['Text'],
131
-		    'disambiguatingDescription' => ['Text'],
132
-		    'discussionUrl' => ['URL'],
133
-		    'editEIDR' => ['URL', 'Text'],
134
-		    'editor' => ['Person'],
135
-		    'educationalAlignment' => ['AlignmentObject'],
136
-		    'educationalLevel' => ['Text', 'URL', 'DefinedTerm'],
137
-		    'educationalUse' => ['DefinedTerm', 'Text'],
138
-		    'encoding' => ['MediaObject'],
139
-		    'encodingFormat' => ['URL', 'Text'],
140
-		    'encodings' => ['MediaObject'],
141
-		    'exampleOfWork' => ['CreativeWork'],
142
-		    'expires' => ['Date', 'DateTime'],
143
-		    'fileFormat' => ['Text', 'URL'],
144
-		    'funder' => ['Organization', 'Person'],
145
-		    'funding' => ['Grant'],
146
-		    'genre' => ['Text', 'URL'],
147
-		    'hasPart' => ['CreativeWork'],
148
-		    'headline' => ['Text'],
149
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
150
-		    'image' => ['URL', 'ImageObject'],
151
-		    'inLanguage' => ['Text', 'Language'],
152
-		    'interactionStatistic' => ['InteractionCounter'],
153
-		    'interactivityType' => ['Text'],
154
-		    'interpretedAsClaim' => ['Claim'],
155
-		    'isAccessibleForFree' => ['Boolean'],
156
-		    'isBasedOn' => ['URL', 'Product', 'CreativeWork'],
157
-		    'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'],
158
-		    'isFamilyFriendly' => ['Boolean'],
159
-		    'isPartOf' => ['URL', 'CreativeWork'],
160
-		    'itemReviewed' => ['Thing'],
161
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
162
-		    'learningResourceType' => ['DefinedTerm', 'Text'],
163
-		    'license' => ['URL', 'CreativeWork'],
164
-		    'locationCreated' => ['Place'],
165
-		    'mainEntity' => ['Thing'],
166
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
167
-		    'maintainer' => ['Person', 'Organization'],
168
-		    'material' => ['Product', 'URL', 'Text'],
169
-		    'materialExtent' => ['QuantitativeValue', 'Text'],
170
-		    'mentions' => ['Thing'],
171
-		    'name' => ['Text'],
172
-		    'negativeNotes' => ['ListItem', 'Text', 'ItemList', 'WebContent'],
173
-		    'offers' => ['Demand', 'Offer'],
174
-		    'pageEnd' => ['Integer', 'Text'],
175
-		    'pageStart' => ['Integer', 'Text'],
176
-		    'pagination' => ['Text'],
177
-		    'pattern' => ['DefinedTerm', 'Text'],
178
-		    'position' => ['Text', 'Integer'],
179
-		    'positiveNotes' => ['Text', 'WebContent', 'ListItem', 'ItemList'],
180
-		    'potentialAction' => ['Action'],
181
-		    'printColumn' => ['Text'],
182
-		    'printEdition' => ['Text'],
183
-		    'printPage' => ['Text'],
184
-		    'printSection' => ['Text'],
185
-		    'producer' => ['Organization', 'Person'],
186
-		    'provider' => ['Organization', 'Person'],
187
-		    'publication' => ['PublicationEvent'],
188
-		    'publisher' => ['Organization', 'Person'],
189
-		    'publisherImprint' => ['Organization'],
190
-		    'publishingPrinciples' => ['CreativeWork', 'URL'],
191
-		    'recordedAt' => ['Event'],
192
-		    'releasedEvent' => ['PublicationEvent'],
193
-		    'review' => ['Review'],
194
-		    'reviewAspect' => ['Text'],
195
-		    'reviewBody' => ['Text'],
196
-		    'reviewRating' => ['Rating'],
197
-		    'reviews' => ['Review'],
198
-		    'sameAs' => ['URL'],
199
-		    'schemaVersion' => ['URL', 'Text'],
200
-		    'sdDatePublished' => ['Date'],
201
-		    'sdLicense' => ['CreativeWork', 'URL'],
202
-		    'sdPublisher' => ['Organization', 'Person'],
203
-		    'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'],
204
-		    'sourceOrganization' => ['Organization'],
205
-		    'spatial' => ['Place'],
206
-		    'spatialCoverage' => ['Place'],
207
-		    'speakable' => ['SpeakableSpecification', 'URL'],
208
-		    'sponsor' => ['Organization', 'Person'],
209
-		    'subjectOf' => ['Event', 'CreativeWork'],
210
-		    'teaches' => ['DefinedTerm', 'Text'],
211
-		    'temporal' => ['DateTime', 'Text'],
212
-		    'temporalCoverage' => ['URL', 'Text', 'DateTime'],
213
-		    'text' => ['Text'],
214
-		    'thumbnailUrl' => ['URL'],
215
-		    'timeRequired' => ['Duration'],
216
-		    'translationOfWork' => ['CreativeWork'],
217
-		    'translator' => ['Organization', 'Person'],
218
-		    'typicalAgeRange' => ['Text'],
219
-		    'url' => ['URL'],
220
-		    'usageInfo' => ['URL', 'CreativeWork'],
221
-		    'version' => ['Number', 'Text'],
222
-		    'video' => ['VideoObject', 'Clip'],
223
-		    'wordCount' => ['Integer'],
224
-		    'workExample' => ['CreativeWork'],
225
-		    'workTranslation' => ['CreativeWork']
226
-		];
227
-	}
74
+    /**
75
+     * @inheritdoc
76
+     */
77
+    public function getSchemaPropertyExpectedTypes(): array
78
+    {
79
+        return [
80
+            'about' => ['Thing'],
81
+            'abstract' => ['Text'],
82
+            'accessMode' => ['Text'],
83
+            'accessModeSufficient' => ['ItemList'],
84
+            'accessibilityAPI' => ['Text'],
85
+            'accessibilityControl' => ['Text'],
86
+            'accessibilityFeature' => ['Text'],
87
+            'accessibilityHazard' => ['Text'],
88
+            'accessibilitySummary' => ['Text'],
89
+            'accountablePerson' => ['Person'],
90
+            'acquireLicensePage' => ['CreativeWork', 'URL'],
91
+            'additionalType' => ['URL'],
92
+            'aggregateRating' => ['AggregateRating'],
93
+            'alternateName' => ['Text'],
94
+            'alternativeHeadline' => ['Text'],
95
+            'archivedAt' => ['WebPage', 'URL'],
96
+            'articleBody' => ['Text'],
97
+            'articleSection' => ['Text'],
98
+            'assesses' => ['DefinedTerm', 'Text'],
99
+            'associatedClaimReview' => ['Review'],
100
+            'associatedMedia' => ['MediaObject'],
101
+            'associatedMediaReview' => ['Review'],
102
+            'associatedReview' => ['Review'],
103
+            'audience' => ['Audience'],
104
+            'audio' => ['MusicRecording', 'AudioObject', 'Clip'],
105
+            'author' => ['Organization', 'Person'],
106
+            'award' => ['Text'],
107
+            'awards' => ['Text'],
108
+            'backstory' => ['CreativeWork', 'Text'],
109
+            'character' => ['Person'],
110
+            'citation' => ['CreativeWork', 'Text'],
111
+            'comment' => ['Comment'],
112
+            'commentCount' => ['Integer'],
113
+            'conditionsOfAccess' => ['Text'],
114
+            'contentLocation' => ['Place'],
115
+            'contentRating' => ['Text', 'Rating'],
116
+            'contentReferenceTime' => ['DateTime'],
117
+            'contributor' => ['Organization', 'Person'],
118
+            'copyrightHolder' => ['Organization', 'Person'],
119
+            'copyrightNotice' => ['Text'],
120
+            'copyrightYear' => ['Number'],
121
+            'correction' => ['URL', 'Text', 'CorrectionComment'],
122
+            'countryOfOrigin' => ['Country'],
123
+            'creativeWorkStatus' => ['DefinedTerm', 'Text'],
124
+            'creator' => ['Person', 'Organization'],
125
+            'creditText' => ['Text'],
126
+            'dateCreated' => ['DateTime', 'Date'],
127
+            'dateModified' => ['DateTime', 'Date'],
128
+            'datePublished' => ['DateTime', 'Date'],
129
+            'dateline' => ['Text'],
130
+            'description' => ['Text'],
131
+            'disambiguatingDescription' => ['Text'],
132
+            'discussionUrl' => ['URL'],
133
+            'editEIDR' => ['URL', 'Text'],
134
+            'editor' => ['Person'],
135
+            'educationalAlignment' => ['AlignmentObject'],
136
+            'educationalLevel' => ['Text', 'URL', 'DefinedTerm'],
137
+            'educationalUse' => ['DefinedTerm', 'Text'],
138
+            'encoding' => ['MediaObject'],
139
+            'encodingFormat' => ['URL', 'Text'],
140
+            'encodings' => ['MediaObject'],
141
+            'exampleOfWork' => ['CreativeWork'],
142
+            'expires' => ['Date', 'DateTime'],
143
+            'fileFormat' => ['Text', 'URL'],
144
+            'funder' => ['Organization', 'Person'],
145
+            'funding' => ['Grant'],
146
+            'genre' => ['Text', 'URL'],
147
+            'hasPart' => ['CreativeWork'],
148
+            'headline' => ['Text'],
149
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
150
+            'image' => ['URL', 'ImageObject'],
151
+            'inLanguage' => ['Text', 'Language'],
152
+            'interactionStatistic' => ['InteractionCounter'],
153
+            'interactivityType' => ['Text'],
154
+            'interpretedAsClaim' => ['Claim'],
155
+            'isAccessibleForFree' => ['Boolean'],
156
+            'isBasedOn' => ['URL', 'Product', 'CreativeWork'],
157
+            'isBasedOnUrl' => ['URL', 'Product', 'CreativeWork'],
158
+            'isFamilyFriendly' => ['Boolean'],
159
+            'isPartOf' => ['URL', 'CreativeWork'],
160
+            'itemReviewed' => ['Thing'],
161
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
162
+            'learningResourceType' => ['DefinedTerm', 'Text'],
163
+            'license' => ['URL', 'CreativeWork'],
164
+            'locationCreated' => ['Place'],
165
+            'mainEntity' => ['Thing'],
166
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
167
+            'maintainer' => ['Person', 'Organization'],
168
+            'material' => ['Product', 'URL', 'Text'],
169
+            'materialExtent' => ['QuantitativeValue', 'Text'],
170
+            'mentions' => ['Thing'],
171
+            'name' => ['Text'],
172
+            'negativeNotes' => ['ListItem', 'Text', 'ItemList', 'WebContent'],
173
+            'offers' => ['Demand', 'Offer'],
174
+            'pageEnd' => ['Integer', 'Text'],
175
+            'pageStart' => ['Integer', 'Text'],
176
+            'pagination' => ['Text'],
177
+            'pattern' => ['DefinedTerm', 'Text'],
178
+            'position' => ['Text', 'Integer'],
179
+            'positiveNotes' => ['Text', 'WebContent', 'ListItem', 'ItemList'],
180
+            'potentialAction' => ['Action'],
181
+            'printColumn' => ['Text'],
182
+            'printEdition' => ['Text'],
183
+            'printPage' => ['Text'],
184
+            'printSection' => ['Text'],
185
+            'producer' => ['Organization', 'Person'],
186
+            'provider' => ['Organization', 'Person'],
187
+            'publication' => ['PublicationEvent'],
188
+            'publisher' => ['Organization', 'Person'],
189
+            'publisherImprint' => ['Organization'],
190
+            'publishingPrinciples' => ['CreativeWork', 'URL'],
191
+            'recordedAt' => ['Event'],
192
+            'releasedEvent' => ['PublicationEvent'],
193
+            'review' => ['Review'],
194
+            'reviewAspect' => ['Text'],
195
+            'reviewBody' => ['Text'],
196
+            'reviewRating' => ['Rating'],
197
+            'reviews' => ['Review'],
198
+            'sameAs' => ['URL'],
199
+            'schemaVersion' => ['URL', 'Text'],
200
+            'sdDatePublished' => ['Date'],
201
+            'sdLicense' => ['CreativeWork', 'URL'],
202
+            'sdPublisher' => ['Organization', 'Person'],
203
+            'size' => ['DefinedTerm', 'QuantitativeValue', 'Text', 'SizeSpecification'],
204
+            'sourceOrganization' => ['Organization'],
205
+            'spatial' => ['Place'],
206
+            'spatialCoverage' => ['Place'],
207
+            'speakable' => ['SpeakableSpecification', 'URL'],
208
+            'sponsor' => ['Organization', 'Person'],
209
+            'subjectOf' => ['Event', 'CreativeWork'],
210
+            'teaches' => ['DefinedTerm', 'Text'],
211
+            'temporal' => ['DateTime', 'Text'],
212
+            'temporalCoverage' => ['URL', 'Text', 'DateTime'],
213
+            'text' => ['Text'],
214
+            'thumbnailUrl' => ['URL'],
215
+            'timeRequired' => ['Duration'],
216
+            'translationOfWork' => ['CreativeWork'],
217
+            'translator' => ['Organization', 'Person'],
218
+            'typicalAgeRange' => ['Text'],
219
+            'url' => ['URL'],
220
+            'usageInfo' => ['URL', 'CreativeWork'],
221
+            'version' => ['Number', 'Text'],
222
+            'video' => ['VideoObject', 'Clip'],
223
+            'wordCount' => ['Integer'],
224
+            'workExample' => ['CreativeWork'],
225
+            'workTranslation' => ['CreativeWork']
226
+        ];
227
+    }
228 228
 
229 229
 
230
-	/**
231
-	 * @inheritdoc
232
-	 */
233
-	public function getSchemaPropertyDescriptions(): array
234
-	{
235
-		return [
236
-		    'about' => 'The subject matter of the content.',
237
-		    'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].',
238
-		    '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).',
239
-		    '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).',
240
-		    '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).',
241
-		    '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).',
242
-		    '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).',
243
-		    '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).',
244
-		    '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."',
245
-		    'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.',
246
-		    'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.',
247
-		    '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.',
248
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
249
-		    'alternateName' => 'An alias for the item.',
250
-		    'alternativeHeadline' => 'A secondary title of the CreativeWork.',
251
-		    '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.',
252
-		    'articleBody' => 'The actual body of the article.',
253
-		    'articleSection' => 'Articles may belong to one or more \'sections\' in a magazine or newspaper, such as Sports, Lifestyle, etc.',
254
-		    'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.',
255
-		    'associatedClaimReview' => 'An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].',
256
-		    'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.',
257
-		    'associatedMediaReview' => 'An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].',
258
-		    'associatedReview' => 'An associated [[Review]].',
259
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
260
-		    'audio' => 'An embedded audio object.',
261
-		    '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.',
262
-		    'award' => 'An award won by or for this item.',
263
-		    'awards' => 'Awards won by or for this item.',
264
-		    'backstory' => 'For an [[Article]], typically a [[NewsArticle]], the backstory property provides a textual summary giving a brief explanation of why and how an article was created. In a journalistic setting this could include information about reporting process, methods, interviews, data sources, etc.',
265
-		    'character' => 'Fictional person connected with a creative work.',
266
-		    'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.',
267
-		    'comment' => 'Comments, typically from users.',
268
-		    '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.',
269
-		    '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 ". ',
270
-		    'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.',
271
-		    'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.',
272
-		    '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.',
273
-		    'contributor' => 'A secondary contributor to the CreativeWork or Event.',
274
-		    'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.',
275
-		    '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.',
276
-		    'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.',
277
-		    'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.',
278
-		    '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.',
279
-		    '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.',
280
-		    'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.',
281
-		    'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.',
282
-		    'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.',
283
-		    'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.',
284
-		    'datePublished' => 'Date of first broadcast/publication.',
285
-		    'dateline' => 'A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included in news articles that describes where and when the story was written or filed though the date is often omitted. Sometimes only a placename is provided.  Structured representations of dateline-related information can also be expressed more explicitly using [[locationCreated]] (which represents where a work was created, e.g. where a news report was written).  For location depicted or described in the content, use [[contentLocation]].  Dateline summaries are oriented more towards human readers than towards automated processing, and can vary substantially. Some examples: "BEIRUT, Lebanon, June 2.", "Paris, France", "December 19, 2017 11:43AM Reporting from Washington", "Beijing/Moscow", "QUEZON CITY, Philippines".       ',
286
-		    'description' => 'A description of the item.',
287
-		    '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.',
288
-		    'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.',
289
-		    '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. ',
290
-		    'editor' => 'Specifies the Person who edited the CreativeWork.',
291
-		    '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.',
292
-		    '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.',
293
-		    'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.',
294
-		    'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.',
295
-		    '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.',
296
-		    'encodings' => 'A media object that encodes this CreativeWork.',
297
-		    'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.',
298
-		    '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.',
299
-		    '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.',
300
-		    'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
301
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
302
-		    'genre' => 'Genre of the creative work, broadcast channel or group.',
303
-		    'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).',
304
-		    'headline' => 'Headline of the article.',
305
-		    '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.         ',
306
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
307
-		    '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]].',
308
-		    'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
309
-		    'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.',
310
-		    '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]].',
311
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
312
-		    'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.',
313
-		    '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.',
314
-		    'isFamilyFriendly' => 'Indicates whether this content is family friendly.',
315
-		    'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.',
316
-		    'itemReviewed' => 'The item that is being reviewed/rated.',
317
-		    '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.',
318
-		    'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.',
319
-		    'license' => 'A license document that applies to this content, typically indicated by URL.',
320
-		    'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.',
321
-		    'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.',
322
-		    '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.',
323
-		    '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.       ',
324
-		    'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.',
325
-		    'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.',
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
-		    'negativeNotes' => 'Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry   In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions  tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]].  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).',
329
-		    '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.       ',
330
-		    'pageEnd' => 'The page on which the work ends; for example "138" or "xvi".',
331
-		    'pageStart' => 'The page on which the work starts; for example "135" or "xiii".',
332
-		    'pagination' => 'Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".',
333
-		    '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.',
334
-		    'position' => 'The position of an item in a series or sequence of items.',
335
-		    'positiveNotes' => 'Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews.  In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described.  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).',
336
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
337
-		    'printColumn' => 'The number of the column in which the NewsArticle appears in the print edition.',
338
-		    'printEdition' => 'The edition of the print product in which the NewsArticle appears.',
339
-		    'printPage' => 'If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18).',
340
-		    'printSection' => 'If this NewsArticle appears in print, this field indicates the print section in which the article appeared.',
341
-		    'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).',
342
-		    '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.',
343
-		    'publication' => 'A publication event associated with the item.',
344
-		    'publisher' => 'The publisher of the creative work.',
345
-		    'publisherImprint' => 'The publishing division which published the comic.',
346
-		    '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. ',
347
-		    'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.',
348
-		    'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.',
349
-		    'review' => 'A review of the item.',
350
-		    'reviewAspect' => 'This Review or Rating is relevant to this part or facet of the itemReviewed.',
351
-		    'reviewBody' => 'The actual body of the review.',
352
-		    'reviewRating' => 'The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work.',
353
-		    'reviews' => 'Review of the item.',
354
-		    '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.',
355
-		    '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.',
356
-		    'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]',
357
-		    'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.',
358
-		    '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.',
359
-		    '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. ',
360
-		    'sourceOrganization' => 'The Organization on whose behalf the creator was working.',
361
-		    'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.',
362
-		    '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.',
363
-		    'speakable' => 'Indicates sections of a Web page that are particularly \'speakable\' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the \'speakable\' property serves to indicate the parts most likely to be generally useful for speech.  The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible \'content-locator\' values:  1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.  2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property.  3.)  XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.   For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this we define a supporting type, [[SpeakableSpecification]]  which is defined to be a possible value of the *speakable* property.          ',
364
-		    '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.',
365
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
366
-		    'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.',
367
-		    '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.',
368
-		    '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.',
369
-		    'text' => 'The textual content of this CreativeWork.',
370
-		    'thumbnailUrl' => 'A thumbnail image relevant to the Thing.',
371
-		    '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\'.',
372
-		    'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.',
373
-		    '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.',
374
-		    'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
375
-		    'url' => 'URL of the item.',
376
-		    '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.',
377
-		    'version' => 'The version of the CreativeWork embodied by a specified resource.',
378
-		    'video' => 'An embedded video object.',
379
-		    'wordCount' => 'The number of words in the text of the Article.',
380
-		    'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.',
381
-		    '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.'
382
-		];
383
-	}
230
+    /**
231
+     * @inheritdoc
232
+     */
233
+    public function getSchemaPropertyDescriptions(): array
234
+    {
235
+        return [
236
+            'about' => 'The subject matter of the content.',
237
+            'abstract' => 'An abstract is a short description that summarizes a [[CreativeWork]].',
238
+            '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).',
239
+            '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).',
240
+            '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).',
241
+            '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).',
242
+            '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).',
243
+            '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).',
244
+            '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."',
245
+            'accountablePerson' => 'Specifies the Person that is legally accountable for the CreativeWork.',
246
+            'acquireLicensePage' => 'Indicates a page documenting how licenses can be purchased or otherwise acquired, for the current item.',
247
+            '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.',
248
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
249
+            'alternateName' => 'An alias for the item.',
250
+            'alternativeHeadline' => 'A secondary title of the CreativeWork.',
251
+            '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.',
252
+            'articleBody' => 'The actual body of the article.',
253
+            'articleSection' => 'Articles may belong to one or more \'sections\' in a magazine or newspaper, such as Sports, Lifestyle, etc.',
254
+            'assesses' => 'The item being described is intended to assess the competency or learning outcome defined by the referenced term.',
255
+            'associatedClaimReview' => 'An associated [[ClaimReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].',
256
+            'associatedMedia' => 'A media object that encodes this CreativeWork. This property is a synonym for encoding.',
257
+            'associatedMediaReview' => 'An associated [[MediaReview]], related by specific common content, topic or claim. The expectation is that this property would be most typically used in cases where a single activity is conducting both claim reviews and media reviews, in which case [[relatedMediaReview]] would commonly be used on a [[ClaimReview]], while [[relatedClaimReview]] would be used on [[MediaReview]].',
258
+            'associatedReview' => 'An associated [[Review]].',
259
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
260
+            'audio' => 'An embedded audio object.',
261
+            '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.',
262
+            'award' => 'An award won by or for this item.',
263
+            'awards' => 'Awards won by or for this item.',
264
+            'backstory' => 'For an [[Article]], typically a [[NewsArticle]], the backstory property provides a textual summary giving a brief explanation of why and how an article was created. In a journalistic setting this could include information about reporting process, methods, interviews, data sources, etc.',
265
+            'character' => 'Fictional person connected with a creative work.',
266
+            'citation' => 'A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.',
267
+            'comment' => 'Comments, typically from users.',
268
+            '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.',
269
+            '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 ". ',
270
+            'contentLocation' => 'The location depicted or described in the content. For example, the location in a photograph or painting.',
271
+            'contentRating' => 'Official rating of a piece of content—for example, \'MPAA PG-13\'.',
272
+            '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.',
273
+            'contributor' => 'A secondary contributor to the CreativeWork or Event.',
274
+            'copyrightHolder' => 'The party holding the legal copyright to the CreativeWork.',
275
+            '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.',
276
+            'copyrightYear' => 'The year during which the claimed copyright for the CreativeWork was first asserted.',
277
+            'correction' => 'Indicates a correction to a [[CreativeWork]], either via a [[CorrectionComment]], textually or in another document.',
278
+            '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.',
279
+            '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.',
280
+            'creator' => 'The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork.',
281
+            'creditText' => 'Text that can be used to credit person(s) and/or organization(s) associated with a published Creative Work.',
282
+            'dateCreated' => 'The date on which the CreativeWork was created or the item was added to a DataFeed.',
283
+            'dateModified' => 'The date on which the CreativeWork was most recently modified or when the item\'s entry was modified within a DataFeed.',
284
+            'datePublished' => 'Date of first broadcast/publication.',
285
+            'dateline' => 'A [dateline](https://en.wikipedia.org/wiki/Dateline) is a brief piece of text included in news articles that describes where and when the story was written or filed though the date is often omitted. Sometimes only a placename is provided.  Structured representations of dateline-related information can also be expressed more explicitly using [[locationCreated]] (which represents where a work was created, e.g. where a news report was written).  For location depicted or described in the content, use [[contentLocation]].  Dateline summaries are oriented more towards human readers than towards automated processing, and can vary substantially. Some examples: "BEIRUT, Lebanon, June 2.", "Paris, France", "December 19, 2017 11:43AM Reporting from Washington", "Beijing/Moscow", "QUEZON CITY, Philippines".       ',
286
+            'description' => 'A description of the item.',
287
+            '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.',
288
+            'discussionUrl' => 'A link to the page containing the comments of the CreativeWork.',
289
+            '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. ',
290
+            'editor' => 'Specifies the Person who edited the CreativeWork.',
291
+            '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.',
292
+            '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.',
293
+            'educationalUse' => 'The purpose of a work in the context of education; for example, \'assignment\', \'group work\'.',
294
+            'encoding' => 'A media object that encodes this CreativeWork. This property is a synonym for associatedMedia.',
295
+            '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.',
296
+            'encodings' => 'A media object that encodes this CreativeWork.',
297
+            'exampleOfWork' => 'A creative work that this work is an example/instance/realization/derivation of.',
298
+            '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.',
299
+            '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.',
300
+            'funder' => 'A person or organization that supports (sponsors) something through some kind of financial contribution.',
301
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
302
+            'genre' => 'Genre of the creative work, broadcast channel or group.',
303
+            'hasPart' => 'Indicates an item or CreativeWork that is part of this item, or CreativeWork (in some sense).',
304
+            'headline' => 'Headline of the article.',
305
+            '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.         ',
306
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
307
+            '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]].',
308
+            'interactionStatistic' => 'The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used.',
309
+            'interactivityType' => 'The predominant mode of learning supported by the learning resource. Acceptable values are \'active\', \'expositive\', or \'mixed\'.',
310
+            '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]].',
311
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
312
+            'isBasedOn' => 'A resource from which this work is derived or from which it is a modification or adaption.',
313
+            '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.',
314
+            'isFamilyFriendly' => 'Indicates whether this content is family friendly.',
315
+            'isPartOf' => 'Indicates an item or CreativeWork that this item, or CreativeWork (in some sense), is part of.',
316
+            'itemReviewed' => 'The item that is being reviewed/rated.',
317
+            '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.',
318
+            'learningResourceType' => 'The predominant type or kind characterizing the learning resource. For example, \'presentation\', \'handout\'.',
319
+            'license' => 'A license document that applies to this content, typically indicated by URL.',
320
+            'locationCreated' => 'The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.',
321
+            'mainEntity' => 'Indicates the primary entity described in some page or other CreativeWork.',
322
+            '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.',
323
+            '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.       ',
324
+            'material' => 'A material that something is made from, e.g. leather, wool, cotton, paper.',
325
+            'materialExtent' => 'The quantity of the materials being described or an expression of the physical space they occupy.',
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
+            'negativeNotes' => 'Provides negative considerations regarding something, most typically in pro/con lists for reviews (alongside [[positiveNotes]]). For symmetry   In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described. Since product descriptions  tend to emphasise positive claims, it may be relatively unusual to find [[negativeNotes]] used in this way. Nevertheless for the sake of symmetry, [[negativeNotes]] can be used on [[Product]].  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most negative is at the beginning of the list).',
329
+            '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.       ',
330
+            'pageEnd' => 'The page on which the work ends; for example "138" or "xvi".',
331
+            'pageStart' => 'The page on which the work starts; for example "135" or "xiii".',
332
+            'pagination' => 'Any description of pages that is not separated into pageStart and pageEnd; for example, "1-6, 9, 55" or "10-12, 46-49".',
333
+            '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.',
334
+            'position' => 'The position of an item in a series or sequence of items.',
335
+            'positiveNotes' => 'Provides positive considerations regarding something, for example product highlights or (alongside [[negativeNotes]]) pro/con lists for reviews.  In the case of a [[Review]], the property describes the [[itemReviewed]] from the perspective of the review; in the case of a [[Product]], the product itself is being described.  The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).',
336
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
337
+            'printColumn' => 'The number of the column in which the NewsArticle appears in the print edition.',
338
+            'printEdition' => 'The edition of the print product in which the NewsArticle appears.',
339
+            'printPage' => 'If this NewsArticle appears in print, this field indicates the name of the page on which the article is found. Please note that this field is intended for the exact page name (e.g. A5, B18).',
340
+            'printSection' => 'If this NewsArticle appears in print, this field indicates the print section in which the article appeared.',
341
+            'producer' => 'The person or organization who produced the work (e.g. music album, movie, TV/radio series etc.).',
342
+            '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.',
343
+            'publication' => 'A publication event associated with the item.',
344
+            'publisher' => 'The publisher of the creative work.',
345
+            'publisherImprint' => 'The publishing division which published the comic.',
346
+            '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. ',
347
+            'recordedAt' => 'The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event.',
348
+            'releasedEvent' => 'The place and time the release was issued, expressed as a PublicationEvent.',
349
+            'review' => 'A review of the item.',
350
+            'reviewAspect' => 'This Review or Rating is relevant to this part or facet of the itemReviewed.',
351
+            'reviewBody' => 'The actual body of the review.',
352
+            'reviewRating' => 'The rating given in this review. Note that reviews can themselves be rated. The ```reviewRating``` applies to rating given by the review. The [[aggregateRating]] property applies to the review itself, as a creative work.',
353
+            'reviews' => 'Review of the item.',
354
+            '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.',
355
+            '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.',
356
+            'sdDatePublished' => 'Indicates the date on which the current structured data was generated / published. Typically used alongside [[sdPublisher]]',
357
+            'sdLicense' => 'A license document that applies to this structured data, typically indicated by URL.',
358
+            '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.',
359
+            '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. ',
360
+            'sourceOrganization' => 'The Organization on whose behalf the creator was working.',
361
+            'spatial' => 'The "spatial" property can be used in cases when more specific properties (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are not known to be appropriate.',
362
+            '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.',
363
+            'speakable' => 'Indicates sections of a Web page that are particularly \'speakable\' in the sense of being highlighted as being especially appropriate for text-to-speech conversion. Other sections of a page may also be usefully spoken in particular circumstances; the \'speakable\' property serves to indicate the parts most likely to be generally useful for speech.  The *speakable* property can be repeated an arbitrary number of times, with three kinds of possible \'content-locator\' values:  1.) *id-value* URL references - uses *id-value* of an element in the page being annotated. The simplest use of *speakable* has (potentially relative) URL values, referencing identified sections of the document concerned.  2.) CSS Selectors - addresses content in the annotated page, e.g. via class attribute. Use the [[cssSelector]] property.  3.)  XPaths - addresses content via XPaths (assuming an XML view of the content). Use the [[xpath]] property.   For more sophisticated markup of speakable sections beyond simple ID references, either CSS selectors or XPath expressions to pick out document section(s) as speakable. For this we define a supporting type, [[SpeakableSpecification]]  which is defined to be a possible value of the *speakable* property.          ',
364
+            '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.',
365
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
366
+            'teaches' => 'The item being described is intended to help a person learn the competency or learning outcome defined by the referenced term.',
367
+            '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.',
368
+            '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.',
369
+            'text' => 'The textual content of this CreativeWork.',
370
+            'thumbnailUrl' => 'A thumbnail image relevant to the Thing.',
371
+            '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\'.',
372
+            'translationOfWork' => 'The work that this work has been translated from. E.g. 物种起源 is a translationOf “On the Origin of Species”.',
373
+            '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.',
374
+            'typicalAgeRange' => 'The typical expected age range, e.g. \'7-9\', \'11-\'.',
375
+            'url' => 'URL of the item.',
376
+            '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.',
377
+            'version' => 'The version of the CreativeWork embodied by a specified resource.',
378
+            'video' => 'An embedded video object.',
379
+            'wordCount' => 'The number of words in the text of the Article.',
380
+            'workExample' => 'Example/instance/realization/derivation of the concept of this creative work. E.g. the paperback edition, first edition, or e-book.',
381
+            '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.'
382
+        ];
383
+    }
384 384
 
385 385
 
386
-	/**
387
-	 * @inheritdoc
388
-	 */
389
-	public function getGoogleRequiredSchema(): array
390
-	{
391
-		return ['author', 'datePublished', 'description', 'headline', 'image', 'name', 'publisher'];
392
-	}
386
+    /**
387
+     * @inheritdoc
388
+     */
389
+    public function getGoogleRequiredSchema(): array
390
+    {
391
+        return ['author', 'datePublished', 'description', 'headline', 'image', 'name', 'publisher'];
392
+    }
393 393
 
394 394
 
395
-	/**
396
-	 * @inheritdoc
397
-	 */
398
-	public function getGoogleRecommendedSchema(): array
399
-	{
400
-		return ['dateModified', 'image', 'mainEntityOfPage', 'url'];
401
-	}
395
+    /**
396
+     * @inheritdoc
397
+     */
398
+    public function getGoogleRecommendedSchema(): array
399
+    {
400
+        return ['dateModified', 'image', 'mainEntityOfPage', 'url'];
401
+    }
402 402
 
403 403
 
404
-	/**
405
-	 * @inheritdoc
406
-	 */
407
-	public function defineRules(): array
408
-	{
409
-		$rules = parent::defineRules();
410
-		    $rules = array_merge($rules, [
411
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
412
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
413
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
414
-		    ]);
404
+    /**
405
+     * @inheritdoc
406
+     */
407
+    public function defineRules(): array
408
+    {
409
+        $rules = parent::defineRules();
410
+            $rules = array_merge($rules, [
411
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
412
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
413
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
414
+            ]);
415 415
 
416
-		    return $rules;
417
-	}
416
+            return $rules;
417
+    }
418 418
 }
Please login to merge, or discard this patch.
src/models/jsonld/Nose.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 Nose extends MetaJsonLd implements NoseInterface, PhysicalExamInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface
25 25
 {
26
-	use NoseTrait;
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 = 'Nose';
41
-
42
-	/**
43
-	 * The Schema.org Type Scope
44
-	 *
45
-	 * @var string
46
-	 */
47
-	public static $schemaTypeScope = 'https://schema.org/Nose';
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 = 'Nose function 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 NoseTrait;
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 = 'Nose';
41
+
42
+    /**
43
+     * The Schema.org Type Scope
44
+     *
45
+     * @var string
46
+     */
47
+    public static $schemaTypeScope = 'https://schema.org/Nose';
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 = 'Nose function 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/PsychologicalTreatment.php 1 patch
Indentation   +154 added lines, -154 removed lines patch added patch discarded remove patch
@@ -24,158 +24,158 @@
 block discarded – undo
24 24
  */
25 25
 class PsychologicalTreatment extends MetaJsonLd implements PsychologicalTreatmentInterface, TherapeuticProcedureInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface
26 26
 {
27
-	use PsychologicalTreatmentTrait;
28
-	use TherapeuticProcedureTrait;
29
-	use MedicalProcedureTrait;
30
-	use MedicalEntityTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'PsychologicalTreatment';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/PsychologicalTreatment';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'TherapeuticProcedure';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A process of care relying upon counseling, dialogue and communication  aimed at improving a mental health condition without use of drugs.';
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
-		    'adverseOutcome' => ['MedicalEntity'],
79
-		    'alternateName' => ['Text'],
80
-		    'bodyLocation' => ['Text'],
81
-		    'code' => ['MedicalCode'],
82
-		    'description' => ['Text'],
83
-		    'disambiguatingDescription' => ['Text'],
84
-		    'doseSchedule' => ['DoseSchedule'],
85
-		    'drug' => ['Drug'],
86
-		    'followup' => ['Text'],
87
-		    'funding' => ['Grant'],
88
-		    'guideline' => ['MedicalGuideline'],
89
-		    'howPerformed' => ['Text'],
90
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
91
-		    'image' => ['URL', 'ImageObject'],
92
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
93
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
94
-		    'medicineSystem' => ['MedicineSystem'],
95
-		    'name' => ['Text'],
96
-		    'potentialAction' => ['Action'],
97
-		    'preparation' => ['Text', 'MedicalEntity'],
98
-		    'procedureType' => ['MedicalProcedureType'],
99
-		    'recognizingAuthority' => ['Organization'],
100
-		    'relevantSpecialty' => ['MedicalSpecialty'],
101
-		    'sameAs' => ['URL'],
102
-		    'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
103
-		    'study' => ['MedicalStudy'],
104
-		    'subjectOf' => ['Event', 'CreativeWork'],
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
-		    'adverseOutcome' => 'A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead.',
118
-		    'alternateName' => 'An alias for the item.',
119
-		    'bodyLocation' => 'Location in the body of the anatomical structure.',
120
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
121
-		    'description' => 'A description of the item.',
122
-		    '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.',
123
-		    'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.',
124
-		    'drug' => 'Specifying a drug or medicine used in a medication procedure.',
125
-		    'followup' => 'Typical or recommended followup care after the procedure is performed.',
126
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
127
-		    'guideline' => 'A medical guideline related to this entity.',
128
-		    'howPerformed' => 'How the procedure is performed.',
129
-		    '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.         ',
130
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
131
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
132
-		    '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.',
133
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
134
-		    'name' => 'The name of the item.',
135
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
136
-		    'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
137
-		    'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
138
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
139
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
140
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
141
-		    'status' => 'The status of the study (enumerated).',
142
-		    'study' => 'A medical study or trial related to this entity.',
143
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
144
-		    'url' => 'URL of the item.'
145
-		];
146
-	}
147
-
148
-
149
-	/**
150
-	 * @inheritdoc
151
-	 */
152
-	public function getGoogleRequiredSchema(): array
153
-	{
154
-		return ['description', 'name'];
155
-	}
156
-
157
-
158
-	/**
159
-	 * @inheritdoc
160
-	 */
161
-	public function getGoogleRecommendedSchema(): array
162
-	{
163
-		return ['image', 'url'];
164
-	}
165
-
166
-
167
-	/**
168
-	 * @inheritdoc
169
-	 */
170
-	public function defineRules(): array
171
-	{
172
-		$rules = parent::defineRules();
173
-		    $rules = array_merge($rules, [
174
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
175
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
176
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
177
-		    ]);
178
-
179
-		    return $rules;
180
-	}
27
+    use PsychologicalTreatmentTrait;
28
+    use TherapeuticProcedureTrait;
29
+    use MedicalProcedureTrait;
30
+    use MedicalEntityTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'PsychologicalTreatment';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/PsychologicalTreatment';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'TherapeuticProcedure';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A process of care relying upon counseling, dialogue and communication  aimed at improving a mental health condition without use of drugs.';
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
+            'adverseOutcome' => ['MedicalEntity'],
79
+            'alternateName' => ['Text'],
80
+            'bodyLocation' => ['Text'],
81
+            'code' => ['MedicalCode'],
82
+            'description' => ['Text'],
83
+            'disambiguatingDescription' => ['Text'],
84
+            'doseSchedule' => ['DoseSchedule'],
85
+            'drug' => ['Drug'],
86
+            'followup' => ['Text'],
87
+            'funding' => ['Grant'],
88
+            'guideline' => ['MedicalGuideline'],
89
+            'howPerformed' => ['Text'],
90
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
91
+            'image' => ['URL', 'ImageObject'],
92
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
93
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
94
+            'medicineSystem' => ['MedicineSystem'],
95
+            'name' => ['Text'],
96
+            'potentialAction' => ['Action'],
97
+            'preparation' => ['Text', 'MedicalEntity'],
98
+            'procedureType' => ['MedicalProcedureType'],
99
+            'recognizingAuthority' => ['Organization'],
100
+            'relevantSpecialty' => ['MedicalSpecialty'],
101
+            'sameAs' => ['URL'],
102
+            'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
103
+            'study' => ['MedicalStudy'],
104
+            'subjectOf' => ['Event', 'CreativeWork'],
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
+            'adverseOutcome' => 'A possible complication and/or side effect of this therapy. If it is known that an adverse outcome is serious (resulting in death, disability, or permanent damage; requiring hospitalization; or otherwise life-threatening or requiring immediate medical attention), tag it as a seriousAdverseOutcome instead.',
118
+            'alternateName' => 'An alias for the item.',
119
+            'bodyLocation' => 'Location in the body of the anatomical structure.',
120
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
121
+            'description' => 'A description of the item.',
122
+            '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.',
123
+            'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.',
124
+            'drug' => 'Specifying a drug or medicine used in a medication procedure.',
125
+            'followup' => 'Typical or recommended followup care after the procedure is performed.',
126
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
127
+            'guideline' => 'A medical guideline related to this entity.',
128
+            'howPerformed' => 'How the procedure is performed.',
129
+            '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.         ',
130
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
131
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
132
+            '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.',
133
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
134
+            'name' => 'The name of the item.',
135
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
136
+            'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
137
+            'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
138
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
139
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
140
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
141
+            'status' => 'The status of the study (enumerated).',
142
+            'study' => 'A medical study or trial related to this entity.',
143
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
144
+            'url' => 'URL of the item.'
145
+        ];
146
+    }
147
+
148
+
149
+    /**
150
+     * @inheritdoc
151
+     */
152
+    public function getGoogleRequiredSchema(): array
153
+    {
154
+        return ['description', 'name'];
155
+    }
156
+
157
+
158
+    /**
159
+     * @inheritdoc
160
+     */
161
+    public function getGoogleRecommendedSchema(): array
162
+    {
163
+        return ['image', 'url'];
164
+    }
165
+
166
+
167
+    /**
168
+     * @inheritdoc
169
+     */
170
+    public function defineRules(): array
171
+    {
172
+        $rules = parent::defineRules();
173
+            $rules = array_merge($rules, [
174
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
175
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
176
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
177
+            ]);
178
+
179
+            return $rules;
180
+    }
181 181
 }
Please login to merge, or discard this patch.
src/models/jsonld/RsvpAction.php 1 patch
Indentation   +161 added lines, -161 removed lines patch added patch discarded remove patch
@@ -24,165 +24,165 @@
 block discarded – undo
24 24
  */
25 25
 class RsvpAction extends MetaJsonLd implements RsvpActionInterface, InformActionInterface, CommunicateActionInterface, InteractActionInterface, ActionInterface, ThingInterface
26 26
 {
27
-	use RsvpActionTrait;
28
-	use InformActionTrait;
29
-	use CommunicateActionTrait;
30
-	use InteractActionTrait;
31
-	use ActionTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'RsvpAction';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/RsvpAction';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'InformAction';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'The act of notifying an event organizer as to whether you expect to attend the event.';
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
-		    'about' => ['Thing'],
79
-		    'actionStatus' => ['ActionStatusType'],
80
-		    'additionalNumberOfGuests' => ['Number'],
81
-		    'additionalType' => ['URL'],
82
-		    'agent' => ['Organization', 'Person'],
83
-		    'alternateName' => ['Text'],
84
-		    'comment' => ['Comment'],
85
-		    'description' => ['Text'],
86
-		    'disambiguatingDescription' => ['Text'],
87
-		    'endTime' => ['DateTime', 'Time'],
88
-		    'error' => ['Thing'],
89
-		    'event' => ['Event'],
90
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
91
-		    'image' => ['URL', 'ImageObject'],
92
-		    'inLanguage' => ['Text', 'Language'],
93
-		    'instrument' => ['Thing'],
94
-		    'language' => ['Language'],
95
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
96
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
97
-		    'name' => ['Text'],
98
-		    'object' => ['Thing'],
99
-		    'participant' => ['Organization', 'Person'],
100
-		    'potentialAction' => ['Action'],
101
-		    'provider' => ['Organization', 'Person'],
102
-		    'recipient' => ['Organization', 'ContactPoint', 'Person', 'Audience'],
103
-		    'result' => ['Thing'],
104
-		    'rsvpResponse' => ['RsvpResponseType'],
105
-		    'sameAs' => ['URL'],
106
-		    'startTime' => ['Time', 'DateTime'],
107
-		    'subjectOf' => ['Event', 'CreativeWork'],
108
-		    'target' => ['URL', 'EntryPoint'],
109
-		    'url' => ['URL']
110
-		];
111
-	}
112
-
113
-
114
-	/**
115
-	 * @inheritdoc
116
-	 */
117
-	public function getSchemaPropertyDescriptions(): array
118
-	{
119
-		return [
120
-		    'about' => 'The subject matter of the content.',
121
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
122
-		    'additionalNumberOfGuests' => 'If responding yes, the number of guests who will attend in addition to the invitee.',
123
-		    '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.',
124
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
125
-		    'alternateName' => 'An alias for the item.',
126
-		    'comment' => 'Comments, typically from users.',
127
-		    'description' => 'A description of the item.',
128
-		    '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.',
129
-		    '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.',
130
-		    'error' => 'For failed actions, more information on the cause of the failure.',
131
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
132
-		    '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.         ',
133
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
134
-		    '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]].',
135
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
136
-		    'language' => 'A sub property of instrument. The language used on this action.',
137
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
138
-		    '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.',
139
-		    'name' => 'The name of the item.',
140
-		    '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*.',
141
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
142
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
143
-		    '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.',
144
-		    'recipient' => 'A sub property of participant. The participant who is at the receiving end of the action.',
145
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
146
-		    'rsvpResponse' => 'The response (yes, no, maybe) to the RSVP.',
147
-		    '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.',
148
-		    '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.',
149
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
150
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
151
-		    'url' => 'URL of the item.'
152
-		];
153
-	}
154
-
155
-
156
-	/**
157
-	 * @inheritdoc
158
-	 */
159
-	public function getGoogleRequiredSchema(): array
160
-	{
161
-		return ['description', 'name'];
162
-	}
163
-
164
-
165
-	/**
166
-	 * @inheritdoc
167
-	 */
168
-	public function getGoogleRecommendedSchema(): array
169
-	{
170
-		return ['image', 'url'];
171
-	}
172
-
173
-
174
-	/**
175
-	 * @inheritdoc
176
-	 */
177
-	public function defineRules(): array
178
-	{
179
-		$rules = parent::defineRules();
180
-		    $rules = array_merge($rules, [
181
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
182
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
183
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
184
-		    ]);
185
-
186
-		    return $rules;
187
-	}
27
+    use RsvpActionTrait;
28
+    use InformActionTrait;
29
+    use CommunicateActionTrait;
30
+    use InteractActionTrait;
31
+    use ActionTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'RsvpAction';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/RsvpAction';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'InformAction';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'The act of notifying an event organizer as to whether you expect to attend the event.';
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
+            'about' => ['Thing'],
79
+            'actionStatus' => ['ActionStatusType'],
80
+            'additionalNumberOfGuests' => ['Number'],
81
+            'additionalType' => ['URL'],
82
+            'agent' => ['Organization', 'Person'],
83
+            'alternateName' => ['Text'],
84
+            'comment' => ['Comment'],
85
+            'description' => ['Text'],
86
+            'disambiguatingDescription' => ['Text'],
87
+            'endTime' => ['DateTime', 'Time'],
88
+            'error' => ['Thing'],
89
+            'event' => ['Event'],
90
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
91
+            'image' => ['URL', 'ImageObject'],
92
+            'inLanguage' => ['Text', 'Language'],
93
+            'instrument' => ['Thing'],
94
+            'language' => ['Language'],
95
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
96
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
97
+            'name' => ['Text'],
98
+            'object' => ['Thing'],
99
+            'participant' => ['Organization', 'Person'],
100
+            'potentialAction' => ['Action'],
101
+            'provider' => ['Organization', 'Person'],
102
+            'recipient' => ['Organization', 'ContactPoint', 'Person', 'Audience'],
103
+            'result' => ['Thing'],
104
+            'rsvpResponse' => ['RsvpResponseType'],
105
+            'sameAs' => ['URL'],
106
+            'startTime' => ['Time', 'DateTime'],
107
+            'subjectOf' => ['Event', 'CreativeWork'],
108
+            'target' => ['URL', 'EntryPoint'],
109
+            'url' => ['URL']
110
+        ];
111
+    }
112
+
113
+
114
+    /**
115
+     * @inheritdoc
116
+     */
117
+    public function getSchemaPropertyDescriptions(): array
118
+    {
119
+        return [
120
+            'about' => 'The subject matter of the content.',
121
+            'actionStatus' => 'Indicates the current disposition of the Action.',
122
+            'additionalNumberOfGuests' => 'If responding yes, the number of guests who will attend in addition to the invitee.',
123
+            '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.',
124
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
125
+            'alternateName' => 'An alias for the item.',
126
+            'comment' => 'Comments, typically from users.',
127
+            'description' => 'A description of the item.',
128
+            '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.',
129
+            '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.',
130
+            'error' => 'For failed actions, more information on the cause of the failure.',
131
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
132
+            '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.         ',
133
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
134
+            '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]].',
135
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
136
+            'language' => 'A sub property of instrument. The language used on this action.',
137
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
138
+            '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.',
139
+            'name' => 'The name of the item.',
140
+            '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*.',
141
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
142
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
143
+            '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.',
144
+            'recipient' => 'A sub property of participant. The participant who is at the receiving end of the action.',
145
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
146
+            'rsvpResponse' => 'The response (yes, no, maybe) to the RSVP.',
147
+            '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.',
148
+            '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.',
149
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
150
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
151
+            'url' => 'URL of the item.'
152
+        ];
153
+    }
154
+
155
+
156
+    /**
157
+     * @inheritdoc
158
+     */
159
+    public function getGoogleRequiredSchema(): array
160
+    {
161
+        return ['description', 'name'];
162
+    }
163
+
164
+
165
+    /**
166
+     * @inheritdoc
167
+     */
168
+    public function getGoogleRecommendedSchema(): array
169
+    {
170
+        return ['image', 'url'];
171
+    }
172
+
173
+
174
+    /**
175
+     * @inheritdoc
176
+     */
177
+    public function defineRules(): array
178
+    {
179
+        $rules = parent::defineRules();
180
+            $rules = array_merge($rules, [
181
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
182
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
183
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
184
+            ]);
185
+
186
+            return $rules;
187
+    }
188 188
 }
Please login to merge, or discard this patch.
src/models/jsonld/USNonprofitType.php 1 patch
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -24,126 +24,126 @@
 block discarded – undo
24 24
  */
25 25
 class USNonprofitType extends MetaJsonLd implements USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use USNonprofitTypeTrait;
28
-	use NonprofitTypeTrait;
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 = 'USNonprofitType';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/USNonprofitType';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'NonprofitType';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'USNonprofitType: Non-profit organization type originating from the United States.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
27
+    use USNonprofitTypeTrait;
28
+    use NonprofitTypeTrait;
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 = 'USNonprofitType';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/USNonprofitType';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'NonprofitType';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'USNonprofitType: Non-profit organization type originating from the United States.';
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/DamagedCondition.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 DamagedCondition extends MetaJsonLd implements DamagedConditionInterface, OfferItemConditionInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use DamagedConditionTrait;
27
-	use OfferItemConditionTrait;
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 = 'DamagedCondition';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/DamagedCondition';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'OfferItemCondition';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'Indicates that the item is damaged.';
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 DamagedConditionTrait;
27
+    use OfferItemConditionTrait;
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 = 'DamagedCondition';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/DamagedCondition';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'OfferItemCondition';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'Indicates that the item is damaged.';
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/Embassy.php 1 patch
Indentation   +212 added lines, -212 removed lines patch added patch discarded remove patch
@@ -23,216 +23,216 @@
 block discarded – undo
23 23
  */
24 24
 class Embassy extends MetaJsonLd implements EmbassyInterface, GovernmentBuildingInterface, CivicStructureInterface, PlaceInterface, ThingInterface
25 25
 {
26
-	use EmbassyTrait;
27
-	use GovernmentBuildingTrait;
28
-	use CivicStructureTrait;
29
-	use PlaceTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'Embassy';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/Embassy';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'GovernmentBuilding';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'An embassy.';
59
-
60
-
61
-	/**
62
-	 * @inheritdoc
63
-	 */
64
-	public function getSchemaPropertyNames(): array
65
-	{
66
-		return array_keys($this->getSchemaPropertyExpectedTypes());
67
-	}
68
-
69
-
70
-	/**
71
-	 * @inheritdoc
72
-	 */
73
-	public function getSchemaPropertyExpectedTypes(): array
74
-	{
75
-		return [
76
-		    'additionalProperty' => ['PropertyValue'],
77
-		    'additionalType' => ['URL'],
78
-		    'address' => ['Text', 'PostalAddress'],
79
-		    'aggregateRating' => ['AggregateRating'],
80
-		    'alternateName' => ['Text'],
81
-		    'amenityFeature' => ['LocationFeatureSpecification'],
82
-		    'branchCode' => ['Text'],
83
-		    'containedIn' => ['Place'],
84
-		    'containedInPlace' => ['Place'],
85
-		    'containsPlace' => ['Place'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'event' => ['Event'],
89
-		    'events' => ['Event'],
90
-		    'faxNumber' => ['Text'],
91
-		    'geo' => ['GeoCoordinates', 'GeoShape'],
92
-		    'geoContains' => ['Place', 'GeospatialGeometry'],
93
-		    'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
94
-		    'geoCovers' => ['GeospatialGeometry', 'Place'],
95
-		    'geoCrosses' => ['GeospatialGeometry', 'Place'],
96
-		    'geoDisjoint' => ['GeospatialGeometry', 'Place'],
97
-		    'geoEquals' => ['GeospatialGeometry', 'Place'],
98
-		    'geoIntersects' => ['GeospatialGeometry', 'Place'],
99
-		    'geoOverlaps' => ['GeospatialGeometry', 'Place'],
100
-		    'geoTouches' => ['GeospatialGeometry', 'Place'],
101
-		    'geoWithin' => ['GeospatialGeometry', 'Place'],
102
-		    'globalLocationNumber' => ['Text'],
103
-		    'hasDriveThroughService' => ['Boolean'],
104
-		    'hasMap' => ['URL', 'Map'],
105
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
106
-		    'image' => ['URL', 'ImageObject'],
107
-		    'isAccessibleForFree' => ['Boolean'],
108
-		    'isicV4' => ['Text'],
109
-		    'keywords' => ['URL', 'DefinedTerm', 'Text'],
110
-		    'latitude' => ['Number', 'Text'],
111
-		    'logo' => ['ImageObject', 'URL'],
112
-		    'longitude' => ['Text', 'Number'],
113
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
114
-		    'map' => ['URL'],
115
-		    'maps' => ['URL'],
116
-		    'maximumAttendeeCapacity' => ['Integer'],
117
-		    'name' => ['Text'],
118
-		    'openingHours' => ['Text'],
119
-		    'openingHoursSpecification' => ['OpeningHoursSpecification'],
120
-		    'photo' => ['Photograph', 'ImageObject'],
121
-		    'photos' => ['ImageObject', 'Photograph'],
122
-		    'potentialAction' => ['Action'],
123
-		    'publicAccess' => ['Boolean'],
124
-		    'review' => ['Review'],
125
-		    'reviews' => ['Review'],
126
-		    'sameAs' => ['URL'],
127
-		    'slogan' => ['Text'],
128
-		    'smokingAllowed' => ['Boolean'],
129
-		    'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
130
-		    'subjectOf' => ['Event', 'CreativeWork'],
131
-		    'telephone' => ['Text'],
132
-		    'tourBookingPage' => ['URL'],
133
-		    'url' => ['URL']
134
-		];
135
-	}
136
-
137
-
138
-	/**
139
-	 * @inheritdoc
140
-	 */
141
-	public function getSchemaPropertyDescriptions(): array
142
-	{
143
-		return [
144
-		    'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
145
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
146
-		    'address' => 'Physical address of the item.',
147
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
148
-		    'alternateName' => 'An alias for the item.',
149
-		    'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
150
-		    'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
151
-		    'containedIn' => 'The basic containment relation between a place and one that contains it.',
152
-		    'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
153
-		    'containsPlace' => 'The basic containment relation between a place and another that it contains.',
154
-		    'description' => 'A description of the item.',
155
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
156
-		    'event' => 'Upcoming or past event associated with this place, organization, or action.',
157
-		    'events' => 'Upcoming or past events associated with this place or organization.',
158
-		    'faxNumber' => 'The fax number.',
159
-		    'geo' => 'The geo coordinates of the place.',
160
-		    'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
161
-		    'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
162
-		    'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
163
-		    'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
164
-		    'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
165
-		    'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
166
-		    'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
167
-		    'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
168
-		    'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
169
-		    'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
170
-		    'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
171
-		    'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
172
-		    'hasMap' => 'A URL to a map of the place.',
173
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
174
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
175
-		    'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
176
-		    'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
177
-		    'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
178
-		    'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
179
-		    'logo' => 'An associated logo.',
180
-		    'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
181
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
182
-		    'map' => 'A URL to a map of the place.',
183
-		    'maps' => 'A URL to a map of the place.',
184
-		    'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
185
-		    'name' => 'The name of the item.',
186
-		    'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
187
-		    'openingHoursSpecification' => 'The opening hours of a certain place.',
188
-		    'photo' => 'A photograph of this place.',
189
-		    'photos' => 'Photographs of this place.',
190
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
191
-		    'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
192
-		    'review' => 'A review of the item.',
193
-		    'reviews' => 'Review of the item.',
194
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
195
-		    'slogan' => 'A slogan or motto associated with the item.',
196
-		    'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
197
-		    'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
198
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
199
-		    'telephone' => 'The telephone number.',
200
-		    'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
201
-		    'url' => 'URL of the item.'
202
-		];
203
-	}
204
-
205
-
206
-	/**
207
-	 * @inheritdoc
208
-	 */
209
-	public function getGoogleRequiredSchema(): array
210
-	{
211
-		return ['description', 'name'];
212
-	}
213
-
214
-
215
-	/**
216
-	 * @inheritdoc
217
-	 */
218
-	public function getGoogleRecommendedSchema(): array
219
-	{
220
-		return ['image', 'url'];
221
-	}
222
-
223
-
224
-	/**
225
-	 * @inheritdoc
226
-	 */
227
-	public function defineRules(): array
228
-	{
229
-		$rules = parent::defineRules();
230
-		    $rules = array_merge($rules, [
231
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
232
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
233
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
234
-		    ]);
235
-
236
-		    return $rules;
237
-	}
26
+    use EmbassyTrait;
27
+    use GovernmentBuildingTrait;
28
+    use CivicStructureTrait;
29
+    use PlaceTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'Embassy';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/Embassy';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'GovernmentBuilding';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'An embassy.';
59
+
60
+
61
+    /**
62
+     * @inheritdoc
63
+     */
64
+    public function getSchemaPropertyNames(): array
65
+    {
66
+        return array_keys($this->getSchemaPropertyExpectedTypes());
67
+    }
68
+
69
+
70
+    /**
71
+     * @inheritdoc
72
+     */
73
+    public function getSchemaPropertyExpectedTypes(): array
74
+    {
75
+        return [
76
+            'additionalProperty' => ['PropertyValue'],
77
+            'additionalType' => ['URL'],
78
+            'address' => ['Text', 'PostalAddress'],
79
+            'aggregateRating' => ['AggregateRating'],
80
+            'alternateName' => ['Text'],
81
+            'amenityFeature' => ['LocationFeatureSpecification'],
82
+            'branchCode' => ['Text'],
83
+            'containedIn' => ['Place'],
84
+            'containedInPlace' => ['Place'],
85
+            'containsPlace' => ['Place'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'event' => ['Event'],
89
+            'events' => ['Event'],
90
+            'faxNumber' => ['Text'],
91
+            'geo' => ['GeoCoordinates', 'GeoShape'],
92
+            'geoContains' => ['Place', 'GeospatialGeometry'],
93
+            'geoCoveredBy' => ['GeospatialGeometry', 'Place'],
94
+            'geoCovers' => ['GeospatialGeometry', 'Place'],
95
+            'geoCrosses' => ['GeospatialGeometry', 'Place'],
96
+            'geoDisjoint' => ['GeospatialGeometry', 'Place'],
97
+            'geoEquals' => ['GeospatialGeometry', 'Place'],
98
+            'geoIntersects' => ['GeospatialGeometry', 'Place'],
99
+            'geoOverlaps' => ['GeospatialGeometry', 'Place'],
100
+            'geoTouches' => ['GeospatialGeometry', 'Place'],
101
+            'geoWithin' => ['GeospatialGeometry', 'Place'],
102
+            'globalLocationNumber' => ['Text'],
103
+            'hasDriveThroughService' => ['Boolean'],
104
+            'hasMap' => ['URL', 'Map'],
105
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
106
+            'image' => ['URL', 'ImageObject'],
107
+            'isAccessibleForFree' => ['Boolean'],
108
+            'isicV4' => ['Text'],
109
+            'keywords' => ['URL', 'DefinedTerm', 'Text'],
110
+            'latitude' => ['Number', 'Text'],
111
+            'logo' => ['ImageObject', 'URL'],
112
+            'longitude' => ['Text', 'Number'],
113
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
114
+            'map' => ['URL'],
115
+            'maps' => ['URL'],
116
+            'maximumAttendeeCapacity' => ['Integer'],
117
+            'name' => ['Text'],
118
+            'openingHours' => ['Text'],
119
+            'openingHoursSpecification' => ['OpeningHoursSpecification'],
120
+            'photo' => ['Photograph', 'ImageObject'],
121
+            'photos' => ['ImageObject', 'Photograph'],
122
+            'potentialAction' => ['Action'],
123
+            'publicAccess' => ['Boolean'],
124
+            'review' => ['Review'],
125
+            'reviews' => ['Review'],
126
+            'sameAs' => ['URL'],
127
+            'slogan' => ['Text'],
128
+            'smokingAllowed' => ['Boolean'],
129
+            'specialOpeningHoursSpecification' => ['OpeningHoursSpecification'],
130
+            'subjectOf' => ['Event', 'CreativeWork'],
131
+            'telephone' => ['Text'],
132
+            'tourBookingPage' => ['URL'],
133
+            'url' => ['URL']
134
+        ];
135
+    }
136
+
137
+
138
+    /**
139
+     * @inheritdoc
140
+     */
141
+    public function getSchemaPropertyDescriptions(): array
142
+    {
143
+        return [
144
+            'additionalProperty' => 'A property-value pair representing an additional characteristic of the entity, e.g. a product feature or another characteristic for which there is no matching property in schema.org.  Note: Publishers should be aware that applications designed to use specific schema.org properties (e.g. https://schema.org/width, https://schema.org/color, https://schema.org/gtin13, ...) will typically expect such data to be provided using those properties, rather than using the generic property/value mechanism. ',
145
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
146
+            'address' => 'Physical address of the item.',
147
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
148
+            'alternateName' => 'An alias for the item.',
149
+            'amenityFeature' => 'An amenity feature (e.g. a characteristic or service) of the Accommodation. This generic property does not make a statement about whether the feature is included in an offer for the main accommodation or available at extra costs.',
150
+            'branchCode' => 'A short textual code (also called "store code") that uniquely identifies a place of business. The code is typically assigned by the parentOrganization and used in structured URLs.  For example, in the URL http://www.starbucks.co.uk/store-locator/etc/detail/3047 the code "3047" is a branchCode for a particular branch.       ',
151
+            'containedIn' => 'The basic containment relation between a place and one that contains it.',
152
+            'containedInPlace' => 'The basic containment relation between a place and one that contains it.',
153
+            'containsPlace' => 'The basic containment relation between a place and another that it contains.',
154
+            'description' => 'A description of the item.',
155
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
156
+            'event' => 'Upcoming or past event associated with this place, organization, or action.',
157
+            'events' => 'Upcoming or past events associated with this place or organization.',
158
+            'faxNumber' => 'The fax number.',
159
+            'geo' => 'The geo coordinates of the place.',
160
+            'geoContains' => 'Represents a relationship between two geometries (or the places they represent), relating a containing geometry to a contained geometry. "a contains b iff no points of b lie in the exterior of a, and at least one point of the interior of b lies in the interior of a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
161
+            'geoCoveredBy' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that covers it. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
162
+            'geoCovers' => 'Represents a relationship between two geometries (or the places they represent), relating a covering geometry to a covered geometry. "Every point of b is a point of (the interior or boundary of) a". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
163
+            'geoCrosses' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that crosses it: "a crosses b: they have some but not all interior points in common, and the dimension of the intersection is less than that of at least one of them". As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
164
+            'geoDisjoint' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically disjoint: "they have no point in common. They form a set of disconnected geometries." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
165
+            'geoEquals' => 'Represents spatial relations in which two geometries (or the places they represent) are topologically equal, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM). "Two geometries are topologically equal if their interiors intersect and no part of the interior or boundary of one geometry intersects the exterior of the other" (a symmetric relationship).',
166
+            'geoIntersects' => 'Represents spatial relations in which two geometries (or the places they represent) have at least one point in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
167
+            'geoOverlaps' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to another that geospatially overlaps it, i.e. they have some but not all points in common. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
168
+            'geoTouches' => 'Represents spatial relations in which two geometries (or the places they represent) touch: "they have at least one boundary point in common, but no interior points." (A symmetric relationship, as defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).)',
169
+            'geoWithin' => 'Represents a relationship between two geometries (or the places they represent), relating a geometry to one that contains it, i.e. it is inside (i.e. within) its interior. As defined in [DE-9IM](https://en.wikipedia.org/wiki/DE-9IM).',
170
+            'globalLocationNumber' => 'The [Global Location Number](http://www.gs1.org/gln) (GLN, sometimes also referred to as International Location Number or ILN) of the respective organization, person, or place. The GLN is a 13-digit number used to identify parties and physical locations.',
171
+            'hasDriveThroughService' => 'Indicates whether some facility (e.g. [[FoodEstablishment]], [[CovidTestingFacility]]) offers a service that can be used by driving through in a car. In the case of [[CovidTestingFacility]] such facilities could potentially help with social distancing from other potentially-infected users.',
172
+            'hasMap' => 'A URL to a map of the place.',
173
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
174
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
175
+            'isAccessibleForFree' => 'A flag to signal that the item, event, or place is accessible for free.',
176
+            'isicV4' => 'The International Standard of Industrial Classification of All Economic Activities (ISIC), Revision 4 code for a particular organization, business person, or place.',
177
+            'keywords' => 'Keywords or tags used to describe some item. Multiple textual entries in a keywords list are typically delimited by commas, or by repeating the property.',
178
+            'latitude' => 'The latitude of a location. For example ```37.42242``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
179
+            'logo' => 'An associated logo.',
180
+            'longitude' => 'The longitude of a location. For example ```-122.08585``` ([WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System)).',
181
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
182
+            'map' => 'A URL to a map of the place.',
183
+            'maps' => 'A URL to a map of the place.',
184
+            'maximumAttendeeCapacity' => 'The total number of individuals that may attend an event or venue.',
185
+            'name' => 'The name of the item.',
186
+            'openingHours' => 'The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas \',\' separating each day. Day or time ranges are specified using a hyphen \'-\'.  * Days are specified using the following two-letter combinations: ```Mo```, ```Tu```, ```We```, ```Th```, ```Fr```, ```Sa```, ```Su```. * Times are specified using 24:00 format. For example, 3pm is specified as ```15:00```, 10am as ```10:00```.  * Here is an example: <code><time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time></code>. * If a business is open 7 days a week, then it can be specified as <code><time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time></code>.',
187
+            'openingHoursSpecification' => 'The opening hours of a certain place.',
188
+            'photo' => 'A photograph of this place.',
189
+            'photos' => 'Photographs of this place.',
190
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
191
+            'publicAccess' => 'A flag to signal that the [[Place]] is open to public visitors.  If this property is omitted there is no assumed default boolean value',
192
+            'review' => 'A review of the item.',
193
+            'reviews' => 'Review of the item.',
194
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
195
+            'slogan' => 'A slogan or motto associated with the item.',
196
+            'smokingAllowed' => 'Indicates whether it is allowed to smoke in the place, e.g. in the restaurant, hotel or hotel room.',
197
+            'specialOpeningHoursSpecification' => 'The special opening hours of a certain place.  Use this to explicitly override general opening hours brought in scope by [[openingHoursSpecification]] or [[openingHours]].       ',
198
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
199
+            'telephone' => 'The telephone number.',
200
+            'tourBookingPage' => 'A page providing information on how to book a tour of some [[Place]], such as an [[Accommodation]] or [[ApartmentComplex]] in a real estate setting, as well as other kinds of tours as appropriate.',
201
+            'url' => 'URL of the item.'
202
+        ];
203
+    }
204
+
205
+
206
+    /**
207
+     * @inheritdoc
208
+     */
209
+    public function getGoogleRequiredSchema(): array
210
+    {
211
+        return ['description', 'name'];
212
+    }
213
+
214
+
215
+    /**
216
+     * @inheritdoc
217
+     */
218
+    public function getGoogleRecommendedSchema(): array
219
+    {
220
+        return ['image', 'url'];
221
+    }
222
+
223
+
224
+    /**
225
+     * @inheritdoc
226
+     */
227
+    public function defineRules(): array
228
+    {
229
+        $rules = parent::defineRules();
230
+            $rules = array_merge($rules, [
231
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
232
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
233
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
234
+            ]);
235
+
236
+            return $rules;
237
+    }
238 238
 }
Please login to merge, or discard this patch.
src/models/jsonld/Series.php 1 patch
Indentation   +118 added lines, -118 removed lines patch added patch discarded remove patch
@@ -25,122 +25,122 @@
 block discarded – undo
25 25
  */
26 26
 class Series extends MetaJsonLd implements SeriesInterface, IntangibleInterface, ThingInterface
27 27
 {
28
-	use SeriesTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'Series';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/Series';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'Intangible';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A Series in schema.org is a group of related items, typically but not necessarily of the same kind. See also [[CreativeWorkSeries]], [[EventSeries]].';
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
-		    'url' => ['URL']
88
-		];
89
-	}
90
-
91
-
92
-	/**
93
-	 * @inheritdoc
94
-	 */
95
-	public function getSchemaPropertyDescriptions(): array
96
-	{
97
-		return [
98
-		    '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.',
99
-		    'alternateName' => 'An alias for the item.',
100
-		    'description' => 'A description of the item.',
101
-		    '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.',
102
-		    '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.         ',
103
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
104
-		    '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.',
105
-		    'name' => 'The name of the item.',
106
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
107
-		    '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.',
108
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
109
-		    'url' => 'URL of the item.'
110
-		];
111
-	}
112
-
113
-
114
-	/**
115
-	 * @inheritdoc
116
-	 */
117
-	public function getGoogleRequiredSchema(): array
118
-	{
119
-		return ['description', 'name'];
120
-	}
121
-
122
-
123
-	/**
124
-	 * @inheritdoc
125
-	 */
126
-	public function getGoogleRecommendedSchema(): array
127
-	{
128
-		return ['image', 'url'];
129
-	}
130
-
131
-
132
-	/**
133
-	 * @inheritdoc
134
-	 */
135
-	public function defineRules(): array
136
-	{
137
-		$rules = parent::defineRules();
138
-		    $rules = array_merge($rules, [
139
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
140
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
141
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
142
-		    ]);
143
-
144
-		    return $rules;
145
-	}
28
+    use SeriesTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'Series';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/Series';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'Intangible';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A Series in schema.org is a group of related items, typically but not necessarily of the same kind. See also [[CreativeWorkSeries]], [[EventSeries]].';
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
+            'url' => ['URL']
88
+        ];
89
+    }
90
+
91
+
92
+    /**
93
+     * @inheritdoc
94
+     */
95
+    public function getSchemaPropertyDescriptions(): array
96
+    {
97
+        return [
98
+            '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.',
99
+            'alternateName' => 'An alias for the item.',
100
+            'description' => 'A description of the item.',
101
+            '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.',
102
+            '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.         ',
103
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
104
+            '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.',
105
+            'name' => 'The name of the item.',
106
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
107
+            '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.',
108
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
109
+            'url' => 'URL of the item.'
110
+        ];
111
+    }
112
+
113
+
114
+    /**
115
+     * @inheritdoc
116
+     */
117
+    public function getGoogleRequiredSchema(): array
118
+    {
119
+        return ['description', 'name'];
120
+    }
121
+
122
+
123
+    /**
124
+     * @inheritdoc
125
+     */
126
+    public function getGoogleRecommendedSchema(): array
127
+    {
128
+        return ['image', 'url'];
129
+    }
130
+
131
+
132
+    /**
133
+     * @inheritdoc
134
+     */
135
+    public function defineRules(): array
136
+    {
137
+        $rules = parent::defineRules();
138
+            $rules = array_merge($rules, [
139
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
140
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
141
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
142
+            ]);
143
+
144
+            return $rules;
145
+    }
146 146
 }
Please login to merge, or discard this patch.