Passed
Push — develop ( 90ed2c...5af6db )
by Andrew
09:42
created
src/models/jsonld/AlignmentObject.php 1 patch
Indentation   +128 added lines, -128 removed lines patch added patch discarded remove patch
@@ -27,132 +27,132 @@
 block discarded – undo
27 27
  */
28 28
 class AlignmentObject extends MetaJsonLd implements AlignmentObjectInterface, IntangibleInterface, ThingInterface
29 29
 {
30
-	use AlignmentObjectTrait;
31
-	use IntangibleTrait;
32
-	use ThingTrait;
33
-
34
-	/**
35
-	 * The Schema.org Type Name
36
-	 *
37
-	 * @var string
38
-	 */
39
-	public static $schemaTypeName = 'AlignmentObject';
40
-
41
-	/**
42
-	 * The Schema.org Type Scope
43
-	 *
44
-	 * @var string
45
-	 */
46
-	public static $schemaTypeScope = 'https://schema.org/AlignmentObject';
47
-
48
-	/**
49
-	 * The Schema.org Type Extends
50
-	 *
51
-	 * @var string
52
-	 */
53
-	public static $schemaTypeExtends = 'Intangible';
54
-
55
-	/**
56
-	 * The Schema.org Type Description
57
-	 *
58
-	 * @var string
59
-	 */
60
-	public static $schemaTypeDescription = "An intangible item that describes an alignment between a learning resource and a node in an educational framework.\n\nShould not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.";
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
-		    'alignmentType' => ['Text'],
80
-		    'alternateName' => ['Text'],
81
-		    'description' => ['Text'],
82
-		    'disambiguatingDescription' => ['Text'],
83
-		    'educationalFramework' => ['Text'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
87
-		    'name' => ['Text'],
88
-		    'potentialAction' => ['Action'],
89
-		    'sameAs' => ['URL'],
90
-		    'subjectOf' => ['Event', 'CreativeWork'],
91
-		    'targetDescription' => ['Text'],
92
-		    'targetName' => ['Text'],
93
-		    'targetUrl' => ['URL'],
94
-		    'url' => ['URL']
95
-		];
96
-	}
97
-
98
-
99
-	/**
100
-	 * @inheritdoc
101
-	 */
102
-	public function getSchemaPropertyDescriptions(): array
103
-	{
104
-		return [
105
-		    '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.',
106
-		    'alignmentType' => 'A category of alignment between the learning resource and the framework node. Recommended values include: \'requires\', \'textComplexity\', \'readingLevel\', and \'educationalSubject\'.',
107
-		    'alternateName' => 'An alias for the item.',
108
-		    'description' => 'A description of the item.',
109
-		    '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.',
110
-		    'educationalFramework' => 'The framework to which the resource being described is aligned.',
111
-		    '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.         ',
112
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
113
-		    '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.',
114
-		    'name' => 'The name of the item.',
115
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
116
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
117
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
118
-		    'targetDescription' => 'The description of a node in an established educational framework.',
119
-		    'targetName' => 'The name of a node in an established educational framework.',
120
-		    'targetUrl' => 'The URL of a node in an established educational framework.',
121
-		    'url' => 'URL of the item.'
122
-		];
123
-	}
124
-
125
-
126
-	/**
127
-	 * @inheritdoc
128
-	 */
129
-	public function getGoogleRequiredSchema(): array
130
-	{
131
-		return ['description', 'name'];
132
-	}
133
-
134
-
135
-	/**
136
-	 * @inheritdoc
137
-	 */
138
-	public function getGoogleRecommendedSchema(): array
139
-	{
140
-		return ['image', 'url'];
141
-	}
142
-
143
-
144
-	/**
145
-	 * @inheritdoc
146
-	 */
147
-	public function defineRules(): array
148
-	{
149
-		$rules = parent::defineRules();
150
-		    $rules = array_merge($rules, [
151
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
152
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
153
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
154
-		    ]);
155
-
156
-		    return $rules;
157
-	}
30
+    use AlignmentObjectTrait;
31
+    use IntangibleTrait;
32
+    use ThingTrait;
33
+
34
+    /**
35
+     * The Schema.org Type Name
36
+     *
37
+     * @var string
38
+     */
39
+    public static $schemaTypeName = 'AlignmentObject';
40
+
41
+    /**
42
+     * The Schema.org Type Scope
43
+     *
44
+     * @var string
45
+     */
46
+    public static $schemaTypeScope = 'https://schema.org/AlignmentObject';
47
+
48
+    /**
49
+     * The Schema.org Type Extends
50
+     *
51
+     * @var string
52
+     */
53
+    public static $schemaTypeExtends = 'Intangible';
54
+
55
+    /**
56
+     * The Schema.org Type Description
57
+     *
58
+     * @var string
59
+     */
60
+    public static $schemaTypeDescription = "An intangible item that describes an alignment between a learning resource and a node in an educational framework.\n\nShould not be used where the nature of the alignment can be described using a simple property, for example to express that a resource [[teaches]] or [[assesses]] a competency.";
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
+            'alignmentType' => ['Text'],
80
+            'alternateName' => ['Text'],
81
+            'description' => ['Text'],
82
+            'disambiguatingDescription' => ['Text'],
83
+            'educationalFramework' => ['Text'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
87
+            'name' => ['Text'],
88
+            'potentialAction' => ['Action'],
89
+            'sameAs' => ['URL'],
90
+            'subjectOf' => ['Event', 'CreativeWork'],
91
+            'targetDescription' => ['Text'],
92
+            'targetName' => ['Text'],
93
+            'targetUrl' => ['URL'],
94
+            'url' => ['URL']
95
+        ];
96
+    }
97
+
98
+
99
+    /**
100
+     * @inheritdoc
101
+     */
102
+    public function getSchemaPropertyDescriptions(): array
103
+    {
104
+        return [
105
+            '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.',
106
+            'alignmentType' => 'A category of alignment between the learning resource and the framework node. Recommended values include: \'requires\', \'textComplexity\', \'readingLevel\', and \'educationalSubject\'.',
107
+            'alternateName' => 'An alias for the item.',
108
+            'description' => 'A description of the item.',
109
+            '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.',
110
+            'educationalFramework' => 'The framework to which the resource being described is aligned.',
111
+            '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.         ',
112
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
113
+            '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.',
114
+            'name' => 'The name of the item.',
115
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
116
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
117
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
118
+            'targetDescription' => 'The description of a node in an established educational framework.',
119
+            'targetName' => 'The name of a node in an established educational framework.',
120
+            'targetUrl' => 'The URL of a node in an established educational framework.',
121
+            'url' => 'URL of the item.'
122
+        ];
123
+    }
124
+
125
+
126
+    /**
127
+     * @inheritdoc
128
+     */
129
+    public function getGoogleRequiredSchema(): array
130
+    {
131
+        return ['description', 'name'];
132
+    }
133
+
134
+
135
+    /**
136
+     * @inheritdoc
137
+     */
138
+    public function getGoogleRecommendedSchema(): array
139
+    {
140
+        return ['image', 'url'];
141
+    }
142
+
143
+
144
+    /**
145
+     * @inheritdoc
146
+     */
147
+    public function defineRules(): array
148
+    {
149
+        $rules = parent::defineRules();
150
+            $rules = array_merge($rules, [
151
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
152
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
153
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
154
+            ]);
155
+
156
+            return $rules;
157
+    }
158 158
 }
