Passed
Push — develop ( 72ef84...f23408 )
by Andrew
18:23 queued 09:31
created
src/models/jsonld/DeleteAction.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 DeleteAction extends MetaJsonLd implements DeleteActionInterface, UpdateActionInterface, ActionInterface, ThingInterface
25 25
 {
26
-	use DeleteActionTrait;
27
-	use UpdateActionTrait;
28
-	use ActionTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'DeleteAction';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/DeleteAction';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'UpdateAction';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'The act of editing a recipient by removing one of its objects.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'actionStatus' => ['ActionStatusType'],
76
-		    'additionalType' => ['URL'],
77
-		    'agent' => ['Organization', 'Person'],
78
-		    'alternateName' => ['Text'],
79
-		    'collection' => ['Thing'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'endTime' => ['DateTime', 'Time'],
83
-		    'error' => ['Thing'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'instrument' => ['Thing'],
87
-		    'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
-		    'name' => ['Text'],
90
-		    'object' => ['Thing'],
91
-		    'participant' => ['Organization', 'Person'],
92
-		    'potentialAction' => ['Action'],
93
-		    'provider' => ['Organization', 'Person'],
94
-		    'result' => ['Thing'],
95
-		    'sameAs' => ['URL'],
96
-		    'startTime' => ['Time', 'DateTime'],
97
-		    'subjectOf' => ['Event', 'CreativeWork'],
98
-		    'target' => ['URL', 'EntryPoint'],
99
-		    'targetCollection' => ['Thing'],
100
-		    'url' => ['URL']
101
-		];
102
-	}
103
-
104
-
105
-	/**
106
-	 * @inheritdoc
107
-	 */
108
-	public function getSchemaPropertyDescriptions(): array
109
-	{
110
-		return [
111
-		    'actionStatus' => 'Indicates the current disposition of the Action.',
112
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
113
-		    'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
114
-		    'alternateName' => 'An alias for the item.',
115
-		    'collection' => 'A sub property of object. The collection target of the action.',
116
-		    'description' => 'A description of the item.',
117
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
-		    'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
119
-		    'error' => 'For failed actions, more information on the cause of the failure.',
120
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
121
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
-		    'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
123
-		    'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
124
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
125
-		    'name' => 'The name of the item.',
126
-		    'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
127
-		    'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
128
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
-		    'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
130
-		    'result' => 'The result produced in the action. E.g. John wrote *a book*.',
131
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
132
-		    'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
133
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
134
-		    'target' => 'Indicates a target EntryPoint, or url, for an Action.',
135
-		    'targetCollection' => 'A sub property of object. The collection target of the action.',
136
-		    'url' => 'URL of the item.'
137
-		];
138
-	}
139
-
140
-
141
-	/**
142
-	 * @inheritdoc
143
-	 */
144
-	public function getGoogleRequiredSchema(): array
145
-	{
146
-		return ['description', 'name'];
147
-	}
148
-
149
-
150
-	/**
151
-	 * @inheritdoc
152
-	 */
153
-	public function getGoogleRecommendedSchema(): array
154
-	{
155
-		return ['image', 'url'];
156
-	}
157
-
158
-
159
-	/**
160
-	 * @inheritdoc
161
-	 */
162
-	public function defineRules(): array
163
-	{
164
-		$rules = parent::defineRules();
165
-		    $rules = array_merge($rules, [
166
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
-		    ]);
170
-
171
-		    return $rules;
172
-	}
26
+    use DeleteActionTrait;
27
+    use UpdateActionTrait;
28
+    use ActionTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'DeleteAction';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/DeleteAction';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'UpdateAction';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'The act of editing a recipient by removing one of its objects.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'actionStatus' => ['ActionStatusType'],
76
+            'additionalType' => ['URL'],
77
+            'agent' => ['Organization', 'Person'],
78
+            'alternateName' => ['Text'],
79
+            'collection' => ['Thing'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'endTime' => ['DateTime', 'Time'],
83
+            'error' => ['Thing'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'instrument' => ['Thing'],
87
+            'location' => ['Place', 'Text', 'VirtualLocation', 'PostalAddress'],
88
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
89
+            'name' => ['Text'],
90
+            'object' => ['Thing'],
91
+            'participant' => ['Organization', 'Person'],
92
+            'potentialAction' => ['Action'],
93
+            'provider' => ['Organization', 'Person'],
94
+            'result' => ['Thing'],
95
+            'sameAs' => ['URL'],
96
+            'startTime' => ['Time', 'DateTime'],
97
+            'subjectOf' => ['Event', 'CreativeWork'],
98
+            'target' => ['URL', 'EntryPoint'],
99
+            'targetCollection' => ['Thing'],
100
+            'url' => ['URL']
101
+        ];
102
+    }
103
+
104
+
105
+    /**
106
+     * @inheritdoc
107
+     */
108
+    public function getSchemaPropertyDescriptions(): array
109
+    {
110
+        return [
111
+            'actionStatus' => 'Indicates the current disposition of the Action.',
112
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
113
+            'agent' => 'The direct performer or driver of the action (animate or inanimate). E.g. *John* wrote a book.',
114
+            'alternateName' => 'An alias for the item.',
115
+            'collection' => 'A sub property of object. The collection target of the action.',
116
+            'description' => 'A description of the item.',
117
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
118
+            'endTime' => 'The endTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to end. For actions that span a period of time, when the action was performed. E.g. John wrote a book from January to *December*. For media, including audio and video, it\'s the time offset of the end of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
119
+            'error' => 'For failed actions, more information on the cause of the failure.',
120
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
121
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
122
+            'instrument' => 'The object that helped the agent perform the action. E.g. John wrote a book with *a pen*.',
123
+            'location' => 'The location of, for example, where an event is happening, where an organization is located, or where an action takes place.',
124
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
125
+            'name' => 'The name of the item.',
126
+            'object' => 'The object upon which the action is carried out, whose state is kept intact or changed. Also known as the semantic roles patient, affected or undergoer (which change their state) or theme (which doesn\'t). E.g. John read *a book*.',
127
+            'participant' => 'Other co-agents that participated in the action indirectly. E.g. John wrote a book with *Steve*.',
128
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
+            'provider' => 'The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.',
130
+            'result' => 'The result produced in the action. E.g. John wrote *a book*.',
131
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
132
+            'startTime' => 'The startTime of something. For a reserved event or service (e.g. FoodEstablishmentReservation), the time that it is expected to start. For actions that span a period of time, when the action was performed. E.g. John wrote a book from *January* to December. For media, including audio and video, it\'s the time offset of the start of a clip within a larger file.  Note that Event uses startDate/endDate instead of startTime/endTime, even when describing dates with times. This situation may be clarified in future revisions.',
133
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
134
+            'target' => 'Indicates a target EntryPoint, or url, for an Action.',
135
+            'targetCollection' => 'A sub property of object. The collection target of the action.',
136
+            'url' => 'URL of the item.'
137
+        ];
138
+    }
139
+
140
+
141
+    /**
142
+     * @inheritdoc
143
+     */
144
+    public function getGoogleRequiredSchema(): array
145
+    {
146
+        return ['description', 'name'];
147
+    }
148
+
149
+
150
+    /**
151
+     * @inheritdoc
152
+     */
153
+    public function getGoogleRecommendedSchema(): array
154
+    {
155
+        return ['image', 'url'];
156
+    }
157
+
158
+
159
+    /**
160
+     * @inheritdoc
161
+     */
162
+    public function defineRules(): array
163
+    {
164
+        $rules = parent::defineRules();
165
+            $rules = array_merge($rules, [
166
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
167
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
168
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
169
+            ]);
170
+
171
+            return $rules;
172
+    }
173 173
 }