Please login to merge, or discard this patch.
src/models/jsonld/OfferShippingDetails.php 1 patch
Indentation   +143 added lines, -143 removed lines patch added patch discarded remove patch
@@ -30,147 +30,147 @@
 block discarded – undo
30 30
  */
31 31
 class OfferShippingDetails extends MetaJsonLd implements OfferShippingDetailsInterface, StructuredValueInterface, IntangibleInterface, ThingInterface
32 32
 {
33
-	use OfferShippingDetailsTrait;
34
-	use StructuredValueTrait;
35
-	use IntangibleTrait;
36
-	use ThingTrait;
37
-
38
-	/**
39
-	 * The Schema.org Type Name
40
-	 *
41
-	 * @var string
42
-	 */
43
-	public static $schemaTypeName = 'OfferShippingDetails';
44
-
45
-	/**
46
-	 * The Schema.org Type Scope
47
-	 *
48
-	 * @var string
49
-	 */
50
-	public static $schemaTypeScope = 'https://schema.org/OfferShippingDetails';
51
-
52
-	/**
53
-	 * The Schema.org Type Extends
54
-	 *
55
-	 * @var string
56
-	 */
57
-	public static $schemaTypeExtends = 'StructuredValue';
58
-
59
-	/**
60
-	 * The Schema.org Type Description
61
-	 *
62
-	 * @var string
63
-	 */
64
-	public static $schemaTypeDescription = "OfferShippingDetails represents information about shipping destinations.\n\nMultiple of these entities can be used to represent different shipping rates for different destinations:\n\nOne entity for Alaska/Hawaii. A different one for continental US. A different one for all France.\n\nMultiple of these entities can be used to represent different shipping costs and delivery times.\n\nTwo entities that are identical but differ in rate and time:\n\nE.g. Cheaper and slower: \$5 in 5-7 days\nor Fast and expensive: \$15 in 1-2 days.";
65
-
66
-
67
-	/**
68
-	 * @inheritdoc
69
-	 */
70
-	public function getSchemaPropertyNames(): array
71
-	{
72
-		return array_keys($this->getSchemaPropertyExpectedTypes());
73
-	}
74
-
75
-
76
-	/**
77
-	 * @inheritdoc
78
-	 */
79
-	public function getSchemaPropertyExpectedTypes(): array
80
-	{
81
-		return [
82
-		    'additionalType' => ['URL'],
83
-		    'alternateName' => ['Text'],
84
-		    'deliveryTime' => ['ShippingDeliveryTime'],
85
-		    'depth' => ['QuantitativeValue', 'Distance'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'doesNotShip' => ['Boolean'],
89
-		    'height' => ['QuantitativeValue', 'Distance'],
90
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
91
-		    'image' => ['URL', 'ImageObject'],
92
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
93
-		    'name' => ['Text'],
94
-		    'potentialAction' => ['Action'],
95
-		    'sameAs' => ['URL'],
96
-		    'shippingDestination' => ['DefinedRegion'],
97
-		    'shippingLabel' => ['Text'],
98
-		    'shippingOrigin' => ['DefinedRegion'],
99
-		    'shippingRate' => ['MonetaryAmount'],
100
-		    'shippingSettingsLink' => ['URL'],
101
-		    'subjectOf' => ['Event', 'CreativeWork'],
102
-		    'transitTimeLabel' => ['Text'],
103
-		    'url' => ['URL'],
104
-		    'weight' => ['QuantitativeValue'],
105
-		    'width' => ['Distance', 'QuantitativeValue']
106
-		];
107
-	}
108
-
109
-
110
-	/**
111
-	 * @inheritdoc
112
-	 */
113
-	public function getSchemaPropertyDescriptions(): array
114
-	{
115
-		return [
116
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
-		    'alternateName' => 'An alias for the item.',
118
-		    'deliveryTime' => 'The total delay between the receipt of the order and the goods reaching the final customer.',
119
-		    'depth' => 'The depth of the item.',
120
-		    'description' => 'A description of the item.',
121
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
122
-		    'doesNotShip' => 'Indicates when shipping to a particular [[shippingDestination]] is not available.',
123
-		    'height' => 'The height of the item.',
124
-		    '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.         ',
125
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
126
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
127
-		    'name' => 'The name of the item.',
128
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
-		    '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.',
130
-		    'shippingDestination' => 'indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.',
131
-		    'shippingLabel' => 'Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).',
132
-		    'shippingOrigin' => 'Indicates the origin of a shipment, i.e. where it should be coming from.',
133
-		    'shippingRate' => 'The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate.',
134
-		    'shippingSettingsLink' => 'Link to a page containing [[ShippingRateSettings]] and [[DeliveryTimeSettings]] details.',
135
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
136
-		    'transitTimeLabel' => 'Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).',
137
-		    'url' => 'URL of the item.',
138
-		    'weight' => 'The weight of the product or person.',
139
-		    'width' => 'The width of the item.'
140
-		];
141
-	}
142
-
143
-
144
-	/**
145
-	 * @inheritdoc
146
-	 */
147
-	public function getGoogleRequiredSchema(): array
148
-	{
149
-		return ['description', 'name'];
150
-	}
151
-
152
-
153
-	/**
154
-	 * @inheritdoc
155
-	 */
156
-	public function getGoogleRecommendedSchema(): array
157
-	{
158
-		return ['image', 'url'];
159
-	}
160
-
161
-
162
-	/**
163
-	 * @inheritdoc
164
-	 */
165
-	public function defineRules(): array
166
-	{
167
-		$rules = parent::defineRules();
168
-		    $rules = array_merge($rules, [
169
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
170
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
171
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
172
-		    ]);
173
-
174
-		    return $rules;
175
-	}
33
+    use OfferShippingDetailsTrait;
34
+    use StructuredValueTrait;
35
+    use IntangibleTrait;
36
+    use ThingTrait;
37
+
38
+    /**
39
+     * The Schema.org Type Name
40
+     *
41
+     * @var string
42
+     */
43
+    public static $schemaTypeName = 'OfferShippingDetails';
44
+
45
+    /**
46
+     * The Schema.org Type Scope
47
+     *
48
+     * @var string
49
+     */
50
+    public static $schemaTypeScope = 'https://schema.org/OfferShippingDetails';
51
+
52
+    /**
53
+     * The Schema.org Type Extends
54
+     *
55
+     * @var string
56
+     */
57
+    public static $schemaTypeExtends = 'StructuredValue';
58
+
59
+    /**
60
+     * The Schema.org Type Description
61
+     *
62
+     * @var string
63
+     */
64
+    public static $schemaTypeDescription = "OfferShippingDetails represents information about shipping destinations.\n\nMultiple of these entities can be used to represent different shipping rates for different destinations:\n\nOne entity for Alaska/Hawaii. A different one for continental US. A different one for all France.\n\nMultiple of these entities can be used to represent different shipping costs and delivery times.\n\nTwo entities that are identical but differ in rate and time:\n\nE.g. Cheaper and slower: \$5 in 5-7 days\nor Fast and expensive: \$15 in 1-2 days.";
65
+
66
+
67
+    /**
68
+     * @inheritdoc
69
+     */
70
+    public function getSchemaPropertyNames(): array
71
+    {
72
+        return array_keys($this->getSchemaPropertyExpectedTypes());
73
+    }
74
+
75
+
76
+    /**
77
+     * @inheritdoc
78
+     */
79
+    public function getSchemaPropertyExpectedTypes(): array
80
+    {
81
+        return [
82
+            'additionalType' => ['URL'],
83
+            'alternateName' => ['Text'],
84
+            'deliveryTime' => ['ShippingDeliveryTime'],
85
+            'depth' => ['QuantitativeValue', 'Distance'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'doesNotShip' => ['Boolean'],
89
+            'height' => ['QuantitativeValue', 'Distance'],
90
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
91
+            'image' => ['URL', 'ImageObject'],
92
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
93
+            'name' => ['Text'],
94
+            'potentialAction' => ['Action'],
95
+            'sameAs' => ['URL'],
96
+            'shippingDestination' => ['DefinedRegion'],
97
+            'shippingLabel' => ['Text'],
98
+            'shippingOrigin' => ['DefinedRegion'],
99
+            'shippingRate' => ['MonetaryAmount'],
100
+            'shippingSettingsLink' => ['URL'],
101
+            'subjectOf' => ['Event', 'CreativeWork'],
102
+            'transitTimeLabel' => ['Text'],
103
+            'url' => ['URL'],
104
+            'weight' => ['QuantitativeValue'],
105
+            'width' => ['Distance', 'QuantitativeValue']
106
+        ];
107
+    }
108
+
109
+
110
+    /**
111
+     * @inheritdoc
112
+     */
113
+    public function getSchemaPropertyDescriptions(): array
114
+    {
115
+        return [
116
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
117
+            'alternateName' => 'An alias for the item.',
118
+            'deliveryTime' => 'The total delay between the receipt of the order and the goods reaching the final customer.',
119
+            'depth' => 'The depth of the item.',
120
+            'description' => 'A description of the item.',
121
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
122
+            'doesNotShip' => 'Indicates when shipping to a particular [[shippingDestination]] is not available.',
123
+            'height' => 'The height of the item.',
124
+            '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.         ',
125
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
126
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
127
+            'name' => 'The name of the item.',
128
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
129
+            '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.',
130
+            'shippingDestination' => 'indicates (possibly multiple) shipping destinations. These can be defined in several ways, e.g. postalCode ranges.',
131
+            'shippingLabel' => 'Label to match an [[OfferShippingDetails]] with a [[ShippingRateSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).',
132
+            'shippingOrigin' => 'Indicates the origin of a shipment, i.e. where it should be coming from.',
133
+            'shippingRate' => 'The shipping rate is the cost of shipping to the specified destination. Typically, the maxValue and currency values (of the [[MonetaryAmount]]) are most appropriate.',
134
+            'shippingSettingsLink' => 'Link to a page containing [[ShippingRateSettings]] and [[DeliveryTimeSettings]] details.',
135
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
136
+            'transitTimeLabel' => 'Label to match an [[OfferShippingDetails]] with a [[DeliveryTimeSettings]] (within the context of a [[shippingSettingsLink]] cross-reference).',
137
+            'url' => 'URL of the item.',
138
+            'weight' => 'The weight of the product or person.',
139
+            'width' => 'The width of the item.'
140
+        ];
141
+    }
142
+
143
+
144
+    /**
145
+     * @inheritdoc
146
+     */
147
+    public function getGoogleRequiredSchema(): array
148
+    {
149
+        return ['description', 'name'];
150
+    }
151
+
152
+
153
+    /**
154
+     * @inheritdoc
155
+     */
156
+    public function getGoogleRecommendedSchema(): array
157
+    {
158
+        return ['image', 'url'];
159
+    }
160
+
161
+
162
+    /**
163
+     * @inheritdoc
164
+     */
165
+    public function defineRules(): array
166
+    {
167
+        $rules = parent::defineRules();
168
+            $rules = array_merge($rules, [
169
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
170
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
171
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
172
+            ]);
173
+
174
+            return $rules;
175
+    }
176 176
 }
Please login to merge, or discard this patch.
src/models/jsonld/MobileWebPlatform.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 MobileWebPlatform extends MetaJsonLd implements MobileWebPlatformInterface, DigitalPlatformEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use MobileWebPlatformTrait;
27
-	use DigitalPlatformEnumerationTrait;
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 = 'MobileWebPlatform';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/MobileWebPlatform';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'DigitalPlatformEnumeration';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'Represents the broad notion of \'mobile\' browsers as a Web Platform.';
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 MobileWebPlatformTrait;
27
+    use DigitalPlatformEnumerationTrait;
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 = 'MobileWebPlatform';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/MobileWebPlatform';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'DigitalPlatformEnumeration';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'Represents the broad notion of \'mobile\' browsers as a Web Platform.';
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/ItemListOrderDescending.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 ItemListOrderDescending extends MetaJsonLd implements ItemListOrderDescendingInterface, ItemListOrderTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use ItemListOrderDescendingTrait;
27
-	use ItemListOrderTypeTrait;
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 = 'ItemListOrderDescending';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/ItemListOrderDescending';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'ItemListOrderType';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'An ItemList ordered with higher values listed first.';
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 ItemListOrderDescendingTrait;
27
+    use ItemListOrderTypeTrait;
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 = 'ItemListOrderDescending';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/ItemListOrderDescending';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'ItemListOrderType';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'An ItemList ordered with higher values listed first.';
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/CaseSeries.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -30,127 +30,127 @@
 block discarded – undo
30 30
  */
31 31
 class CaseSeries extends MetaJsonLd implements CaseSeriesInterface, MedicalObservationalStudyDesignInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
32 32
 {
33
-	use CaseSeriesTrait;
34
-	use MedicalObservationalStudyDesignTrait;
35
-	use MedicalEnumerationTrait;
36
-	use EnumerationTrait;
37
-	use IntangibleTrait;
38
-	use ThingTrait;
39
-
40
-	/**
41
-	 * The Schema.org Type Name
42
-	 *
43
-	 * @var string
44
-	 */
45
-	public static $schemaTypeName = 'CaseSeries';
46
-
47
-	/**
48
-	 * The Schema.org Type Scope
49
-	 *
50
-	 * @var string
51
-	 */
52
-	public static $schemaTypeScope = 'https://schema.org/CaseSeries';
53
-
54
-	/**
55
-	 * The Schema.org Type Extends
56
-	 *
57
-	 * @var string
58
-	 */
59
-	public static $schemaTypeExtends = 'MedicalObservationalStudyDesign';
60
-
61
-	/**
62
-	 * The Schema.org Type Description
63
-	 *
64
-	 * @var string
65
-	 */
66
-	public static $schemaTypeDescription = 'A case series (also known as a clinical series) is a medical research study that tracks patients with a known exposure given similar treatment or examines their medical records for exposure and outcome. A case series can be retrospective or prospective and usually involves a smaller number of patients than the more powerful case-control studies or randomized controlled trials. Case series may be consecutive or non-consecutive, depending on whether all cases presenting to the reporting authors over a period of time were included, or only a selection.';
67
-
68
-
69
-	/**
70
-	 * @inheritdoc
71
-	 */
72
-	public function getSchemaPropertyNames(): array
73
-	{
74
-		return array_keys($this->getSchemaPropertyExpectedTypes());
75
-	}
76
-
77
-
78
-	/**
79
-	 * @inheritdoc
80
-	 */
81
-	public function getSchemaPropertyExpectedTypes(): array
82
-	{
83
-		return [
84
-		    'additionalType' => ['URL'],
85
-		    'alternateName' => ['Text'],
86
-		    'description' => ['Text'],
87
-		    'disambiguatingDescription' => ['Text'],
88
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
89
-		    'image' => ['URL', 'ImageObject'],
90
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
91
-		    'name' => ['Text'],
92
-		    'potentialAction' => ['Action'],
93
-		    'sameAs' => ['URL'],
94
-		    'subjectOf' => ['Event', 'CreativeWork'],
95
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
96
-		    'url' => ['URL']
97
-		];
98
-	}
99
-
100
-
101
-	/**
102
-	 * @inheritdoc
103
-	 */
104
-	public function getSchemaPropertyDescriptions(): array
105
-	{
106
-		return [
107
-		    '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.',
108
-		    'alternateName' => 'An alias for the item.',
109
-		    'description' => 'A description of the item.',
110
-		    '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.',
111
-		    '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.         ',
112
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
113
-		    '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.',
114
-		    'name' => 'The name of the item.',
115
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
116
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
117
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
118
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
119
-		    'url' => 'URL of the item.'
120
-		];
121
-	}
122
-
123
-
124
-	/**
125
-	 * @inheritdoc
126
-	 */
127
-	public function getGoogleRequiredSchema(): array
128
-	{
129
-		return ['description', 'name'];
130
-	}
131
-
132
-
133
-	/**
134
-	 * @inheritdoc
135
-	 */
136
-	public function getGoogleRecommendedSchema(): array
137
-	{
138
-		return ['image', 'url'];
139
-	}
140
-
141
-
142
-	/**
143
-	 * @inheritdoc
144
-	 */
145
-	public function defineRules(): array
146
-	{
147
-		$rules = parent::defineRules();
148
-		    $rules = array_merge($rules, [
149
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
150
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
151
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
152
-		    ]);
153
-
154
-		    return $rules;
155
-	}
33
+    use CaseSeriesTrait;
34
+    use MedicalObservationalStudyDesignTrait;
35
+    use MedicalEnumerationTrait;
36
+    use EnumerationTrait;
37
+    use IntangibleTrait;
38
+    use ThingTrait;
39
+
40
+    /**
41
+     * The Schema.org Type Name
42
+     *
43
+     * @var string
44
+     */
45
+    public static $schemaTypeName = 'CaseSeries';
46
+
47
+    /**
48
+     * The Schema.org Type Scope
49
+     *
50
+     * @var string
51
+     */
52
+    public static $schemaTypeScope = 'https://schema.org/CaseSeries';
53
+
54
+    /**
55
+     * The Schema.org Type Extends
56
+     *
57
+     * @var string
58
+     */
59
+    public static $schemaTypeExtends = 'MedicalObservationalStudyDesign';
60
+
61
+    /**
62
+     * The Schema.org Type Description
63
+     *
64
+     * @var string
65
+     */
66
+    public static $schemaTypeDescription = 'A case series (also known as a clinical series) is a medical research study that tracks patients with a known exposure given similar treatment or examines their medical records for exposure and outcome. A case series can be retrospective or prospective and usually involves a smaller number of patients than the more powerful case-control studies or randomized controlled trials. Case series may be consecutive or non-consecutive, depending on whether all cases presenting to the reporting authors over a period of time were included, or only a selection.';
67
+
68
+
69
+    /**
70
+     * @inheritdoc
71
+     */
72
+    public function getSchemaPropertyNames(): array
73
+    {
74
+        return array_keys($this->getSchemaPropertyExpectedTypes());
75
+    }
76
+
77
+
78
+    /**
79
+     * @inheritdoc
80
+     */
81
+    public function getSchemaPropertyExpectedTypes(): array
82
+    {
83
+        return [
84
+            'additionalType' => ['URL'],
85
+            'alternateName' => ['Text'],
86
+            'description' => ['Text'],
87
+            'disambiguatingDescription' => ['Text'],
88
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
89
+            'image' => ['URL', 'ImageObject'],
90
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
91
+            'name' => ['Text'],
92
+            'potentialAction' => ['Action'],
93
+            'sameAs' => ['URL'],
94
+            'subjectOf' => ['Event', 'CreativeWork'],
95
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
96
+            'url' => ['URL']
97
+        ];
98
+    }
99
+
100
+
101
+    /**
102
+     * @inheritdoc
103
+     */
104
+    public function getSchemaPropertyDescriptions(): array
105
+    {
106
+        return [
107
+            '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.',
108
+            'alternateName' => 'An alias for the item.',
109
+            'description' => 'A description of the item.',
110
+            '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.',
111
+            '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.         ',
112
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
113
+            '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.',
114
+            'name' => 'The name of the item.',
115
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
116
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
117
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
118
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
119
+            'url' => 'URL of the item.'
120
+        ];
121
+    }
122
+
123
+
124
+    /**
125
+     * @inheritdoc
126
+     */
127
+    public function getGoogleRequiredSchema(): array
128
+    {
129
+        return ['description', 'name'];
130
+    }
131
+
132
+
133
+    /**
134
+     * @inheritdoc
135
+     */
136
+    public function getGoogleRecommendedSchema(): array
137
+    {
138
+        return ['image', 'url'];
139
+    }
140
+
141
+
142
+    /**
143
+     * @inheritdoc
144
+     */
145
+    public function defineRules(): array
146
+    {
147
+        $rules = parent::defineRules();
148
+            $rules = array_merge($rules, [
149
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
150
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
151
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
152
+            ]);
153
+
154
+            return $rules;
155
+    }
156 156
 }
Please login to merge, or discard this patch.
src/models/jsonld/MedicalProcedureType.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 MedicalProcedureType extends MetaJsonLd implements MedicalProcedureTypeInterface, MedicalEnumerationInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use MedicalProcedureTypeTrait;
27
-	use MedicalEnumerationTrait;
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 = 'MedicalProcedureType';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/MedicalProcedureType';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'MedicalEnumeration';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'An enumeration that describes different types of medical procedures.';
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 MedicalProcedureTypeTrait;
27
+    use MedicalEnumerationTrait;
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 = 'MedicalProcedureType';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/MedicalProcedureType';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'MedicalEnumeration';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'An enumeration that describes different types of medical procedures.';
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/OneTimePayments.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 OneTimePayments extends MetaJsonLd implements OneTimePaymentsInterface, GovernmentBenefitsTypeInterface, EnumerationInterface, IntangibleInterface, ThingInterface
25 25
 {
26
-	use OneTimePaymentsTrait;
27
-	use GovernmentBenefitsTypeTrait;
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 = 'OneTimePayments';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/OneTimePayments';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'GovernmentBenefitsType';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'OneTimePayments: this is a benefit for one-time payments for individuals.';
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 OneTimePaymentsTrait;
27
+    use GovernmentBenefitsTypeTrait;
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 = 'OneTimePayments';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/OneTimePayments';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'GovernmentBenefitsType';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'OneTimePayments: this is a benefit for one-time payments for individuals.';
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/Muscle.php 1 patch
Indentation   +161 added lines, -161 removed lines patch added patch discarded remove patch
@@ -24,165 +24,165 @@
 block discarded – undo
24 24
  */
25 25
 class Muscle extends MetaJsonLd implements MuscleInterface, AnatomicalStructureInterface, MedicalEntityInterface, ThingInterface
26 26
 {
27
-	use MuscleTrait;
28
-	use AnatomicalStructureTrait;
29
-	use MedicalEntityTrait;
30
-	use ThingTrait;
31
-
32
-	/**
33
-	 * The Schema.org Type Name
34
-	 *
35
-	 * @var string
36
-	 */
37
-	public static $schemaTypeName = 'Muscle';
38
-
39
-	/**
40
-	 * The Schema.org Type Scope
41
-	 *
42
-	 * @var string
43
-	 */
44
-	public static $schemaTypeScope = 'https://schema.org/Muscle';
45
-
46
-	/**
47
-	 * The Schema.org Type Extends
48
-	 *
49
-	 * @var string
50
-	 */
51
-	public static $schemaTypeExtends = 'AnatomicalStructure';
52
-
53
-	/**
54
-	 * The Schema.org Type Description
55
-	 *
56
-	 * @var string
57
-	 */
58
-	public static $schemaTypeDescription = 'A muscle is an anatomical structure consisting of a contractile form of tissue that animals use to effect movement.';
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
-		    'antagonist' => ['Muscle'],
79
-		    'associatedPathophysiology' => ['Text'],
80
-		    'bloodSupply' => ['Vessel'],
81
-		    'bodyLocation' => ['Text'],
82
-		    'code' => ['MedicalCode'],
83
-		    'connectedTo' => ['AnatomicalStructure'],
84
-		    'description' => ['Text'],
85
-		    'diagram' => ['ImageObject'],
86
-		    'disambiguatingDescription' => ['Text'],
87
-		    'funding' => ['Grant'],
88
-		    'guideline' => ['MedicalGuideline'],
89
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
90
-		    'image' => ['URL', 'ImageObject'],
91
-		    'insertion' => ['AnatomicalStructure'],
92
-		    'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
93
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
94
-		    'medicineSystem' => ['MedicineSystem'],
95
-		    'muscleAction' => ['Text'],
96
-		    'name' => ['Text'],
97
-		    'nerve' => ['Nerve'],
98
-		    'partOfSystem' => ['AnatomicalSystem'],
99
-		    'potentialAction' => ['Action'],
100
-		    'recognizingAuthority' => ['Organization'],
101
-		    'relatedCondition' => ['MedicalCondition'],
102
-		    'relatedTherapy' => ['MedicalTherapy'],
103
-		    'relevantSpecialty' => ['MedicalSpecialty'],
104
-		    'sameAs' => ['URL'],
105
-		    'study' => ['MedicalStudy'],
106
-		    'subStructure' => ['AnatomicalStructure'],
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
-		    'alternateName' => 'An alias for the item.',
121
-		    'antagonist' => 'The muscle whose action counteracts the specified muscle.',
122
-		    'associatedPathophysiology' => 'If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.',
123
-		    'bloodSupply' => 'The blood vessel that carries blood from the heart to the muscle.',
124
-		    'bodyLocation' => 'Location in the body of the anatomical structure.',
125
-		    'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
126
-		    'connectedTo' => 'Other anatomical structures to which this structure is connected.',
127
-		    'description' => 'A description of the item.',
128
-		    'diagram' => 'An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.',
129
-		    '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.',
130
-		    'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
131
-		    'guideline' => 'A medical guideline related to this entity.',
132
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
133
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
134
-		    'insertion' => 'The place of attachment of a muscle, or what the muscle moves.',
135
-		    'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
136
-		    '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.',
137
-		    'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
138
-		    'muscleAction' => 'The movement the muscle generates.',
139
-		    'name' => 'The name of the item.',
140
-		    'nerve' => 'The underlying innervation associated with the muscle.',
141
-		    'partOfSystem' => 'The anatomical or organ system that this structure is part of.',
142
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
143
-		    'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
144
-		    'relatedCondition' => 'A medical condition associated with this anatomy.',
145
-		    'relatedTherapy' => 'A medical therapy related to this anatomy.',
146
-		    'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
147
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
148
-		    'study' => 'A medical study or trial related to this entity.',
149
-		    'subStructure' => 'Component (sub-)structure(s) that comprise this anatomical structure.',
150
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
151
-		    'url' => 'URL of the item.'
152
-		];
153
-	}
154
-
155
-
156
-	/**
157
-	 * @inheritdoc
158
-	 */
159
-	public function getGoogleRequiredSchema(): array
160
-	{
161
-		return ['description', 'name'];
162
-	}
163
-
164
-
165
-	/**
166
-	 * @inheritdoc
167
-	 */
168
-	public function getGoogleRecommendedSchema(): array
169
-	{
170
-		return ['image', 'url'];
171
-	}
172
-
173
-
174
-	/**
175
-	 * @inheritdoc
176
-	 */
177
-	public function defineRules(): array
178
-	{
179
-		$rules = parent::defineRules();
180
-		    $rules = array_merge($rules, [
181
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
182
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
183
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
184
-		    ]);
185
-
186
-		    return $rules;
187
-	}
27
+    use MuscleTrait;
28
+    use AnatomicalStructureTrait;
29
+    use MedicalEntityTrait;
30
+    use ThingTrait;
31
+
32
+    /**
33
+     * The Schema.org Type Name
34
+     *
35
+     * @var string
36
+     */
37
+    public static $schemaTypeName = 'Muscle';
38
+
39
+    /**
40
+     * The Schema.org Type Scope
41
+     *
42
+     * @var string
43
+     */
44
+    public static $schemaTypeScope = 'https://schema.org/Muscle';
45
+
46
+    /**
47
+     * The Schema.org Type Extends
48
+     *
49
+     * @var string
50
+     */
51
+    public static $schemaTypeExtends = 'AnatomicalStructure';
52
+
53
+    /**
54
+     * The Schema.org Type Description
55
+     *
56
+     * @var string
57
+     */
58
+    public static $schemaTypeDescription = 'A muscle is an anatomical structure consisting of a contractile form of tissue that animals use to effect movement.';
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
+            'antagonist' => ['Muscle'],
79
+            'associatedPathophysiology' => ['Text'],
80
+            'bloodSupply' => ['Vessel'],
81
+            'bodyLocation' => ['Text'],
82
+            'code' => ['MedicalCode'],
83
+            'connectedTo' => ['AnatomicalStructure'],
84
+            'description' => ['Text'],
85
+            'diagram' => ['ImageObject'],
86
+            'disambiguatingDescription' => ['Text'],
87
+            'funding' => ['Grant'],
88
+            'guideline' => ['MedicalGuideline'],
89
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
90
+            'image' => ['URL', 'ImageObject'],
91
+            'insertion' => ['AnatomicalStructure'],
92
+            'legalStatus' => ['Text', 'DrugLegalStatus', 'MedicalEnumeration'],
93
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
94
+            'medicineSystem' => ['MedicineSystem'],
95
+            'muscleAction' => ['Text'],
96
+            'name' => ['Text'],
97
+            'nerve' => ['Nerve'],
98
+            'partOfSystem' => ['AnatomicalSystem'],
99
+            'potentialAction' => ['Action'],
100
+            'recognizingAuthority' => ['Organization'],
101
+            'relatedCondition' => ['MedicalCondition'],
102
+            'relatedTherapy' => ['MedicalTherapy'],
103
+            'relevantSpecialty' => ['MedicalSpecialty'],
104
+            'sameAs' => ['URL'],
105
+            'study' => ['MedicalStudy'],
106
+            'subStructure' => ['AnatomicalStructure'],
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
+            'alternateName' => 'An alias for the item.',
121
+            'antagonist' => 'The muscle whose action counteracts the specified muscle.',
122
+            'associatedPathophysiology' => 'If applicable, a description of the pathophysiology associated with the anatomical system, including potential abnormal changes in the mechanical, physical, and biochemical functions of the system.',
123
+            'bloodSupply' => 'The blood vessel that carries blood from the heart to the muscle.',
124
+            'bodyLocation' => 'Location in the body of the anatomical structure.',
125
+            'code' => 'A medical code for the entity, taken from a controlled vocabulary or ontology such as ICD-9, DiseasesDB, MeSH, SNOMED-CT, RxNorm, etc.',
126
+            'connectedTo' => 'Other anatomical structures to which this structure is connected.',
127
+            'description' => 'A description of the item.',
128
+            'diagram' => 'An image containing a diagram that illustrates the structure and/or its component substructures and/or connections with other structures.',
129
+            '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.',
130
+            'funding' => 'A [[Grant]] that directly or indirectly provide funding or sponsorship for this item. See also [[ownershipFundingInfo]].',
131
+            'guideline' => 'A medical guideline related to this entity.',
132
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
133
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
134
+            'insertion' => 'The place of attachment of a muscle, or what the muscle moves.',
135
+            'legalStatus' => 'The drug or supplement\'s legal status, including any controlled substance schedules that apply.',
136
+            '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.',
137
+            'medicineSystem' => 'The system of medicine that includes this MedicalEntity, for example \'evidence-based\', \'homeopathic\', \'chiropractic\', etc.',
138
+            'muscleAction' => 'The movement the muscle generates.',
139
+            'name' => 'The name of the item.',
140
+            'nerve' => 'The underlying innervation associated with the muscle.',
141
+            'partOfSystem' => 'The anatomical or organ system that this structure is part of.',
142
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
143
+            'recognizingAuthority' => 'If applicable, the organization that officially recognizes this entity as part of its endorsed system of medicine.',
144
+            'relatedCondition' => 'A medical condition associated with this anatomy.',
145
+            'relatedTherapy' => 'A medical therapy related to this anatomy.',
146
+            'relevantSpecialty' => 'If applicable, a medical specialty in which this entity is relevant.',
147
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
148
+            'study' => 'A medical study or trial related to this entity.',
149
+            'subStructure' => 'Component (sub-)structure(s) that comprise this anatomical structure.',
150
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
151
+            'url' => 'URL of the item.'
152
+        ];
153
+    }
154
+
155
+
156
+    /**
157
+     * @inheritdoc
158
+     */
159
+    public function getGoogleRequiredSchema(): array
160
+    {
161
+        return ['description', 'name'];
162
+    }
163
+
164
+
165
+    /**
166
+     * @inheritdoc
167
+     */
168
+    public function getGoogleRecommendedSchema(): array
169
+    {
170
+        return ['image', 'url'];
171
+    }
172
+
173
+
174
+    /**
175
+     * @inheritdoc
176
+     */
177
+    public function defineRules(): array
178
+    {
179
+        $rules = parent::defineRules();
180
+            $rules = array_merge($rules, [
181
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
182
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
183
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
184
+            ]);
185
+
186
+            return $rules;
187
+    }
188 188
 }