Please login to merge, or discard this patch.
src/models/jsonld/OrderDelivered.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -23,127 +23,127 @@
 block discarded – undo
23 23
  */
24 24
 class OrderDelivered extends MetaJsonLd implements OrderDeliveredInterface, OrderStatusInterface, StatusEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use OrderDeliveredTrait;
27
-	use OrderStatusTrait;
28
-	use StatusEnumerationTrait;
29
-	use EnumerationTrait;
30
-	use IntangibleTrait;
31
-	use ThingTrait;
32
-
33
-	/**
34
-	 * The Schema.org Type Name
35
-	 *
36
-	 * @var string
37
-	 */
38
-	public static $schemaTypeName = 'OrderDelivered';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/OrderDelivered';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'OrderStatus';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'OrderStatus representing successful delivery of an order.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
26
+    use OrderDeliveredTrait;
27
+    use OrderStatusTrait;
28
+    use StatusEnumerationTrait;
29
+    use EnumerationTrait;
30
+    use IntangibleTrait;
31
+    use ThingTrait;
32
+
33
+    /**
34
+     * The Schema.org Type Name
35
+     *
36
+     * @var string
37
+     */
38
+    public static $schemaTypeName = 'OrderDelivered';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/OrderDelivered';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'OrderStatus';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'OrderStatus representing successful delivery of an order.';
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/Subscription.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 Subscription extends MetaJsonLd implements SubscriptionInterface, PriceComponentTypeEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use SubscriptionTrait;
28
-	use PriceComponentTypeEnumerationTrait;
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 = 'Subscription';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/Subscription';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'PriceComponentTypeEnumeration';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'Represents the subscription pricing component of the total price for an offered product.';
60
-
61
-
62
-	/**
63
-	 * @inheritdoc
64
-	 */
65
-	public function getSchemaPropertyNames(): array
66
-	{
67
-		return array_keys($this->getSchemaPropertyExpectedTypes());
68
-	}
69
-
70
-
71
-	/**
72
-	 * @inheritdoc
73
-	 */
74
-	public function getSchemaPropertyExpectedTypes(): array
75
-	{
76
-		return [
77
-		    'additionalType' => ['URL'],
78
-		    'alternateName' => ['Text'],
79
-		    'description' => ['Text'],
80
-		    'disambiguatingDescription' => ['Text'],
81
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
82
-		    'image' => ['URL', 'ImageObject'],
83
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
-		    'name' => ['Text'],
85
-		    'potentialAction' => ['Action'],
86
-		    'sameAs' => ['URL'],
87
-		    'subjectOf' => ['Event', 'CreativeWork'],
88
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
-		    'url' => ['URL']
90
-		];
91
-	}
92
-
93
-
94
-	/**
95
-	 * @inheritdoc
96
-	 */
97
-	public function getSchemaPropertyDescriptions(): array
98
-	{
99
-		return [
100
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
-		    'alternateName' => 'An alias for the item.',
102
-		    'description' => 'A description of the item.',
103
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
-		    'name' => 'The name of the item.',
108
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
-		    'url' => 'URL of the item.'
113
-		];
114
-	}
115
-
116
-
117
-	/**
118
-	 * @inheritdoc
119
-	 */
120
-	public function getGoogleRequiredSchema(): array
121
-	{
122
-		return ['description', 'name'];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRecommendedSchema(): array
130
-	{
131
-		return ['image', 'url'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function defineRules(): array
139
-	{
140
-		$rules = parent::defineRules();
141
-		    $rules = array_merge($rules, [
142
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
-		    ]);
146
-
147
-		    return $rules;
148
-	}
27
+    use SubscriptionTrait;
28
+    use PriceComponentTypeEnumerationTrait;
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 = 'Subscription';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/Subscription';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'PriceComponentTypeEnumeration';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'Represents the subscription pricing component of the total price for an offered product.';
60
+
61
+
62
+    /**
63
+     * @inheritdoc
64
+     */
65
+    public function getSchemaPropertyNames(): array
66
+    {
67
+        return array_keys($this->getSchemaPropertyExpectedTypes());
68
+    }
69
+
70
+
71
+    /**
72
+     * @inheritdoc
73
+     */
74
+    public function getSchemaPropertyExpectedTypes(): array
75
+    {
76
+        return [
77
+            'additionalType' => ['URL'],
78
+            'alternateName' => ['Text'],
79
+            'description' => ['Text'],
80
+            'disambiguatingDescription' => ['Text'],
81
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
82
+            'image' => ['URL', 'ImageObject'],
83
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
84
+            'name' => ['Text'],
85
+            'potentialAction' => ['Action'],
86
+            'sameAs' => ['URL'],
87
+            'subjectOf' => ['Event', 'CreativeWork'],
88
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
89
+            'url' => ['URL']
90
+        ];
91
+    }
92
+
93
+
94
+    /**
95
+     * @inheritdoc
96
+     */
97
+    public function getSchemaPropertyDescriptions(): array
98
+    {
99
+        return [
100
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
101
+            'alternateName' => 'An alias for the item.',
102
+            'description' => 'A description of the item.',
103
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
104
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
105
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
106
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
107
+            'name' => 'The name of the item.',
108
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
109
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
110
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
111
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
112
+            'url' => 'URL of the item.'
113
+        ];
114
+    }
115
+
116
+
117
+    /**
118
+     * @inheritdoc
119
+     */
120
+    public function getGoogleRequiredSchema(): array
121
+    {
122
+        return ['description', 'name'];
123
+    }
124
+
125
+
126
+    /**
127
+     * @inheritdoc
128
+     */
129
+    public function getGoogleRecommendedSchema(): array
130
+    {
131
+        return ['image', 'url'];
132
+    }
133
+
134
+
135
+    /**
136
+     * @inheritdoc
137
+     */
138
+    public function defineRules(): array
139
+    {
140
+        $rules = parent::defineRules();
141
+            $rules = array_merge($rules, [
142
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
143
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
144
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
145
+            ]);
146
+
147
+            return $rules;
148
+    }
149 149
 }
Please login to merge, or discard this patch.
src/models/jsonld/HinduDiet.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 HinduDiet extends MetaJsonLd implements HinduDietInterface, RestrictedDietInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use HinduDietTrait;
27
-	use RestrictedDietTrait;
28
-	use EnumerationTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'HinduDiet';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/HinduDiet';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'RestrictedDiet';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A diet conforming to Hindu dietary practices, in particular, beef-free.';
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 HinduDietTrait;
27
+    use RestrictedDietTrait;
28
+    use EnumerationTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'HinduDiet';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/HinduDiet';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'RestrictedDiet';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A diet conforming to Hindu dietary practices, in particular, beef-free.';
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/Nonprofit501c17.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -24,127 +24,127 @@
 block discarded – undo
24 24
  */
25 25
 class Nonprofit501c17 extends MetaJsonLd implements Nonprofit501c17Interface, USNonprofitTypeInterface, NonprofitTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use Nonprofit501c17Trait;
28
-	use USNonprofitTypeTrait;
29
-	use NonprofitTypeTrait;
30
-	use EnumerationTrait;
31
-	use IntangibleTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'Nonprofit501c17';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/Nonprofit501c17';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'USNonprofitType';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = 'Nonprofit501c17: Non-profit type referring to Supplemental Unemployment Benefit Trusts.';
61
-
62
-
63
-	/**
64
-	 * @inheritdoc
65
-	 */
66
-	public function getSchemaPropertyNames(): array
67
-	{
68
-		return array_keys($this->getSchemaPropertyExpectedTypes());
69
-	}
70
-
71
-
72
-	/**
73
-	 * @inheritdoc
74
-	 */
75
-	public function getSchemaPropertyExpectedTypes(): array
76
-	{
77
-		return [
78
-		    'additionalType' => ['URL'],
79
-		    'alternateName' => ['Text'],
80
-		    'description' => ['Text'],
81
-		    'disambiguatingDescription' => ['Text'],
82
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
83
-		    'image' => ['URL', 'ImageObject'],
84
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
85
-		    'name' => ['Text'],
86
-		    'potentialAction' => ['Action'],
87
-		    'sameAs' => ['URL'],
88
-		    'subjectOf' => ['Event', 'CreativeWork'],
89
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
90
-		    'url' => ['URL']
91
-		];
92
-	}
93
-
94
-
95
-	/**
96
-	 * @inheritdoc
97
-	 */
98
-	public function getSchemaPropertyDescriptions(): array
99
-	{
100
-		return [
101
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
102
-		    'alternateName' => 'An alias for the item.',
103
-		    'description' => 'A description of the item.',
104
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
105
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
106
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
107
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
108
-		    'name' => 'The name of the item.',
109
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
110
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
111
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
112
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
113
-		    'url' => 'URL of the item.'
114
-		];
115
-	}
116
-
117
-
118
-	/**
119
-	 * @inheritdoc
120
-	 */
121
-	public function getGoogleRequiredSchema(): array
122
-	{
123
-		return ['description', 'name'];
124
-	}
125
-
126
-
127
-	/**
128
-	 * @inheritdoc
129
-	 */
130
-	public function getGoogleRecommendedSchema(): array
131
-	{
132
-		return ['image', 'url'];
133
-	}
134
-
135
-
136
-	/**
137
-	 * @inheritdoc
138
-	 */
139
-	public function defineRules(): array
140
-	{
141
-		$rules = parent::defineRules();
142
-		    $rules = array_merge($rules, [
143
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
144
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
145
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
146
-		    ]);
147
-
148
-		    return $rules;
149
-	}
27
+    use Nonprofit501c17Trait;
28
+    use USNonprofitTypeTrait;
29
+    use NonprofitTypeTrait;
30
+    use EnumerationTrait;
31
+    use IntangibleTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'Nonprofit501c17';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/Nonprofit501c17';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'USNonprofitType';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = 'Nonprofit501c17: Non-profit type referring to Supplemental Unemployment Benefit Trusts.';
61
+
62
+
63
+    /**
64
+     * @inheritdoc
65
+     */
66
+    public function getSchemaPropertyNames(): array
67
+    {
68
+        return array_keys($this->getSchemaPropertyExpectedTypes());
69
+    }
70
+
71
+
72
+    /**
73
+     * @inheritdoc
74
+     */
75
+    public function getSchemaPropertyExpectedTypes(): array
76
+    {
77
+        return [
78
+            'additionalType' => ['URL'],
79
+            'alternateName' => ['Text'],
80
+            'description' => ['Text'],
81
+            'disambiguatingDescription' => ['Text'],
82
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
83
+            'image' => ['URL', 'ImageObject'],
84
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
85
+            'name' => ['Text'],
86
+            'potentialAction' => ['Action'],
87
+            'sameAs' => ['URL'],
88
+            'subjectOf' => ['Event', 'CreativeWork'],
89
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
90
+            'url' => ['URL']
91
+        ];
92
+    }
93
+
94
+
95
+    /**
96
+     * @inheritdoc
97
+     */
98
+    public function getSchemaPropertyDescriptions(): array
99
+    {
100
+        return [
101
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
102
+            'alternateName' => 'An alias for the item.',
103
+            'description' => 'A description of the item.',
104
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
105
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
106
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
107
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
108
+            'name' => 'The name of the item.',
109
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
110
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
111
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
112
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
113
+            'url' => 'URL of the item.'
114
+        ];
115
+    }
116
+
117
+
118
+    /**
119
+     * @inheritdoc
120
+     */
121
+    public function getGoogleRequiredSchema(): array
122
+    {
123
+        return ['description', 'name'];
124
+    }
125
+
126
+
127
+    /**
128
+     * @inheritdoc
129
+     */
130
+    public function getGoogleRecommendedSchema(): array
131
+    {
132
+        return ['image', 'url'];
133
+    }
134
+
135
+
136
+    /**
137
+     * @inheritdoc
138
+     */
139
+    public function defineRules(): array
140
+    {
141
+        $rules = parent::defineRules();
142
+            $rules = array_merge($rules, [
143
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
144
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
145
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
146
+            ]);
147
+
148
+            return $rules;
149
+    }
150 150
 }
Please login to merge, or discard this patch.
src/models/jsonld/BookFormatType.php 1 patch
Indentation   +121 added lines, -121 removed lines patch added patch discarded remove patch
@@ -23,125 +23,125 @@
 block discarded – undo
23 23
  */
24 24
 class BookFormatType extends MetaJsonLd implements BookFormatTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use BookFormatTypeTrait;
27
-	use EnumerationTrait;
28
-	use IntangibleTrait;
29
-	use ThingTrait;
30
-
31
-	/**
32
-	 * The Schema.org Type Name
33
-	 *
34
-	 * @var string
35
-	 */
36
-	public static $schemaTypeName = 'BookFormatType';
37
-
38
-	/**
39
-	 * The Schema.org Type Scope
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeScope = 'https://schema.org/BookFormatType';
44
-
45
-	/**
46
-	 * The Schema.org Type Extends
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeExtends = 'Enumeration';
51
-
52
-	/**
53
-	 * The Schema.org Type Description
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeDescription = 'The publication format of the book.';
58
-
59
-
60
-	/**
61
-	 * @inheritdoc
62
-	 */
63
-	public function getSchemaPropertyNames(): array
64
-	{
65
-		return array_keys($this->getSchemaPropertyExpectedTypes());
66
-	}
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyExpectedTypes(): array
73
-	{
74
-		return [
75
-		    'additionalType' => ['URL'],
76
-		    'alternateName' => ['Text'],
77
-		    'description' => ['Text'],
78
-		    'disambiguatingDescription' => ['Text'],
79
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
80
-		    'image' => ['URL', 'ImageObject'],
81
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
82
-		    'name' => ['Text'],
83
-		    'potentialAction' => ['Action'],
84
-		    'sameAs' => ['URL'],
85
-		    'subjectOf' => ['Event', 'CreativeWork'],
86
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
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
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
110
-		    'url' => 'URL of the item.'
111
-		];
112
-	}
113
-
114
-
115
-	/**
116
-	 * @inheritdoc
117
-	 */
118
-	public function getGoogleRequiredSchema(): array
119
-	{
120
-		return ['description', 'name'];
121
-	}
122
-
123
-
124
-	/**
125
-	 * @inheritdoc
126
-	 */
127
-	public function getGoogleRecommendedSchema(): array
128
-	{
129
-		return ['image', 'url'];
130
-	}
131
-
132
-
133
-	/**
134
-	 * @inheritdoc
135
-	 */
136
-	public function defineRules(): array
137
-	{
138
-		$rules = parent::defineRules();
139
-		    $rules = array_merge($rules, [
140
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
141
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
142
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
143
-		    ]);
144
-
145
-		    return $rules;
146
-	}
26
+    use BookFormatTypeTrait;
27
+    use EnumerationTrait;
28
+    use IntangibleTrait;
29
+    use ThingTrait;
30
+
31
+    /**
32
+     * The Schema.org Type Name
33
+     *
34
+     * @var string
35
+     */
36
+    public static $schemaTypeName = 'BookFormatType';
37
+
38
+    /**
39
+     * The Schema.org Type Scope
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeScope = 'https://schema.org/BookFormatType';
44
+
45
+    /**
46
+     * The Schema.org Type Extends
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeExtends = 'Enumeration';
51
+
52
+    /**
53
+     * The Schema.org Type Description
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeDescription = 'The publication format of the book.';
58
+
59
+
60
+    /**
61
+     * @inheritdoc
62
+     */
63
+    public function getSchemaPropertyNames(): array
64
+    {
65
+        return array_keys($this->getSchemaPropertyExpectedTypes());
66
+    }
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyExpectedTypes(): array
73
+    {
74
+        return [
75
+            'additionalType' => ['URL'],
76
+            'alternateName' => ['Text'],
77
+            'description' => ['Text'],
78
+            'disambiguatingDescription' => ['Text'],
79
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
80
+            'image' => ['URL', 'ImageObject'],
81
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
82
+            'name' => ['Text'],
83
+            'potentialAction' => ['Action'],
84
+            'sameAs' => ['URL'],
85
+            'subjectOf' => ['Event', 'CreativeWork'],
86
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
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
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
110
+            'url' => 'URL of the item.'
111
+        ];
112
+    }
113
+
114
+
115
+    /**
116
+     * @inheritdoc
117
+     */
118
+    public function getGoogleRequiredSchema(): array
119
+    {
120
+        return ['description', 'name'];
121
+    }
122
+
123
+
124
+    /**
125
+     * @inheritdoc
126
+     */
127
+    public function getGoogleRecommendedSchema(): array
128
+    {
129
+        return ['image', 'url'];
130
+    }
131
+
132
+
133
+    /**
134
+     * @inheritdoc
135
+     */
136
+    public function defineRules(): array
137
+    {
138
+        $rules = parent::defineRules();
139
+            $rules = array_merge($rules, [
140
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
141
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
142
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
143
+            ]);
144
+
145
+            return $rules;
146
+    }
147 147
 }
Please login to merge, or discard this patch.
src/models/jsonld/CableOrSatelliteService.php 1 patch
Indentation   +167 added lines, -167 removed lines patch added patch discarded remove patch
@@ -24,171 +24,171 @@
 block discarded – undo
24 24
  */
25 25
 class CableOrSatelliteService extends MetaJsonLd implements CableOrSatelliteServiceInterface, ServiceInterface, IntangibleInterface, ThingInterface
26 26
 {
27
-	use CableOrSatelliteServiceTrait;
28
-	use ServiceTrait;
29
-	use IntangibleTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'CableOrSatelliteService';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/CableOrSatelliteService';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'Service';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A service which provides access to media programming like TV or radio. Access may be via cable or satellite.';
59
-
60
-
61
-	/**
62
-	 * @inheritdoc
63
-	 */
64
-	public function getSchemaPropertyNames(): array
65
-	{
66
-		return array_keys($this->getSchemaPropertyExpectedTypes());
67
-	}
68
-
69
-
70
-	/**
71
-	 * @inheritdoc
72
-	 */
73
-	public function getSchemaPropertyExpectedTypes(): array
74
-	{
75
-		return [
76
-		    'additionalType' => ['URL'],
77
-		    'aggregateRating' => ['AggregateRating'],
78
-		    'alternateName' => ['Text'],
79
-		    'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
80
-		    'audience' => ['Audience'],
81
-		    'availableChannel' => ['ServiceChannel'],
82
-		    'award' => ['Text'],
83
-		    'brand' => ['Brand', 'Organization'],
84
-		    'broker' => ['Person', 'Organization'],
85
-		    'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'hasOfferCatalog' => ['OfferCatalog'],
89
-		    'hoursAvailable' => ['OpeningHoursSpecification'],
90
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
91
-		    'image' => ['URL', 'ImageObject'],
92
-		    'isRelatedTo' => ['Product', 'Service'],
93
-		    'isSimilarTo' => ['Product', 'Service'],
94
-		    'logo' => ['ImageObject', 'URL'],
95
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
-		    'name' => ['Text'],
97
-		    'offers' => ['Demand', 'Offer'],
98
-		    'potentialAction' => ['Action'],
99
-		    'produces' => ['Thing'],
100
-		    'provider' => ['Organization', 'Person'],
101
-		    'providerMobility' => ['Text'],
102
-		    'review' => ['Review'],
103
-		    'sameAs' => ['URL'],
104
-		    'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
105
-		    'serviceAudience' => ['Audience'],
106
-		    'serviceOutput' => ['Thing'],
107
-		    'serviceType' => ['Text', 'GovernmentBenefitsType'],
108
-		    'slogan' => ['Text'],
109
-		    'subjectOf' => ['Event', 'CreativeWork'],
110
-		    'termsOfService' => ['URL', 'Text'],
111
-		    'url' => ['URL']
112
-		];
113
-	}
114
-
115
-
116
-	/**
117
-	 * @inheritdoc
118
-	 */
119
-	public function getSchemaPropertyDescriptions(): array
120
-	{
121
-		return [
122
-		    '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.',
123
-		    'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
124
-		    'alternateName' => 'An alias for the item.',
125
-		    'areaServed' => 'The geographic area where a service or offered item is provided.',
126
-		    'audience' => 'An intended audience, i.e. a group for whom something was created.',
127
-		    'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
128
-		    'award' => 'An award won by or for this item.',
129
-		    'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
130
-		    'broker' => 'An entity that arranges for an exchange between a buyer and a seller.  In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.  If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.',
131
-		    'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
132
-		    'description' => 'A description of the item.',
133
-		    '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.',
134
-		    'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
135
-		    'hoursAvailable' => 'The hours during which this service or contact is available.',
136
-		    '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.         ',
137
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
138
-		    'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
139
-		    'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
140
-		    'logo' => 'An associated logo.',
141
-		    '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.',
142
-		    'name' => 'The name of the item.',
143
-		    '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.       ',
144
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
145
-		    'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
146
-		    '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.',
147
-		    'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
148
-		    'review' => 'A review of the item.',
149
-		    '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.',
150
-		    'serviceArea' => 'The geographic area where the service is provided.',
151
-		    'serviceAudience' => 'The audience eligible for this service.',
152
-		    'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
153
-		    'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
154
-		    'slogan' => 'A slogan or motto associated with the item.',
155
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
156
-		    'termsOfService' => 'Human-readable terms of service documentation.',
157
-		    'url' => 'URL of the item.'
158
-		];
159
-	}
160
-
161
-
162
-	/**
163
-	 * @inheritdoc
164
-	 */
165
-	public function getGoogleRequiredSchema(): array
166
-	{
167
-		return ['description', 'name'];
168
-	}
169
-
170
-
171
-	/**
172
-	 * @inheritdoc
173
-	 */
174
-	public function getGoogleRecommendedSchema(): array
175
-	{
176
-		return ['image', 'url'];
177
-	}
178
-
179
-
180
-	/**
181
-	 * @inheritdoc
182
-	 */
183
-	public function defineRules(): array
184
-	{
185
-		$rules = parent::defineRules();
186
-		    $rules = array_merge($rules, [
187
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
188
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
189
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
190
-		    ]);
191
-
192
-		    return $rules;
193
-	}
27
+    use CableOrSatelliteServiceTrait;
28
+    use ServiceTrait;
29
+    use IntangibleTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'CableOrSatelliteService';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/CableOrSatelliteService';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'Service';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A service which provides access to media programming like TV or radio. Access may be via cable or satellite.';
59
+
60
+
61
+    /**
62
+     * @inheritdoc
63
+     */
64
+    public function getSchemaPropertyNames(): array
65
+    {
66
+        return array_keys($this->getSchemaPropertyExpectedTypes());
67
+    }
68
+
69
+
70
+    /**
71
+     * @inheritdoc
72
+     */
73
+    public function getSchemaPropertyExpectedTypes(): array
74
+    {
75
+        return [
76
+            'additionalType' => ['URL'],
77
+            'aggregateRating' => ['AggregateRating'],
78
+            'alternateName' => ['Text'],
79
+            'areaServed' => ['Text', 'Place', 'GeoShape', 'AdministrativeArea'],
80
+            'audience' => ['Audience'],
81
+            'availableChannel' => ['ServiceChannel'],
82
+            'award' => ['Text'],
83
+            'brand' => ['Brand', 'Organization'],
84
+            'broker' => ['Person', 'Organization'],
85
+            'category' => ['URL', 'CategoryCode', 'Text', 'Thing', 'PhysicalActivityCategory'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'hasOfferCatalog' => ['OfferCatalog'],
89
+            'hoursAvailable' => ['OpeningHoursSpecification'],
90
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
91
+            'image' => ['URL', 'ImageObject'],
92
+            'isRelatedTo' => ['Product', 'Service'],
93
+            'isSimilarTo' => ['Product', 'Service'],
94
+            'logo' => ['ImageObject', 'URL'],
95
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
+            'name' => ['Text'],
97
+            'offers' => ['Demand', 'Offer'],
98
+            'potentialAction' => ['Action'],
99
+            'produces' => ['Thing'],
100
+            'provider' => ['Organization', 'Person'],
101
+            'providerMobility' => ['Text'],
102
+            'review' => ['Review'],
103
+            'sameAs' => ['URL'],
104
+            'serviceArea' => ['AdministrativeArea', 'Place', 'GeoShape'],
105
+            'serviceAudience' => ['Audience'],
106
+            'serviceOutput' => ['Thing'],
107
+            'serviceType' => ['Text', 'GovernmentBenefitsType'],
108
+            'slogan' => ['Text'],
109
+            'subjectOf' => ['Event', 'CreativeWork'],
110
+            'termsOfService' => ['URL', 'Text'],
111
+            'url' => ['URL']
112
+        ];
113
+    }
114
+
115
+
116
+    /**
117
+     * @inheritdoc
118
+     */
119
+    public function getSchemaPropertyDescriptions(): array
120
+    {
121
+        return [
122
+            '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.',
123
+            'aggregateRating' => 'The overall rating, based on a collection of reviews or ratings, of the item.',
124
+            'alternateName' => 'An alias for the item.',
125
+            'areaServed' => 'The geographic area where a service or offered item is provided.',
126
+            'audience' => 'An intended audience, i.e. a group for whom something was created.',
127
+            'availableChannel' => 'A means of accessing the service (e.g. a phone bank, a web site, a location, etc.).',
128
+            'award' => 'An award won by or for this item.',
129
+            'brand' => 'The brand(s) associated with a product or service, or the brand(s) maintained by an organization or business person.',
130
+            'broker' => 'An entity that arranges for an exchange between a buyer and a seller.  In most cases a broker never acquires or releases ownership of a product or service involved in an exchange.  If it is not clear whether an entity is a broker, seller, or buyer, the latter two terms are preferred.',
131
+            'category' => 'A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.',
132
+            'description' => 'A description of the item.',
133
+            '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.',
134
+            'hasOfferCatalog' => 'Indicates an OfferCatalog listing for this Organization, Person, or Service.',
135
+            'hoursAvailable' => 'The hours during which this service or contact is available.',
136
+            '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.         ',
137
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
138
+            'isRelatedTo' => 'A pointer to another, somehow related product (or multiple products).',
139
+            'isSimilarTo' => 'A pointer to another, functionally similar product (or multiple products).',
140
+            'logo' => 'An associated logo.',
141
+            '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.',
142
+            'name' => 'The name of the item.',
143
+            '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.       ',
144
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
145
+            'produces' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
146
+            '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.',
147
+            'providerMobility' => 'Indicates the mobility of a provided service (e.g. \'static\', \'dynamic\').',
148
+            'review' => 'A review of the item.',
149
+            '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.',
150
+            'serviceArea' => 'The geographic area where the service is provided.',
151
+            'serviceAudience' => 'The audience eligible for this service.',
152
+            'serviceOutput' => 'The tangible thing generated by the service, e.g. a passport, permit, etc.',
153
+            'serviceType' => 'The type of service being offered, e.g. veterans\' benefits, emergency relief, etc.',
154
+            'slogan' => 'A slogan or motto associated with the item.',
155
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
156
+            'termsOfService' => 'Human-readable terms of service documentation.',
157
+            'url' => 'URL of the item.'
158
+        ];
159
+    }
160
+
161
+
162
+    /**
163
+     * @inheritdoc
164
+     */
165
+    public function getGoogleRequiredSchema(): array
166
+    {
167
+        return ['description', 'name'];
168
+    }
169
+
170
+
171
+    /**
172
+     * @inheritdoc
173
+     */
174
+    public function getGoogleRecommendedSchema(): array
175
+    {
176
+        return ['image', 'url'];
177
+    }
178
+
179
+
180
+    /**
181
+     * @inheritdoc
182
+     */
183
+    public function defineRules(): array
184
+    {
185
+        $rules = parent::defineRules();
186
+            $rules = array_merge($rules, [
187
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
188
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
189
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
190
+            ]);
191
+
192
+            return $rules;
193
+    }
194 194
 }
Please login to merge, or discard this patch.
src/models/jsonld/RadiationTherapy.php 1 patch
Indentation   +161 added lines, -161 removed lines patch added patch discarded remove patch
@@ -23,165 +23,165 @@
 block discarded – undo
23 23
  */
24 24
 class RadiationTherapy extends MetaJsonLd implements RadiationTherapyInterface, MedicalTherapyInterface, TherapeuticProcedureInterface, MedicalProcedureInterface, MedicalEntityInterface, ThingInterface
25 25
 {
26
-	use RadiationTherapyTrait;
27
-	use MedicalTherapyTrait;
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 = 'RadiationTherapy';
39
-
40
-	/**
41
-	 * The Schema.org Type Scope
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeScope = 'https://schema.org/RadiationTherapy';
46
-
47
-	/**
48
-	 * The Schema.org Type Extends
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeExtends = 'MedicalTherapy';
53
-
54
-	/**
55
-	 * The Schema.org Type Description
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeDescription = 'A process of care using radiation aimed at improving a health condition.';
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
-		    'contraindication' => ['Text', 'MedicalContraindication'],
83
-		    'description' => ['Text'],
84
-		    'disambiguatingDescription' => ['Text'],
85
-		    'doseSchedule' => ['DoseSchedule'],
86
-		    'drug' => ['Drug'],
87
-		    'duplicateTherapy' => ['MedicalTherapy'],
88
-		    'followup' => ['Text'],
89
-		    'funding' => ['Grant'],
90
-		    'guideline' => ['MedicalGuideline'],
91
-		    'howPerformed' => ['Text'],
92
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
93
-		    'image' => ['URL', 'ImageObject'],
94
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
95
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
-		    'medicineSystem' => ['MedicineSystem'],
97
-		    'name' => ['Text'],
98
-		    'potentialAction' => ['Action'],
99
-		    'preparation' => ['Text', 'MedicalEntity'],
100
-		    'procedureType' => ['MedicalProcedureType'],
101
-		    'recognizingAuthority' => ['Organization'],
102
-		    'relevantSpecialty' => ['MedicalSpecialty'],
103
-		    'sameAs' => ['URL'],
104
-		    'seriousAdverseOutcome' => ['MedicalEntity'],
105
-		    'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
106
-		    'study' => ['MedicalStudy'],
107
-		    'subjectOf' => ['Event', 'CreativeWork'],
108
-		    'url' => ['URL']
109
-		];
110
-	}
111
-
112
-
113
-	/**
114
-	 * @inheritdoc
115
-	 */
116
-	public function getSchemaPropertyDescriptions(): array
117
-	{
118
-		return [
119
-		    '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.',
120
-		    '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.',
121
-		    'alternateName' => 'An alias for the item.',
122
-		    'bodyLocation' => 'Location in the body of the anatomical structure.',
123
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
124
-		    'contraindication' => 'A contraindication for this therapy.',
125
-		    'description' => 'A description of the item.',
126
-		    '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.',
127
-		    'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.',
128
-		    'drug' => 'Specifying a drug or medicine used in a medication procedure.',
129
-		    'duplicateTherapy' => 'A therapy that duplicates or overlaps this one.',
130
-		    'followup' => 'Typical or recommended followup care after the procedure is performed.',
131
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
132
-		    'guideline' => 'A medical guideline related to this entity.',
133
-		    'howPerformed' => 'How the procedure is performed.',
134
-		    '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.         ',
135
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
136
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
137
-		    '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.',
138
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
139
-		    'name' => 'The name of the item.',
140
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
141
-		    'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
142
-		    'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
143
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
144
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
145
-		    '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.',
146
-		    'seriousAdverseOutcome' => 'A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.',
147
-		    'status' => 'The status of the study (enumerated).',
148
-		    'study' => 'A medical study or trial related to this entity.',
149
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
150
-		    'url' => 'URL of the item.'
151
-		];
152
-	}
153
-
154
-
155
-	/**
156
-	 * @inheritdoc
157
-	 */
158
-	public function getGoogleRequiredSchema(): array
159
-	{
160
-		return ['description', 'name'];
161
-	}
162
-
163
-
164
-	/**
165
-	 * @inheritdoc
166
-	 */
167
-	public function getGoogleRecommendedSchema(): array
168
-	{
169
-		return ['image', 'url'];
170
-	}
171
-
172
-
173
-	/**
174
-	 * @inheritdoc
175
-	 */
176
-	public function defineRules(): array
177
-	{
178
-		$rules = parent::defineRules();
179
-		    $rules = array_merge($rules, [
180
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
181
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
182
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
183
-		    ]);
184
-
185
-		    return $rules;
186
-	}
26
+    use RadiationTherapyTrait;
27
+    use MedicalTherapyTrait;
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 = 'RadiationTherapy';
39
+
40
+    /**
41
+     * The Schema.org Type Scope
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeScope = 'https://schema.org/RadiationTherapy';
46
+
47
+    /**
48
+     * The Schema.org Type Extends
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeExtends = 'MedicalTherapy';
53
+
54
+    /**
55
+     * The Schema.org Type Description
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeDescription = 'A process of care using radiation aimed at improving a health condition.';
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
+            'contraindication' => ['Text', 'MedicalContraindication'],
83
+            'description' => ['Text'],
84
+            'disambiguatingDescription' => ['Text'],
85
+            'doseSchedule' => ['DoseSchedule'],
86
+            'drug' => ['Drug'],
87
+            'duplicateTherapy' => ['MedicalTherapy'],
88
+            'followup' => ['Text'],
89
+            'funding' => ['Grant'],
90
+            'guideline' => ['MedicalGuideline'],
91
+            'howPerformed' => ['Text'],
92
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
93
+            'image' => ['URL', 'ImageObject'],
94
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
95
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
96
+            'medicineSystem' => ['MedicineSystem'],
97
+            'name' => ['Text'],
98
+            'potentialAction' => ['Action'],
99
+            'preparation' => ['Text', 'MedicalEntity'],
100
+            'procedureType' => ['MedicalProcedureType'],
101
+            'recognizingAuthority' => ['Organization'],
102
+            'relevantSpecialty' => ['MedicalSpecialty'],
103
+            'sameAs' => ['URL'],
104
+            'seriousAdverseOutcome' => ['MedicalEntity'],
105
+            'status' => ['MedicalStudyStatus', 'Text', 'EventStatusType'],
106
+            'study' => ['MedicalStudy'],
107
+            'subjectOf' => ['Event', 'CreativeWork'],
108
+            'url' => ['URL']
109
+        ];
110
+    }
111
+
112
+
113
+    /**
114
+     * @inheritdoc
115
+     */
116
+    public function getSchemaPropertyDescriptions(): array
117
+    {
118
+        return [
119
+            '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.',
120
+            '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.',
121
+            'alternateName' => 'An alias for the item.',
122
+            'bodyLocation' => 'Location in the body of the anatomical structure.',
123
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
124
+            'contraindication' => 'A contraindication for this therapy.',
125
+            'description' => 'A description of the item.',
126
+            '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.',
127
+            'doseSchedule' => 'A dosing schedule for the drug for a given population, either observed, recommended, or maximum dose based on the type used.',
128
+            'drug' => 'Specifying a drug or medicine used in a medication procedure.',
129
+            'duplicateTherapy' => 'A therapy that duplicates or overlaps this one.',
130
+            'followup' => 'Typical or recommended followup care after the procedure is performed.',
131
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
132
+            'guideline' => 'A medical guideline related to this entity.',
133
+            'howPerformed' => 'How the procedure is performed.',
134
+            '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.         ',
135
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
136
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
137
+            '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.',
138
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
139
+            'name' => 'The name of the item.',
140
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
141
+            'preparation' => 'Typical preparation that a patient must undergo before having the procedure performed.',
142
+            'procedureType' => 'The type of procedure, for example Surgical, Noninvasive, or Percutaneous.',
143
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
144
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
145
+            '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.',
146
+            'seriousAdverseOutcome' => 'A possible serious complication and/or serious side effect of this therapy. Serious adverse outcomes include those that are life-threatening; result in death, disability, or permanent damage; require hospitalization or prolong existing hospitalization; cause congenital anomalies or birth defects; or jeopardize the patient and may require medical or surgical intervention to prevent one of the outcomes in this definition.',
147
+            'status' => 'The status of the study (enumerated).',
148
+            'study' => 'A medical study or trial related to this entity.',
149
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
150
+            'url' => 'URL of the item.'
151
+        ];
152
+    }
153
+
154
+
155
+    /**
156
+     * @inheritdoc
157
+     */
158
+    public function getGoogleRequiredSchema(): array
159
+    {
160
+        return ['description', 'name'];
161
+    }
162
+
163
+
164
+    /**
165
+     * @inheritdoc
166
+     */
167
+    public function getGoogleRecommendedSchema(): array
168
+    {
169
+        return ['image', 'url'];
170
+    }
171
+
172
+
173
+    /**
174
+     * @inheritdoc
175
+     */
176
+    public function defineRules(): array
177
+    {
178
+        $rules = parent::defineRules();
179
+            $rules = array_merge($rules, [
180
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
181
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
182
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
183
+            ]);
184
+
185
+            return $rules;
186
+    }
187 187
 }
Please login to merge, or discard this patch.
src/models/jsonld/RsvpResponseNo.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 RsvpResponseNo extends MetaJsonLd implements RsvpResponseNoInterface, RsvpResponseTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use RsvpResponseNoTrait;
27
-	use RsvpResponseTypeTrait;
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 = 'RsvpResponseNo';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/RsvpResponseNo';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'RsvpResponseType';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'The invitee will not attend.';
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 RsvpResponseNoTrait;
27
+    use RsvpResponseTypeTrait;
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 = 'RsvpResponseNo';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/RsvpResponseNo';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'RsvpResponseType';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'The invitee will not attend.';
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.