Please login to merge, or discard this patch.
src/models/jsonld/MedicalSpecialty.php 1 patch
Indentation   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -26,127 +26,127 @@
 block discarded – undo
26 26
  */
27 27
 class MedicalSpecialty extends MetaJsonLd implements MedicalSpecialtyInterface, SpecialtyInterface, EnumerationInterface, IntangibleInterface, ThingInterface, MedicalEnumerationInterface
28 28
 {
29
-	use MedicalSpecialtyTrait;
30
-	use SpecialtyTrait;
31
-	use EnumerationTrait;
32
-	use IntangibleTrait;
33
-	use ThingTrait;
34
-	use MedicalEnumerationTrait;
35
-
36
-	/**
37
-	 * The Schema.org Type Name
38
-	 *
39
-	 * @var string
40
-	 */
41
-	public static $schemaTypeName = 'MedicalSpecialty';
42
-
43
-	/**
44
-	 * The Schema.org Type Scope
45
-	 *
46
-	 * @var string
47
-	 */
48
-	public static $schemaTypeScope = 'https://schema.org/MedicalSpecialty';
49
-
50
-	/**
51
-	 * The Schema.org Type Extends
52
-	 *
53
-	 * @var string
54
-	 */
55
-	public static $schemaTypeExtends = 'Specialty';
56
-
57
-	/**
58
-	 * The Schema.org Type Description
59
-	 *
60
-	 * @var string
61
-	 */
62
-	public static $schemaTypeDescription = 'Any specific branch of medical science or practice. Medical specialities include clinical specialties that pertain to particular organ systems and their respective disease states, as well as allied health specialties. Enumerated type.';
63
-
64
-
65
-	/**
66
-	 * @inheritdoc
67
-	 */
68
-	public function getSchemaPropertyNames(): array
69
-	{
70
-		return array_keys($this->getSchemaPropertyExpectedTypes());
71
-	}
72
-
73
-
74
-	/**
75
-	 * @inheritdoc
76
-	 */
77
-	public function getSchemaPropertyExpectedTypes(): array
78
-	{
79
-		return [
80
-		    'additionalType' => ['URL'],
81
-		    'alternateName' => ['Text'],
82
-		    'description' => ['Text'],
83
-		    'disambiguatingDescription' => ['Text'],
84
-		    'identifier' => ['PropertyValue', 'URL', 'Text'],
85
-		    'image' => ['URL', 'ImageObject'],
86
-		    'mainEntityOfPage' => ['URL', 'CreativeWork'],
87
-		    'name' => ['Text'],
88
-		    'potentialAction' => ['Action'],
89
-		    'sameAs' => ['URL'],
90
-		    'subjectOf' => ['Event', 'CreativeWork'],
91
-		    'supersededBy' => ['Class', 'Property', 'Enumeration'],
92
-		    'url' => ['URL']
93
-		];
94
-	}
95
-
96
-
97
-	/**
98
-	 * @inheritdoc
99
-	 */
100
-	public function getSchemaPropertyDescriptions(): array
101
-	{
102
-		return [
103
-		    'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
104
-		    'alternateName' => 'An alias for the item.',
105
-		    'description' => 'A description of the item.',
106
-		    'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
107
-		    'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
108
-		    'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
109
-		    'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
110
-		    'name' => 'The name of the item.',
111
-		    'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
112
-		    'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
113
-		    'subjectOf' => 'A CreativeWork or Event about this Thing.',
114
-		    'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
115
-		    'url' => 'URL of the item.'
116
-		];
117
-	}
118
-
119
-
120
-	/**
121
-	 * @inheritdoc
122
-	 */
123
-	public function getGoogleRequiredSchema(): array
124
-	{
125
-		return ['description', 'name'];
126
-	}
127
-
128
-
129
-	/**
130
-	 * @inheritdoc
131
-	 */
132
-	public function getGoogleRecommendedSchema(): array
133
-	{
134
-		return ['image', 'url'];
135
-	}
136
-
137
-
138
-	/**
139
-	 * @inheritdoc
140
-	 */
141
-	public function defineRules(): array
142
-	{
143
-		$rules = parent::defineRules();
144
-		    $rules = array_merge($rules, [
145
-		        [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
146
-		        [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
147
-		        [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
148
-		    ]);
149
-
150
-		    return $rules;
151
-	}
29
+    use MedicalSpecialtyTrait;
30
+    use SpecialtyTrait;
31
+    use EnumerationTrait;
32
+    use IntangibleTrait;
33
+    use ThingTrait;
34
+    use MedicalEnumerationTrait;
35
+
36
+    /**
37
+     * The Schema.org Type Name
38
+     *
39
+     * @var string
40
+     */
41
+    public static $schemaTypeName = 'MedicalSpecialty';
42
+
43
+    /**
44
+     * The Schema.org Type Scope
45
+     *
46
+     * @var string
47
+     */
48
+    public static $schemaTypeScope = 'https://schema.org/MedicalSpecialty';
49
+
50
+    /**
51
+     * The Schema.org Type Extends
52
+     *
53
+     * @var string
54
+     */
55
+    public static $schemaTypeExtends = 'Specialty';
56
+
57
+    /**
58
+     * The Schema.org Type Description
59
+     *
60
+     * @var string
61
+     */
62
+    public static $schemaTypeDescription = 'Any specific branch of medical science or practice. Medical specialities include clinical specialties that pertain to particular organ systems and their respective disease states, as well as allied health specialties. Enumerated type.';
63
+
64
+
65
+    /**
66
+     * @inheritdoc
67
+     */
68
+    public function getSchemaPropertyNames(): array
69
+    {
70
+        return array_keys($this->getSchemaPropertyExpectedTypes());
71
+    }
72
+
73
+
74
+    /**
75
+     * @inheritdoc
76
+     */
77
+    public function getSchemaPropertyExpectedTypes(): array
78
+    {
79
+        return [
80
+            'additionalType' => ['URL'],
81
+            'alternateName' => ['Text'],
82
+            'description' => ['Text'],
83
+            'disambiguatingDescription' => ['Text'],
84
+            'identifier' => ['PropertyValue', 'URL', 'Text'],
85
+            'image' => ['URL', 'ImageObject'],
86
+            'mainEntityOfPage' => ['URL', 'CreativeWork'],
87
+            'name' => ['Text'],
88
+            'potentialAction' => ['Action'],
89
+            'sameAs' => ['URL'],
90
+            'subjectOf' => ['Event', 'CreativeWork'],
91
+            'supersededBy' => ['Class', 'Property', 'Enumeration'],
92
+            'url' => ['URL']
93
+        ];
94
+    }
95
+
96
+
97
+    /**
98
+     * @inheritdoc
99
+     */
100
+    public function getSchemaPropertyDescriptions(): array
101
+    {
102
+        return [
103
+            'additionalType' => 'An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the \'typeof\' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.',
104
+            'alternateName' => 'An alias for the item.',
105
+            'description' => 'A description of the item.',
106
+            'disambiguatingDescription' => 'A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.',
107
+            'identifier' => 'The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.         ',
108
+            'image' => 'An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].',
109
+            'mainEntityOfPage' => 'Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](/docs/datamodel.html#mainEntityBackground) for details.',
110
+            'name' => 'The name of the item.',
111
+            'potentialAction' => 'Indicates a potential Action, which describes an idealized action in which this thing would play an \'object\' role.',
112
+            'sameAs' => 'URL of a reference Web page that unambiguously indicates the item\'s identity. E.g. the URL of the item\'s Wikipedia page, Wikidata entry, or official website.',
113
+            'subjectOf' => 'A CreativeWork or Event about this Thing.',
114
+            'supersededBy' => 'Relates a term (i.e. a property, class or enumeration) to one that supersedes it.',
115
+            'url' => 'URL of the item.'
116
+        ];
117
+    }
118
+
119
+
120
+    /**
121
+     * @inheritdoc
122
+     */
123
+    public function getGoogleRequiredSchema(): array
124
+    {
125
+        return ['description', 'name'];
126
+    }
127
+
128
+
129
+    /**
130
+     * @inheritdoc
131
+     */
132
+    public function getGoogleRecommendedSchema(): array
133
+    {
134
+        return ['image', 'url'];
135
+    }
136
+
137
+
138
+    /**
139
+     * @inheritdoc
140
+     */
141
+    public function defineRules(): array
142
+    {
143
+        $rules = parent::defineRules();
144
+            $rules = array_merge($rules, [
145
+                [$this->getSchemaPropertyNames(), 'validateJsonSchema'],
146
+                [$this->getGoogleRequiredSchema(), 'required', 'on' => ['google'], 'message' => 'This property is required by Google.'],
147
+                [$this->getGoogleRecommendedSchema(), 'required', 'on' => ['google'], 'message' => 'This property is recommended by Google.']
148
+            ]);
149
+
150
+            return $rules;
151
+    }
152 152
 }
Please login to merge, or discard this patch.