1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Spatie\SchemaOrg; |
4
|
|
|
|
5
|
|
|
use \Spatie\SchemaOrg\Contracts\SearchResultsPageContract; |
6
|
|
|
use \Spatie\SchemaOrg\Contracts\CreativeWorkContract; |
7
|
|
|
use \Spatie\SchemaOrg\Contracts\ThingContract; |
8
|
|
|
use \Spatie\SchemaOrg\Contracts\WebPageContract; |
9
|
|
|
|
10
|
|
|
/** |
11
|
|
|
* Web page type: Search results page. |
12
|
|
|
* |
13
|
|
|
* @see http://schema.org/SearchResultsPage |
14
|
|
|
* |
15
|
|
|
*/ |
16
|
|
|
class SearchResultsPage extends BaseType implements SearchResultsPageContract, CreativeWorkContract, ThingContract, WebPageContract |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* The subject matter of the content. |
20
|
|
|
* |
21
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $about |
22
|
|
|
* |
23
|
|
|
* @return static |
24
|
|
|
* |
25
|
|
|
* @see http://schema.org/about |
26
|
|
|
*/ |
27
|
|
|
public function about($about) |
28
|
|
|
{ |
29
|
|
|
return $this->setProperty('about', $about); |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* The human sensory perceptual system or cognitive faculty through which a |
34
|
|
|
* person may process or perceive information. Expected values include: |
35
|
|
|
* auditory, tactile, textual, visual, colorDependent, chartOnVisual, |
36
|
|
|
* chemOnVisual, diagramOnVisual, mathOnVisual, musicOnVisual, textOnVisual. |
37
|
|
|
* |
38
|
|
|
* @param string|string[] $accessMode |
39
|
|
|
* |
40
|
|
|
* @return static |
41
|
|
|
* |
42
|
|
|
* @see http://schema.org/accessMode |
43
|
|
|
*/ |
44
|
|
|
public function accessMode($accessMode) |
45
|
|
|
{ |
46
|
|
|
return $this->setProperty('accessMode', $accessMode); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* A list of single or combined accessModes that are sufficient to |
51
|
|
|
* understand all the intellectual content of a resource. Expected values |
52
|
|
|
* include: auditory, tactile, textual, visual. |
53
|
|
|
* |
54
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ItemListContract|\Spatie\SchemaOrg\Contracts\ItemListContract[] $accessModeSufficient |
55
|
|
|
* |
56
|
|
|
* @return static |
57
|
|
|
* |
58
|
|
|
* @see http://schema.org/accessModeSufficient |
59
|
|
|
*/ |
60
|
|
|
public function accessModeSufficient($accessModeSufficient) |
61
|
|
|
{ |
62
|
|
|
return $this->setProperty('accessModeSufficient', $accessModeSufficient); |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Indicates that the resource is compatible with the referenced |
67
|
|
|
* accessibility API ([WebSchemas wiki lists possible |
68
|
|
|
* values](http://www.w3.org/wiki/WebSchemas/Accessibility)). |
69
|
|
|
* |
70
|
|
|
* @param string|string[] $accessibilityAPI |
71
|
|
|
* |
72
|
|
|
* @return static |
73
|
|
|
* |
74
|
|
|
* @see http://schema.org/accessibilityAPI |
75
|
|
|
*/ |
76
|
|
|
public function accessibilityAPI($accessibilityAPI) |
77
|
|
|
{ |
78
|
|
|
return $this->setProperty('accessibilityAPI', $accessibilityAPI); |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* Identifies input methods that are sufficient to fully control the |
83
|
|
|
* described resource ([WebSchemas wiki lists possible |
84
|
|
|
* values](http://www.w3.org/wiki/WebSchemas/Accessibility)). |
85
|
|
|
* |
86
|
|
|
* @param string|string[] $accessibilityControl |
87
|
|
|
* |
88
|
|
|
* @return static |
89
|
|
|
* |
90
|
|
|
* @see http://schema.org/accessibilityControl |
91
|
|
|
*/ |
92
|
|
|
public function accessibilityControl($accessibilityControl) |
93
|
|
|
{ |
94
|
|
|
return $this->setProperty('accessibilityControl', $accessibilityControl); |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* Content features of the resource, such as accessible media, alternatives |
99
|
|
|
* and supported enhancements for accessibility ([WebSchemas wiki lists |
100
|
|
|
* possible values](http://www.w3.org/wiki/WebSchemas/Accessibility)). |
101
|
|
|
* |
102
|
|
|
* @param string|string[] $accessibilityFeature |
103
|
|
|
* |
104
|
|
|
* @return static |
105
|
|
|
* |
106
|
|
|
* @see http://schema.org/accessibilityFeature |
107
|
|
|
*/ |
108
|
|
|
public function accessibilityFeature($accessibilityFeature) |
109
|
|
|
{ |
110
|
|
|
return $this->setProperty('accessibilityFeature', $accessibilityFeature); |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* A characteristic of the described resource that is physiologically |
115
|
|
|
* dangerous to some users. Related to WCAG 2.0 guideline 2.3 ([WebSchemas |
116
|
|
|
* wiki lists possible |
117
|
|
|
* values](http://www.w3.org/wiki/WebSchemas/Accessibility)). |
118
|
|
|
* |
119
|
|
|
* @param string|string[] $accessibilityHazard |
120
|
|
|
* |
121
|
|
|
* @return static |
122
|
|
|
* |
123
|
|
|
* @see http://schema.org/accessibilityHazard |
124
|
|
|
*/ |
125
|
|
|
public function accessibilityHazard($accessibilityHazard) |
126
|
|
|
{ |
127
|
|
|
return $this->setProperty('accessibilityHazard', $accessibilityHazard); |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* A human-readable summary of specific accessibility features or |
132
|
|
|
* deficiencies, consistent with the other accessibility metadata but |
133
|
|
|
* expressing subtleties such as "short descriptions are present but long |
134
|
|
|
* descriptions will be needed for non-visual users" or "short descriptions |
135
|
|
|
* are present and no long descriptions are needed." |
136
|
|
|
* |
137
|
|
|
* @param string|string[] $accessibilitySummary |
138
|
|
|
* |
139
|
|
|
* @return static |
140
|
|
|
* |
141
|
|
|
* @see http://schema.org/accessibilitySummary |
142
|
|
|
*/ |
143
|
|
|
public function accessibilitySummary($accessibilitySummary) |
144
|
|
|
{ |
145
|
|
|
return $this->setProperty('accessibilitySummary', $accessibilitySummary); |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* Specifies the Person that is legally accountable for the CreativeWork. |
150
|
|
|
* |
151
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $accountablePerson |
152
|
|
|
* |
153
|
|
|
* @return static |
154
|
|
|
* |
155
|
|
|
* @see http://schema.org/accountablePerson |
156
|
|
|
*/ |
157
|
|
|
public function accountablePerson($accountablePerson) |
158
|
|
|
{ |
159
|
|
|
return $this->setProperty('accountablePerson', $accountablePerson); |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* An additional type for the item, typically used for adding more specific |
164
|
|
|
* types from external vocabularies in microdata syntax. This is a |
165
|
|
|
* relationship between something and a class that the thing is in. In RDFa |
166
|
|
|
* syntax, it is better to use the native RDFa syntax - the 'typeof' |
167
|
|
|
* attribute - for multiple types. Schema.org tools may have only weaker |
168
|
|
|
* understanding of extra types, in particular those defined externally. |
169
|
|
|
* |
170
|
|
|
* @param string|string[] $additionalType |
171
|
|
|
* |
172
|
|
|
* @return static |
173
|
|
|
* |
174
|
|
|
* @see http://schema.org/additionalType |
175
|
|
|
*/ |
176
|
|
|
public function additionalType($additionalType) |
177
|
|
|
{ |
178
|
|
|
return $this->setProperty('additionalType', $additionalType); |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
/** |
182
|
|
|
* The overall rating, based on a collection of reviews or ratings, of the |
183
|
|
|
* item. |
184
|
|
|
* |
185
|
|
|
* @param \Spatie\SchemaOrg\Contracts\AggregateRatingContract|\Spatie\SchemaOrg\Contracts\AggregateRatingContract[] $aggregateRating |
186
|
|
|
* |
187
|
|
|
* @return static |
188
|
|
|
* |
189
|
|
|
* @see http://schema.org/aggregateRating |
190
|
|
|
*/ |
191
|
|
|
public function aggregateRating($aggregateRating) |
192
|
|
|
{ |
193
|
|
|
return $this->setProperty('aggregateRating', $aggregateRating); |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* An alias for the item. |
198
|
|
|
* |
199
|
|
|
* @param string|string[] $alternateName |
200
|
|
|
* |
201
|
|
|
* @return static |
202
|
|
|
* |
203
|
|
|
* @see http://schema.org/alternateName |
204
|
|
|
*/ |
205
|
|
|
public function alternateName($alternateName) |
206
|
|
|
{ |
207
|
|
|
return $this->setProperty('alternateName', $alternateName); |
208
|
|
|
} |
209
|
|
|
|
210
|
|
|
/** |
211
|
|
|
* A secondary title of the CreativeWork. |
212
|
|
|
* |
213
|
|
|
* @param string|string[] $alternativeHeadline |
214
|
|
|
* |
215
|
|
|
* @return static |
216
|
|
|
* |
217
|
|
|
* @see http://schema.org/alternativeHeadline |
218
|
|
|
*/ |
219
|
|
|
public function alternativeHeadline($alternativeHeadline) |
220
|
|
|
{ |
221
|
|
|
return $this->setProperty('alternativeHeadline', $alternativeHeadline); |
222
|
|
|
} |
223
|
|
|
|
224
|
|
|
/** |
225
|
|
|
* A media object that encodes this CreativeWork. This property is a synonym |
226
|
|
|
* for encoding. |
227
|
|
|
* |
228
|
|
|
* @param \Spatie\SchemaOrg\Contracts\MediaObjectContract|\Spatie\SchemaOrg\Contracts\MediaObjectContract[] $associatedMedia |
229
|
|
|
* |
230
|
|
|
* @return static |
231
|
|
|
* |
232
|
|
|
* @see http://schema.org/associatedMedia |
233
|
|
|
*/ |
234
|
|
|
public function associatedMedia($associatedMedia) |
235
|
|
|
{ |
236
|
|
|
return $this->setProperty('associatedMedia', $associatedMedia); |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* An intended audience, i.e. a group for whom something was created. |
241
|
|
|
* |
242
|
|
|
* @param \Spatie\SchemaOrg\Contracts\AudienceContract|\Spatie\SchemaOrg\Contracts\AudienceContract[] $audience |
243
|
|
|
* |
244
|
|
|
* @return static |
245
|
|
|
* |
246
|
|
|
* @see http://schema.org/audience |
247
|
|
|
*/ |
248
|
|
|
public function audience($audience) |
249
|
|
|
{ |
250
|
|
|
return $this->setProperty('audience', $audience); |
251
|
|
|
} |
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* An embedded audio object. |
255
|
|
|
* |
256
|
|
|
* @param \Spatie\SchemaOrg\Contracts\AudioObjectContract|\Spatie\SchemaOrg\Contracts\AudioObjectContract[]|\Spatie\SchemaOrg\Contracts\ClipContract|\Spatie\SchemaOrg\Contracts\ClipContract[] $audio |
257
|
|
|
* |
258
|
|
|
* @return static |
259
|
|
|
* |
260
|
|
|
* @see http://schema.org/audio |
261
|
|
|
*/ |
262
|
|
|
public function audio($audio) |
263
|
|
|
{ |
264
|
|
|
return $this->setProperty('audio', $audio); |
265
|
|
|
} |
266
|
|
|
|
267
|
|
|
/** |
268
|
|
|
* The author of this content or rating. Please note that author is special |
269
|
|
|
* in that HTML 5 provides a special mechanism for indicating authorship via |
270
|
|
|
* the rel tag. That is equivalent to this and may be used interchangeably. |
271
|
|
|
* |
272
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $author |
273
|
|
|
* |
274
|
|
|
* @return static |
275
|
|
|
* |
276
|
|
|
* @see http://schema.org/author |
277
|
|
|
*/ |
278
|
|
|
public function author($author) |
279
|
|
|
{ |
280
|
|
|
return $this->setProperty('author', $author); |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* An award won by or for this item. |
285
|
|
|
* |
286
|
|
|
* @param string|string[] $award |
287
|
|
|
* |
288
|
|
|
* @return static |
289
|
|
|
* |
290
|
|
|
* @see http://schema.org/award |
291
|
|
|
*/ |
292
|
|
|
public function award($award) |
293
|
|
|
{ |
294
|
|
|
return $this->setProperty('award', $award); |
295
|
|
|
} |
296
|
|
|
|
297
|
|
|
/** |
298
|
|
|
* Awards won by or for this item. |
299
|
|
|
* |
300
|
|
|
* @param string|string[] $awards |
301
|
|
|
* |
302
|
|
|
* @return static |
303
|
|
|
* |
304
|
|
|
* @see http://schema.org/awards |
305
|
|
|
*/ |
306
|
|
|
public function awards($awards) |
307
|
|
|
{ |
308
|
|
|
return $this->setProperty('awards', $awards); |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* A set of links that can help a user understand and navigate a website |
313
|
|
|
* hierarchy. |
314
|
|
|
* |
315
|
|
|
* @param \Spatie\SchemaOrg\Contracts\BreadcrumbListContract|\Spatie\SchemaOrg\Contracts\BreadcrumbListContract[]|string|string[] $breadcrumb |
316
|
|
|
* |
317
|
|
|
* @return static |
318
|
|
|
* |
319
|
|
|
* @see http://schema.org/breadcrumb |
320
|
|
|
*/ |
321
|
|
|
public function breadcrumb($breadcrumb) |
322
|
|
|
{ |
323
|
|
|
return $this->setProperty('breadcrumb', $breadcrumb); |
324
|
|
|
} |
325
|
|
|
|
326
|
|
|
/** |
327
|
|
|
* Fictional person connected with a creative work. |
328
|
|
|
* |
329
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $character |
330
|
|
|
* |
331
|
|
|
* @return static |
332
|
|
|
* |
333
|
|
|
* @see http://schema.org/character |
334
|
|
|
*/ |
335
|
|
|
public function character($character) |
336
|
|
|
{ |
337
|
|
|
return $this->setProperty('character', $character); |
338
|
|
|
} |
339
|
|
|
|
340
|
|
|
/** |
341
|
|
|
* A citation or reference to another creative work, such as another |
342
|
|
|
* publication, web page, scholarly article, etc. |
343
|
|
|
* |
344
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $citation |
345
|
|
|
* |
346
|
|
|
* @return static |
347
|
|
|
* |
348
|
|
|
* @see http://schema.org/citation |
349
|
|
|
*/ |
350
|
|
|
public function citation($citation) |
351
|
|
|
{ |
352
|
|
|
return $this->setProperty('citation', $citation); |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* Comments, typically from users. |
357
|
|
|
* |
358
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CommentContract|\Spatie\SchemaOrg\Contracts\CommentContract[] $comment |
359
|
|
|
* |
360
|
|
|
* @return static |
361
|
|
|
* |
362
|
|
|
* @see http://schema.org/comment |
363
|
|
|
*/ |
364
|
|
|
public function comment($comment) |
365
|
|
|
{ |
366
|
|
|
return $this->setProperty('comment', $comment); |
367
|
|
|
} |
368
|
|
|
|
369
|
|
|
/** |
370
|
|
|
* The number of comments this CreativeWork (e.g. Article, Question or |
371
|
|
|
* Answer) has received. This is most applicable to works published in Web |
372
|
|
|
* sites with commenting system; additional comments may exist elsewhere. |
373
|
|
|
* |
374
|
|
|
* @param int|int[] $commentCount |
375
|
|
|
* |
376
|
|
|
* @return static |
377
|
|
|
* |
378
|
|
|
* @see http://schema.org/commentCount |
379
|
|
|
*/ |
380
|
|
|
public function commentCount($commentCount) |
381
|
|
|
{ |
382
|
|
|
return $this->setProperty('commentCount', $commentCount); |
383
|
|
|
} |
384
|
|
|
|
385
|
|
|
/** |
386
|
|
|
* The location depicted or described in the content. For example, the |
387
|
|
|
* location in a photograph or painting. |
388
|
|
|
* |
389
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $contentLocation |
390
|
|
|
* |
391
|
|
|
* @return static |
392
|
|
|
* |
393
|
|
|
* @see http://schema.org/contentLocation |
394
|
|
|
*/ |
395
|
|
|
public function contentLocation($contentLocation) |
396
|
|
|
{ |
397
|
|
|
return $this->setProperty('contentLocation', $contentLocation); |
398
|
|
|
} |
399
|
|
|
|
400
|
|
|
/** |
401
|
|
|
* Official rating of a piece of content—for example,'MPAA PG-13'. |
402
|
|
|
* |
403
|
|
|
* @param \Spatie\SchemaOrg\Contracts\RatingContract|\Spatie\SchemaOrg\Contracts\RatingContract[]|string|string[] $contentRating |
404
|
|
|
* |
405
|
|
|
* @return static |
406
|
|
|
* |
407
|
|
|
* @see http://schema.org/contentRating |
408
|
|
|
*/ |
409
|
|
|
public function contentRating($contentRating) |
410
|
|
|
{ |
411
|
|
|
return $this->setProperty('contentRating', $contentRating); |
412
|
|
|
} |
413
|
|
|
|
414
|
|
|
/** |
415
|
|
|
* A secondary contributor to the CreativeWork or Event. |
416
|
|
|
* |
417
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $contributor |
418
|
|
|
* |
419
|
|
|
* @return static |
420
|
|
|
* |
421
|
|
|
* @see http://schema.org/contributor |
422
|
|
|
*/ |
423
|
|
|
public function contributor($contributor) |
424
|
|
|
{ |
425
|
|
|
return $this->setProperty('contributor', $contributor); |
426
|
|
|
} |
427
|
|
|
|
428
|
|
|
/** |
429
|
|
|
* The party holding the legal copyright to the CreativeWork. |
430
|
|
|
* |
431
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $copyrightHolder |
432
|
|
|
* |
433
|
|
|
* @return static |
434
|
|
|
* |
435
|
|
|
* @see http://schema.org/copyrightHolder |
436
|
|
|
*/ |
437
|
|
|
public function copyrightHolder($copyrightHolder) |
438
|
|
|
{ |
439
|
|
|
return $this->setProperty('copyrightHolder', $copyrightHolder); |
440
|
|
|
} |
441
|
|
|
|
442
|
|
|
/** |
443
|
|
|
* The year during which the claimed copyright for the CreativeWork was |
444
|
|
|
* first asserted. |
445
|
|
|
* |
446
|
|
|
* @param float|float[]|int|int[] $copyrightYear |
447
|
|
|
* |
448
|
|
|
* @return static |
449
|
|
|
* |
450
|
|
|
* @see http://schema.org/copyrightYear |
451
|
|
|
*/ |
452
|
|
|
public function copyrightYear($copyrightYear) |
453
|
|
|
{ |
454
|
|
|
return $this->setProperty('copyrightYear', $copyrightYear); |
455
|
|
|
} |
456
|
|
|
|
457
|
|
|
/** |
458
|
|
|
* The creator/author of this CreativeWork. This is the same as the Author |
459
|
|
|
* property for CreativeWork. |
460
|
|
|
* |
461
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $creator |
462
|
|
|
* |
463
|
|
|
* @return static |
464
|
|
|
* |
465
|
|
|
* @see http://schema.org/creator |
466
|
|
|
*/ |
467
|
|
|
public function creator($creator) |
468
|
|
|
{ |
469
|
|
|
return $this->setProperty('creator', $creator); |
470
|
|
|
} |
471
|
|
|
|
472
|
|
|
/** |
473
|
|
|
* The date on which the CreativeWork was created or the item was added to a |
474
|
|
|
* DataFeed. |
475
|
|
|
* |
476
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $dateCreated |
477
|
|
|
* |
478
|
|
|
* @return static |
479
|
|
|
* |
480
|
|
|
* @see http://schema.org/dateCreated |
481
|
|
|
*/ |
482
|
|
|
public function dateCreated($dateCreated) |
483
|
|
|
{ |
484
|
|
|
return $this->setProperty('dateCreated', $dateCreated); |
485
|
|
|
} |
486
|
|
|
|
487
|
|
|
/** |
488
|
|
|
* The date on which the CreativeWork was most recently modified or when the |
489
|
|
|
* item's entry was modified within a DataFeed. |
490
|
|
|
* |
491
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $dateModified |
492
|
|
|
* |
493
|
|
|
* @return static |
494
|
|
|
* |
495
|
|
|
* @see http://schema.org/dateModified |
496
|
|
|
*/ |
497
|
|
|
public function dateModified($dateModified) |
498
|
|
|
{ |
499
|
|
|
return $this->setProperty('dateModified', $dateModified); |
500
|
|
|
} |
501
|
|
|
|
502
|
|
|
/** |
503
|
|
|
* Date of first broadcast/publication. |
504
|
|
|
* |
505
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $datePublished |
506
|
|
|
* |
507
|
|
|
* @return static |
508
|
|
|
* |
509
|
|
|
* @see http://schema.org/datePublished |
510
|
|
|
*/ |
511
|
|
|
public function datePublished($datePublished) |
512
|
|
|
{ |
513
|
|
|
return $this->setProperty('datePublished', $datePublished); |
514
|
|
|
} |
515
|
|
|
|
516
|
|
|
/** |
517
|
|
|
* A description of the item. |
518
|
|
|
* |
519
|
|
|
* @param string|string[] $description |
520
|
|
|
* |
521
|
|
|
* @return static |
522
|
|
|
* |
523
|
|
|
* @see http://schema.org/description |
524
|
|
|
*/ |
525
|
|
|
public function description($description) |
526
|
|
|
{ |
527
|
|
|
return $this->setProperty('description', $description); |
528
|
|
|
} |
529
|
|
|
|
530
|
|
|
/** |
531
|
|
|
* A sub property of description. A short description of the item used to |
532
|
|
|
* disambiguate from other, similar items. Information from other properties |
533
|
|
|
* (in particular, name) may be necessary for the description to be useful |
534
|
|
|
* for disambiguation. |
535
|
|
|
* |
536
|
|
|
* @param string|string[] $disambiguatingDescription |
537
|
|
|
* |
538
|
|
|
* @return static |
539
|
|
|
* |
540
|
|
|
* @see http://schema.org/disambiguatingDescription |
541
|
|
|
*/ |
542
|
|
|
public function disambiguatingDescription($disambiguatingDescription) |
543
|
|
|
{ |
544
|
|
|
return $this->setProperty('disambiguatingDescription', $disambiguatingDescription); |
545
|
|
|
} |
546
|
|
|
|
547
|
|
|
/** |
548
|
|
|
* A link to the page containing the comments of the CreativeWork. |
549
|
|
|
* |
550
|
|
|
* @param string|string[] $discussionUrl |
551
|
|
|
* |
552
|
|
|
* @return static |
553
|
|
|
* |
554
|
|
|
* @see http://schema.org/discussionUrl |
555
|
|
|
*/ |
556
|
|
|
public function discussionUrl($discussionUrl) |
557
|
|
|
{ |
558
|
|
|
return $this->setProperty('discussionUrl', $discussionUrl); |
559
|
|
|
} |
560
|
|
|
|
561
|
|
|
/** |
562
|
|
|
* Specifies the Person who edited the CreativeWork. |
563
|
|
|
* |
564
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $editor |
565
|
|
|
* |
566
|
|
|
* @return static |
567
|
|
|
* |
568
|
|
|
* @see http://schema.org/editor |
569
|
|
|
*/ |
570
|
|
|
public function editor($editor) |
571
|
|
|
{ |
572
|
|
|
return $this->setProperty('editor', $editor); |
573
|
|
|
} |
574
|
|
|
|
575
|
|
|
/** |
576
|
|
|
* An alignment to an established educational framework. |
577
|
|
|
* |
578
|
|
|
* @param \Spatie\SchemaOrg\Contracts\AlignmentObjectContract|\Spatie\SchemaOrg\Contracts\AlignmentObjectContract[] $educationalAlignment |
579
|
|
|
* |
580
|
|
|
* @return static |
581
|
|
|
* |
582
|
|
|
* @see http://schema.org/educationalAlignment |
583
|
|
|
*/ |
584
|
|
|
public function educationalAlignment($educationalAlignment) |
585
|
|
|
{ |
586
|
|
|
return $this->setProperty('educationalAlignment', $educationalAlignment); |
587
|
|
|
} |
588
|
|
|
|
589
|
|
|
/** |
590
|
|
|
* The purpose of a work in the context of education; for example, |
591
|
|
|
* 'assignment', 'group work'. |
592
|
|
|
* |
593
|
|
|
* @param string|string[] $educationalUse |
594
|
|
|
* |
595
|
|
|
* @return static |
596
|
|
|
* |
597
|
|
|
* @see http://schema.org/educationalUse |
598
|
|
|
*/ |
599
|
|
|
public function educationalUse($educationalUse) |
600
|
|
|
{ |
601
|
|
|
return $this->setProperty('educationalUse', $educationalUse); |
602
|
|
|
} |
603
|
|
|
|
604
|
|
|
/** |
605
|
|
|
* A media object that encodes this CreativeWork. This property is a synonym |
606
|
|
|
* for associatedMedia. |
607
|
|
|
* |
608
|
|
|
* @param \Spatie\SchemaOrg\Contracts\MediaObjectContract|\Spatie\SchemaOrg\Contracts\MediaObjectContract[] $encoding |
609
|
|
|
* |
610
|
|
|
* @return static |
611
|
|
|
* |
612
|
|
|
* @see http://schema.org/encoding |
613
|
|
|
*/ |
614
|
|
|
public function encoding($encoding) |
615
|
|
|
{ |
616
|
|
|
return $this->setProperty('encoding', $encoding); |
617
|
|
|
} |
618
|
|
|
|
619
|
|
|
/** |
620
|
|
|
* Media type typically expressed using a MIME format (see [IANA |
621
|
|
|
* site](http://www.iana.org/assignments/media-types/media-types.xhtml) and |
622
|
|
|
* [MDN |
623
|
|
|
* reference](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)) |
624
|
|
|
* e.g. application/zip for a SoftwareApplication binary, audio/mpeg for |
625
|
|
|
* .mp3 etc.). |
626
|
|
|
* |
627
|
|
|
* In cases where a [[CreativeWork]] has several media type representations, |
628
|
|
|
* [[encoding]] can be used to indicate each [[MediaObject]] alongside |
629
|
|
|
* particular [[encodingFormat]] information. |
630
|
|
|
* |
631
|
|
|
* Unregistered or niche encoding and file formats can be indicated instead |
632
|
|
|
* via the most appropriate URL, e.g. defining Web page or a |
633
|
|
|
* Wikipedia/Wikidata entry. |
634
|
|
|
* |
635
|
|
|
* @param string|string[] $encodingFormat |
636
|
|
|
* |
637
|
|
|
* @return static |
638
|
|
|
* |
639
|
|
|
* @see http://schema.org/encodingFormat |
640
|
|
|
*/ |
641
|
|
|
public function encodingFormat($encodingFormat) |
642
|
|
|
{ |
643
|
|
|
return $this->setProperty('encodingFormat', $encodingFormat); |
644
|
|
|
} |
645
|
|
|
|
646
|
|
|
/** |
647
|
|
|
* A media object that encodes this CreativeWork. |
648
|
|
|
* |
649
|
|
|
* @param \Spatie\SchemaOrg\Contracts\MediaObjectContract|\Spatie\SchemaOrg\Contracts\MediaObjectContract[] $encodings |
650
|
|
|
* |
651
|
|
|
* @return static |
652
|
|
|
* |
653
|
|
|
* @see http://schema.org/encodings |
654
|
|
|
*/ |
655
|
|
|
public function encodings($encodings) |
656
|
|
|
{ |
657
|
|
|
return $this->setProperty('encodings', $encodings); |
658
|
|
|
} |
659
|
|
|
|
660
|
|
|
/** |
661
|
|
|
* A creative work that this work is an |
662
|
|
|
* example/instance/realization/derivation of. |
663
|
|
|
* |
664
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $exampleOfWork |
665
|
|
|
* |
666
|
|
|
* @return static |
667
|
|
|
* |
668
|
|
|
* @see http://schema.org/exampleOfWork |
669
|
|
|
*/ |
670
|
|
|
public function exampleOfWork($exampleOfWork) |
671
|
|
|
{ |
672
|
|
|
return $this->setProperty('exampleOfWork', $exampleOfWork); |
673
|
|
|
} |
674
|
|
|
|
675
|
|
|
/** |
676
|
|
|
* Date the content expires and is no longer useful or available. For |
677
|
|
|
* example a [[VideoObject]] or [[NewsArticle]] whose availability or |
678
|
|
|
* relevance is time-limited, or a [[ClaimReview]] fact check whose |
679
|
|
|
* publisher wants to indicate that it may no longer be relevant (or helpful |
680
|
|
|
* to highlight) after some date. |
681
|
|
|
* |
682
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $expires |
683
|
|
|
* |
684
|
|
|
* @return static |
685
|
|
|
* |
686
|
|
|
* @see http://schema.org/expires |
687
|
|
|
*/ |
688
|
|
|
public function expires($expires) |
689
|
|
|
{ |
690
|
|
|
return $this->setProperty('expires', $expires); |
691
|
|
|
} |
692
|
|
|
|
693
|
|
|
/** |
694
|
|
|
* Media type, typically MIME format (see [IANA |
695
|
|
|
* site](http://www.iana.org/assignments/media-types/media-types.xhtml)) of |
696
|
|
|
* the content e.g. application/zip of a SoftwareApplication binary. In |
697
|
|
|
* cases where a CreativeWork has several media type representations, |
698
|
|
|
* 'encoding' can be used to indicate each MediaObject alongside particular |
699
|
|
|
* fileFormat information. Unregistered or niche file formats can be |
700
|
|
|
* indicated instead via the most appropriate URL, e.g. defining Web page or |
701
|
|
|
* a Wikipedia entry. |
702
|
|
|
* |
703
|
|
|
* @param string|string[] $fileFormat |
704
|
|
|
* |
705
|
|
|
* @return static |
706
|
|
|
* |
707
|
|
|
* @see http://schema.org/fileFormat |
708
|
|
|
*/ |
709
|
|
|
public function fileFormat($fileFormat) |
710
|
|
|
{ |
711
|
|
|
return $this->setProperty('fileFormat', $fileFormat); |
712
|
|
|
} |
713
|
|
|
|
714
|
|
|
/** |
715
|
|
|
* A person or organization that supports (sponsors) something through some |
716
|
|
|
* kind of financial contribution. |
717
|
|
|
* |
718
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $funder |
719
|
|
|
* |
720
|
|
|
* @return static |
721
|
|
|
* |
722
|
|
|
* @see http://schema.org/funder |
723
|
|
|
*/ |
724
|
|
|
public function funder($funder) |
725
|
|
|
{ |
726
|
|
|
return $this->setProperty('funder', $funder); |
727
|
|
|
} |
728
|
|
|
|
729
|
|
|
/** |
730
|
|
|
* Genre of the creative work, broadcast channel or group. |
731
|
|
|
* |
732
|
|
|
* @param string|string[] $genre |
733
|
|
|
* |
734
|
|
|
* @return static |
735
|
|
|
* |
736
|
|
|
* @see http://schema.org/genre |
737
|
|
|
*/ |
738
|
|
|
public function genre($genre) |
739
|
|
|
{ |
740
|
|
|
return $this->setProperty('genre', $genre); |
741
|
|
|
} |
742
|
|
|
|
743
|
|
|
/** |
744
|
|
|
* Indicates an item or CreativeWork that is part of this item, or |
745
|
|
|
* CreativeWork (in some sense). |
746
|
|
|
* |
747
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $hasPart |
748
|
|
|
* |
749
|
|
|
* @return static |
750
|
|
|
* |
751
|
|
|
* @see http://schema.org/hasPart |
752
|
|
|
*/ |
753
|
|
|
public function hasPart($hasPart) |
754
|
|
|
{ |
755
|
|
|
return $this->setProperty('hasPart', $hasPart); |
756
|
|
|
} |
757
|
|
|
|
758
|
|
|
/** |
759
|
|
|
* Headline of the article. |
760
|
|
|
* |
761
|
|
|
* @param string|string[] $headline |
762
|
|
|
* |
763
|
|
|
* @return static |
764
|
|
|
* |
765
|
|
|
* @see http://schema.org/headline |
766
|
|
|
*/ |
767
|
|
|
public function headline($headline) |
768
|
|
|
{ |
769
|
|
|
return $this->setProperty('headline', $headline); |
770
|
|
|
} |
771
|
|
|
|
772
|
|
|
/** |
773
|
|
|
* The identifier property represents any kind of identifier for any kind of |
774
|
|
|
* [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides |
775
|
|
|
* dedicated properties for representing many of these, either as textual |
776
|
|
|
* strings or as URL (URI) links. See [background |
777
|
|
|
* notes](/docs/datamodel.html#identifierBg) for more details. |
778
|
|
|
* |
779
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PropertyValueContract|\Spatie\SchemaOrg\Contracts\PropertyValueContract[]|string|string[] $identifier |
780
|
|
|
* |
781
|
|
|
* @return static |
782
|
|
|
* |
783
|
|
|
* @see http://schema.org/identifier |
784
|
|
|
*/ |
785
|
|
|
public function identifier($identifier) |
786
|
|
|
{ |
787
|
|
|
return $this->setProperty('identifier', $identifier); |
788
|
|
|
} |
789
|
|
|
|
790
|
|
|
/** |
791
|
|
|
* An image of the item. This can be a [[URL]] or a fully described |
792
|
|
|
* [[ImageObject]]. |
793
|
|
|
* |
794
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[]|string|string[] $image |
795
|
|
|
* |
796
|
|
|
* @return static |
797
|
|
|
* |
798
|
|
|
* @see http://schema.org/image |
799
|
|
|
*/ |
800
|
|
|
public function image($image) |
801
|
|
|
{ |
802
|
|
|
return $this->setProperty('image', $image); |
803
|
|
|
} |
804
|
|
|
|
805
|
|
|
/** |
806
|
|
|
* The language of the content or performance or used in an action. Please |
807
|
|
|
* use one of the language codes from the [IETF BCP 47 |
808
|
|
|
* standard](http://tools.ietf.org/html/bcp47). See also |
809
|
|
|
* [[availableLanguage]]. |
810
|
|
|
* |
811
|
|
|
* @param \Spatie\SchemaOrg\Contracts\LanguageContract|\Spatie\SchemaOrg\Contracts\LanguageContract[]|string|string[] $inLanguage |
812
|
|
|
* |
813
|
|
|
* @return static |
814
|
|
|
* |
815
|
|
|
* @see http://schema.org/inLanguage |
816
|
|
|
*/ |
817
|
|
|
public function inLanguage($inLanguage) |
818
|
|
|
{ |
819
|
|
|
return $this->setProperty('inLanguage', $inLanguage); |
820
|
|
|
} |
821
|
|
|
|
822
|
|
|
/** |
823
|
|
|
* The number of interactions for the CreativeWork using the WebSite or |
824
|
|
|
* SoftwareApplication. The most specific child type of InteractionCounter |
825
|
|
|
* should be used. |
826
|
|
|
* |
827
|
|
|
* @param \Spatie\SchemaOrg\Contracts\InteractionCounterContract|\Spatie\SchemaOrg\Contracts\InteractionCounterContract[] $interactionStatistic |
828
|
|
|
* |
829
|
|
|
* @return static |
830
|
|
|
* |
831
|
|
|
* @see http://schema.org/interactionStatistic |
832
|
|
|
*/ |
833
|
|
|
public function interactionStatistic($interactionStatistic) |
834
|
|
|
{ |
835
|
|
|
return $this->setProperty('interactionStatistic', $interactionStatistic); |
836
|
|
|
} |
837
|
|
|
|
838
|
|
|
/** |
839
|
|
|
* The predominant mode of learning supported by the learning resource. |
840
|
|
|
* Acceptable values are 'active', 'expositive', or 'mixed'. |
841
|
|
|
* |
842
|
|
|
* @param string|string[] $interactivityType |
843
|
|
|
* |
844
|
|
|
* @return static |
845
|
|
|
* |
846
|
|
|
* @see http://schema.org/interactivityType |
847
|
|
|
*/ |
848
|
|
|
public function interactivityType($interactivityType) |
849
|
|
|
{ |
850
|
|
|
return $this->setProperty('interactivityType', $interactivityType); |
851
|
|
|
} |
852
|
|
|
|
853
|
|
|
/** |
854
|
|
|
* A flag to signal that the item, event, or place is accessible for free. |
855
|
|
|
* |
856
|
|
|
* @param bool|bool[] $isAccessibleForFree |
857
|
|
|
* |
858
|
|
|
* @return static |
859
|
|
|
* |
860
|
|
|
* @see http://schema.org/isAccessibleForFree |
861
|
|
|
*/ |
862
|
|
|
public function isAccessibleForFree($isAccessibleForFree) |
863
|
|
|
{ |
864
|
|
|
return $this->setProperty('isAccessibleForFree', $isAccessibleForFree); |
865
|
|
|
} |
866
|
|
|
|
867
|
|
|
/** |
868
|
|
|
* A resource from which this work is derived or from which it is a |
869
|
|
|
* modification or adaption. |
870
|
|
|
* |
871
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $isBasedOn |
872
|
|
|
* |
873
|
|
|
* @return static |
874
|
|
|
* |
875
|
|
|
* @see http://schema.org/isBasedOn |
876
|
|
|
*/ |
877
|
|
|
public function isBasedOn($isBasedOn) |
878
|
|
|
{ |
879
|
|
|
return $this->setProperty('isBasedOn', $isBasedOn); |
880
|
|
|
} |
881
|
|
|
|
882
|
|
|
/** |
883
|
|
|
* A resource that was used in the creation of this resource. This term can |
884
|
|
|
* be repeated for multiple sources. For example, |
885
|
|
|
* http://example.com/great-multiplication-intro.html. |
886
|
|
|
* |
887
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $isBasedOnUrl |
888
|
|
|
* |
889
|
|
|
* @return static |
890
|
|
|
* |
891
|
|
|
* @see http://schema.org/isBasedOnUrl |
892
|
|
|
*/ |
893
|
|
|
public function isBasedOnUrl($isBasedOnUrl) |
894
|
|
|
{ |
895
|
|
|
return $this->setProperty('isBasedOnUrl', $isBasedOnUrl); |
896
|
|
|
} |
897
|
|
|
|
898
|
|
|
/** |
899
|
|
|
* Indicates whether this content is family friendly. |
900
|
|
|
* |
901
|
|
|
* @param bool|bool[] $isFamilyFriendly |
902
|
|
|
* |
903
|
|
|
* @return static |
904
|
|
|
* |
905
|
|
|
* @see http://schema.org/isFamilyFriendly |
906
|
|
|
*/ |
907
|
|
|
public function isFamilyFriendly($isFamilyFriendly) |
908
|
|
|
{ |
909
|
|
|
return $this->setProperty('isFamilyFriendly', $isFamilyFriendly); |
910
|
|
|
} |
911
|
|
|
|
912
|
|
|
/** |
913
|
|
|
* Indicates an item or CreativeWork that this item, or CreativeWork (in |
914
|
|
|
* some sense), is part of. |
915
|
|
|
* |
916
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $isPartOf |
917
|
|
|
* |
918
|
|
|
* @return static |
919
|
|
|
* |
920
|
|
|
* @see http://schema.org/isPartOf |
921
|
|
|
*/ |
922
|
|
|
public function isPartOf($isPartOf) |
923
|
|
|
{ |
924
|
|
|
return $this->setProperty('isPartOf', $isPartOf); |
925
|
|
|
} |
926
|
|
|
|
927
|
|
|
/** |
928
|
|
|
* Keywords or tags used to describe this content. Multiple entries in a |
929
|
|
|
* keywords list are typically delimited by commas. |
930
|
|
|
* |
931
|
|
|
* @param string|string[] $keywords |
932
|
|
|
* |
933
|
|
|
* @return static |
934
|
|
|
* |
935
|
|
|
* @see http://schema.org/keywords |
936
|
|
|
*/ |
937
|
|
|
public function keywords($keywords) |
938
|
|
|
{ |
939
|
|
|
return $this->setProperty('keywords', $keywords); |
940
|
|
|
} |
941
|
|
|
|
942
|
|
|
/** |
943
|
|
|
* Date on which the content on this web page was last reviewed for accuracy |
944
|
|
|
* and/or completeness. |
945
|
|
|
* |
946
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $lastReviewed |
947
|
|
|
* |
948
|
|
|
* @return static |
949
|
|
|
* |
950
|
|
|
* @see http://schema.org/lastReviewed |
951
|
|
|
*/ |
952
|
|
|
public function lastReviewed($lastReviewed) |
953
|
|
|
{ |
954
|
|
|
return $this->setProperty('lastReviewed', $lastReviewed); |
955
|
|
|
} |
956
|
|
|
|
957
|
|
|
/** |
958
|
|
|
* The predominant type or kind characterizing the learning resource. For |
959
|
|
|
* example, 'presentation', 'handout'. |
960
|
|
|
* |
961
|
|
|
* @param string|string[] $learningResourceType |
962
|
|
|
* |
963
|
|
|
* @return static |
964
|
|
|
* |
965
|
|
|
* @see http://schema.org/learningResourceType |
966
|
|
|
*/ |
967
|
|
|
public function learningResourceType($learningResourceType) |
968
|
|
|
{ |
969
|
|
|
return $this->setProperty('learningResourceType', $learningResourceType); |
970
|
|
|
} |
971
|
|
|
|
972
|
|
|
/** |
973
|
|
|
* A license document that applies to this content, typically indicated by |
974
|
|
|
* URL. |
975
|
|
|
* |
976
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $license |
977
|
|
|
* |
978
|
|
|
* @return static |
979
|
|
|
* |
980
|
|
|
* @see http://schema.org/license |
981
|
|
|
*/ |
982
|
|
|
public function license($license) |
983
|
|
|
{ |
984
|
|
|
return $this->setProperty('license', $license); |
985
|
|
|
} |
986
|
|
|
|
987
|
|
|
/** |
988
|
|
|
* The location where the CreativeWork was created, which may not be the |
989
|
|
|
* same as the location depicted in the CreativeWork. |
990
|
|
|
* |
991
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $locationCreated |
992
|
|
|
* |
993
|
|
|
* @return static |
994
|
|
|
* |
995
|
|
|
* @see http://schema.org/locationCreated |
996
|
|
|
*/ |
997
|
|
|
public function locationCreated($locationCreated) |
998
|
|
|
{ |
999
|
|
|
return $this->setProperty('locationCreated', $locationCreated); |
1000
|
|
|
} |
1001
|
|
|
|
1002
|
|
|
/** |
1003
|
|
|
* Indicates if this web page element is the main subject of the page. |
1004
|
|
|
* |
1005
|
|
|
* @param \Spatie\SchemaOrg\Contracts\WebPageElementContract|\Spatie\SchemaOrg\Contracts\WebPageElementContract[] $mainContentOfPage |
1006
|
|
|
* |
1007
|
|
|
* @return static |
1008
|
|
|
* |
1009
|
|
|
* @see http://schema.org/mainContentOfPage |
1010
|
|
|
*/ |
1011
|
|
|
public function mainContentOfPage($mainContentOfPage) |
1012
|
|
|
{ |
1013
|
|
|
return $this->setProperty('mainContentOfPage', $mainContentOfPage); |
1014
|
|
|
} |
1015
|
|
|
|
1016
|
|
|
/** |
1017
|
|
|
* Indicates the primary entity described in some page or other |
1018
|
|
|
* CreativeWork. |
1019
|
|
|
* |
1020
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $mainEntity |
1021
|
|
|
* |
1022
|
|
|
* @return static |
1023
|
|
|
* |
1024
|
|
|
* @see http://schema.org/mainEntity |
1025
|
|
|
*/ |
1026
|
|
|
public function mainEntity($mainEntity) |
1027
|
|
|
{ |
1028
|
|
|
return $this->setProperty('mainEntity', $mainEntity); |
1029
|
|
|
} |
1030
|
|
|
|
1031
|
|
|
/** |
1032
|
|
|
* Indicates a page (or other CreativeWork) for which this thing is the main |
1033
|
|
|
* entity being described. See [background |
1034
|
|
|
* notes](/docs/datamodel.html#mainEntityBackground) for details. |
1035
|
|
|
* |
1036
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $mainEntityOfPage |
1037
|
|
|
* |
1038
|
|
|
* @return static |
1039
|
|
|
* |
1040
|
|
|
* @see http://schema.org/mainEntityOfPage |
1041
|
|
|
*/ |
1042
|
|
|
public function mainEntityOfPage($mainEntityOfPage) |
1043
|
|
|
{ |
1044
|
|
|
return $this->setProperty('mainEntityOfPage', $mainEntityOfPage); |
1045
|
|
|
} |
1046
|
|
|
|
1047
|
|
|
/** |
1048
|
|
|
* A material that something is made from, e.g. leather, wool, cotton, |
1049
|
|
|
* paper. |
1050
|
|
|
* |
1051
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ProductContract|\Spatie\SchemaOrg\Contracts\ProductContract[]|string|string[] $material |
1052
|
|
|
* |
1053
|
|
|
* @return static |
1054
|
|
|
* |
1055
|
|
|
* @see http://schema.org/material |
1056
|
|
|
*/ |
1057
|
|
|
public function material($material) |
1058
|
|
|
{ |
1059
|
|
|
return $this->setProperty('material', $material); |
1060
|
|
|
} |
1061
|
|
|
|
1062
|
|
|
/** |
1063
|
|
|
* Indicates that the CreativeWork contains a reference to, but is not |
1064
|
|
|
* necessarily about a concept. |
1065
|
|
|
* |
1066
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ThingContract|\Spatie\SchemaOrg\Contracts\ThingContract[] $mentions |
1067
|
|
|
* |
1068
|
|
|
* @return static |
1069
|
|
|
* |
1070
|
|
|
* @see http://schema.org/mentions |
1071
|
|
|
*/ |
1072
|
|
|
public function mentions($mentions) |
1073
|
|
|
{ |
1074
|
|
|
return $this->setProperty('mentions', $mentions); |
1075
|
|
|
} |
1076
|
|
|
|
1077
|
|
|
/** |
1078
|
|
|
* The name of the item. |
1079
|
|
|
* |
1080
|
|
|
* @param string|string[] $name |
1081
|
|
|
* |
1082
|
|
|
* @return static |
1083
|
|
|
* |
1084
|
|
|
* @see http://schema.org/name |
1085
|
|
|
*/ |
1086
|
|
|
public function name($name) |
1087
|
|
|
{ |
1088
|
|
|
return $this->setProperty('name', $name); |
1089
|
|
|
} |
1090
|
|
|
|
1091
|
|
|
/** |
1092
|
|
|
* An offer to provide this item—for example, an offer to sell a |
1093
|
|
|
* product, rent the DVD of a movie, perform a service, or give away tickets |
1094
|
|
|
* to an event. Use [[businessFunction]] to indicate the kind of transaction |
1095
|
|
|
* offered, i.e. sell, lease, etc. This property can also be used to |
1096
|
|
|
* describe a [[Demand]]. While this property is listed as expected on a |
1097
|
|
|
* number of common types, it can be used in others. In that case, using a |
1098
|
|
|
* second type, such as Product or a subtype of Product, can clarify the |
1099
|
|
|
* nature of the offer. |
1100
|
|
|
* |
1101
|
|
|
* @param \Spatie\SchemaOrg\Contracts\DemandContract|\Spatie\SchemaOrg\Contracts\DemandContract[]|\Spatie\SchemaOrg\Contracts\OfferContract|\Spatie\SchemaOrg\Contracts\OfferContract[] $offers |
1102
|
|
|
* |
1103
|
|
|
* @return static |
1104
|
|
|
* |
1105
|
|
|
* @see http://schema.org/offers |
1106
|
|
|
*/ |
1107
|
|
|
public function offers($offers) |
1108
|
|
|
{ |
1109
|
|
|
return $this->setProperty('offers', $offers); |
1110
|
|
|
} |
1111
|
|
|
|
1112
|
|
|
/** |
1113
|
|
|
* The position of an item in a series or sequence of items. |
1114
|
|
|
* |
1115
|
|
|
* @param int|int[]|string|string[] $position |
1116
|
|
|
* |
1117
|
|
|
* @return static |
1118
|
|
|
* |
1119
|
|
|
* @see http://schema.org/position |
1120
|
|
|
*/ |
1121
|
|
|
public function position($position) |
1122
|
|
|
{ |
1123
|
|
|
return $this->setProperty('position', $position); |
1124
|
|
|
} |
1125
|
|
|
|
1126
|
|
|
/** |
1127
|
|
|
* Indicates a potential Action, which describes an idealized action in |
1128
|
|
|
* which this thing would play an 'object' role. |
1129
|
|
|
* |
1130
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ActionContract|\Spatie\SchemaOrg\Contracts\ActionContract[] $potentialAction |
1131
|
|
|
* |
1132
|
|
|
* @return static |
1133
|
|
|
* |
1134
|
|
|
* @see http://schema.org/potentialAction |
1135
|
|
|
*/ |
1136
|
|
|
public function potentialAction($potentialAction) |
1137
|
|
|
{ |
1138
|
|
|
return $this->setProperty('potentialAction', $potentialAction); |
1139
|
|
|
} |
1140
|
|
|
|
1141
|
|
|
/** |
1142
|
|
|
* Indicates the main image on the page. |
1143
|
|
|
* |
1144
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ImageObjectContract|\Spatie\SchemaOrg\Contracts\ImageObjectContract[] $primaryImageOfPage |
1145
|
|
|
* |
1146
|
|
|
* @return static |
1147
|
|
|
* |
1148
|
|
|
* @see http://schema.org/primaryImageOfPage |
1149
|
|
|
*/ |
1150
|
|
|
public function primaryImageOfPage($primaryImageOfPage) |
1151
|
|
|
{ |
1152
|
|
|
return $this->setProperty('primaryImageOfPage', $primaryImageOfPage); |
1153
|
|
|
} |
1154
|
|
|
|
1155
|
|
|
/** |
1156
|
|
|
* The person or organization who produced the work (e.g. music album, |
1157
|
|
|
* movie, tv/radio series etc.). |
1158
|
|
|
* |
1159
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $producer |
1160
|
|
|
* |
1161
|
|
|
* @return static |
1162
|
|
|
* |
1163
|
|
|
* @see http://schema.org/producer |
1164
|
|
|
*/ |
1165
|
|
|
public function producer($producer) |
1166
|
|
|
{ |
1167
|
|
|
return $this->setProperty('producer', $producer); |
1168
|
|
|
} |
1169
|
|
|
|
1170
|
|
|
/** |
1171
|
|
|
* The service provider, service operator, or service performer; the goods |
1172
|
|
|
* producer. Another party (a seller) may offer those services or goods on |
1173
|
|
|
* behalf of the provider. A provider may also serve as the seller. |
1174
|
|
|
* |
1175
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $provider |
1176
|
|
|
* |
1177
|
|
|
* @return static |
1178
|
|
|
* |
1179
|
|
|
* @see http://schema.org/provider |
1180
|
|
|
*/ |
1181
|
|
|
public function provider($provider) |
1182
|
|
|
{ |
1183
|
|
|
return $this->setProperty('provider', $provider); |
1184
|
|
|
} |
1185
|
|
|
|
1186
|
|
|
/** |
1187
|
|
|
* A publication event associated with the item. |
1188
|
|
|
* |
1189
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PublicationEventContract|\Spatie\SchemaOrg\Contracts\PublicationEventContract[] $publication |
1190
|
|
|
* |
1191
|
|
|
* @return static |
1192
|
|
|
* |
1193
|
|
|
* @see http://schema.org/publication |
1194
|
|
|
*/ |
1195
|
|
|
public function publication($publication) |
1196
|
|
|
{ |
1197
|
|
|
return $this->setProperty('publication', $publication); |
1198
|
|
|
} |
1199
|
|
|
|
1200
|
|
|
/** |
1201
|
|
|
* The publisher of the creative work. |
1202
|
|
|
* |
1203
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $publisher |
1204
|
|
|
* |
1205
|
|
|
* @return static |
1206
|
|
|
* |
1207
|
|
|
* @see http://schema.org/publisher |
1208
|
|
|
*/ |
1209
|
|
|
public function publisher($publisher) |
1210
|
|
|
{ |
1211
|
|
|
return $this->setProperty('publisher', $publisher); |
1212
|
|
|
} |
1213
|
|
|
|
1214
|
|
|
/** |
1215
|
|
|
* The publishingPrinciples property indicates (typically via [[URL]]) a |
1216
|
|
|
* document describing the editorial principles of an [[Organization]] (or |
1217
|
|
|
* individual e.g. a [[Person]] writing a blog) that relate to their |
1218
|
|
|
* activities as a publisher, e.g. ethics or diversity policies. When |
1219
|
|
|
* applied to a [[CreativeWork]] (e.g. [[NewsArticle]]) the principles are |
1220
|
|
|
* those of the party primarily responsible for the creation of the |
1221
|
|
|
* [[CreativeWork]]. |
1222
|
|
|
* |
1223
|
|
|
* While such policies are most typically expressed in natural language, |
1224
|
|
|
* sometimes related information (e.g. indicating a [[funder]]) can be |
1225
|
|
|
* expressed using schema.org terminology. |
1226
|
|
|
* |
1227
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|string|string[] $publishingPrinciples |
1228
|
|
|
* |
1229
|
|
|
* @return static |
1230
|
|
|
* |
1231
|
|
|
* @see http://schema.org/publishingPrinciples |
1232
|
|
|
*/ |
1233
|
|
|
public function publishingPrinciples($publishingPrinciples) |
1234
|
|
|
{ |
1235
|
|
|
return $this->setProperty('publishingPrinciples', $publishingPrinciples); |
1236
|
|
|
} |
1237
|
|
|
|
1238
|
|
|
/** |
1239
|
|
|
* The Event where the CreativeWork was recorded. The CreativeWork may |
1240
|
|
|
* capture all or part of the event. |
1241
|
|
|
* |
1242
|
|
|
* @param \Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $recordedAt |
1243
|
|
|
* |
1244
|
|
|
* @return static |
1245
|
|
|
* |
1246
|
|
|
* @see http://schema.org/recordedAt |
1247
|
|
|
*/ |
1248
|
|
|
public function recordedAt($recordedAt) |
1249
|
|
|
{ |
1250
|
|
|
return $this->setProperty('recordedAt', $recordedAt); |
1251
|
|
|
} |
1252
|
|
|
|
1253
|
|
|
/** |
1254
|
|
|
* A link related to this web page, for example to other related web pages. |
1255
|
|
|
* |
1256
|
|
|
* @param string|string[] $relatedLink |
1257
|
|
|
* |
1258
|
|
|
* @return static |
1259
|
|
|
* |
1260
|
|
|
* @see http://schema.org/relatedLink |
1261
|
|
|
*/ |
1262
|
|
|
public function relatedLink($relatedLink) |
1263
|
|
|
{ |
1264
|
|
|
return $this->setProperty('relatedLink', $relatedLink); |
1265
|
|
|
} |
1266
|
|
|
|
1267
|
|
|
/** |
1268
|
|
|
* The place and time the release was issued, expressed as a |
1269
|
|
|
* PublicationEvent. |
1270
|
|
|
* |
1271
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PublicationEventContract|\Spatie\SchemaOrg\Contracts\PublicationEventContract[] $releasedEvent |
1272
|
|
|
* |
1273
|
|
|
* @return static |
1274
|
|
|
* |
1275
|
|
|
* @see http://schema.org/releasedEvent |
1276
|
|
|
*/ |
1277
|
|
|
public function releasedEvent($releasedEvent) |
1278
|
|
|
{ |
1279
|
|
|
return $this->setProperty('releasedEvent', $releasedEvent); |
1280
|
|
|
} |
1281
|
|
|
|
1282
|
|
|
/** |
1283
|
|
|
* A review of the item. |
1284
|
|
|
* |
1285
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $review |
1286
|
|
|
* |
1287
|
|
|
* @return static |
1288
|
|
|
* |
1289
|
|
|
* @see http://schema.org/review |
1290
|
|
|
*/ |
1291
|
|
|
public function review($review) |
1292
|
|
|
{ |
1293
|
|
|
return $this->setProperty('review', $review); |
1294
|
|
|
} |
1295
|
|
|
|
1296
|
|
|
/** |
1297
|
|
|
* People or organizations that have reviewed the content on this web page |
1298
|
|
|
* for accuracy and/or completeness. |
1299
|
|
|
* |
1300
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $reviewedBy |
1301
|
|
|
* |
1302
|
|
|
* @return static |
1303
|
|
|
* |
1304
|
|
|
* @see http://schema.org/reviewedBy |
1305
|
|
|
*/ |
1306
|
|
|
public function reviewedBy($reviewedBy) |
1307
|
|
|
{ |
1308
|
|
|
return $this->setProperty('reviewedBy', $reviewedBy); |
1309
|
|
|
} |
1310
|
|
|
|
1311
|
|
|
/** |
1312
|
|
|
* Review of the item. |
1313
|
|
|
* |
1314
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ReviewContract|\Spatie\SchemaOrg\Contracts\ReviewContract[] $reviews |
1315
|
|
|
* |
1316
|
|
|
* @return static |
1317
|
|
|
* |
1318
|
|
|
* @see http://schema.org/reviews |
1319
|
|
|
*/ |
1320
|
|
|
public function reviews($reviews) |
1321
|
|
|
{ |
1322
|
|
|
return $this->setProperty('reviews', $reviews); |
1323
|
|
|
} |
1324
|
|
|
|
1325
|
|
|
/** |
1326
|
|
|
* URL of a reference Web page that unambiguously indicates the item's |
1327
|
|
|
* identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or |
1328
|
|
|
* official website. |
1329
|
|
|
* |
1330
|
|
|
* @param string|string[] $sameAs |
1331
|
|
|
* |
1332
|
|
|
* @return static |
1333
|
|
|
* |
1334
|
|
|
* @see http://schema.org/sameAs |
1335
|
|
|
*/ |
1336
|
|
|
public function sameAs($sameAs) |
1337
|
|
|
{ |
1338
|
|
|
return $this->setProperty('sameAs', $sameAs); |
1339
|
|
|
} |
1340
|
|
|
|
1341
|
|
|
/** |
1342
|
|
|
* Indicates (by URL or string) a particular version of a schema used in |
1343
|
|
|
* some CreativeWork. For example, a document could declare a schemaVersion |
1344
|
|
|
* using an URL such as http://schema.org/version/2.0/ if precise indication |
1345
|
|
|
* of schema version was required by some application. |
1346
|
|
|
* |
1347
|
|
|
* @param string|string[] $schemaVersion |
1348
|
|
|
* |
1349
|
|
|
* @return static |
1350
|
|
|
* |
1351
|
|
|
* @see http://schema.org/schemaVersion |
1352
|
|
|
*/ |
1353
|
|
|
public function schemaVersion($schemaVersion) |
1354
|
|
|
{ |
1355
|
|
|
return $this->setProperty('schemaVersion', $schemaVersion); |
1356
|
|
|
} |
1357
|
|
|
|
1358
|
|
|
/** |
1359
|
|
|
* One of the more significant URLs on the page. Typically, these are the |
1360
|
|
|
* non-navigation links that are clicked on the most. |
1361
|
|
|
* |
1362
|
|
|
* @param string|string[] $significantLink |
1363
|
|
|
* |
1364
|
|
|
* @return static |
1365
|
|
|
* |
1366
|
|
|
* @see http://schema.org/significantLink |
1367
|
|
|
*/ |
1368
|
|
|
public function significantLink($significantLink) |
1369
|
|
|
{ |
1370
|
|
|
return $this->setProperty('significantLink', $significantLink); |
1371
|
|
|
} |
1372
|
|
|
|
1373
|
|
|
/** |
1374
|
|
|
* The most significant URLs on the page. Typically, these are the |
1375
|
|
|
* non-navigation links that are clicked on the most. |
1376
|
|
|
* |
1377
|
|
|
* @param string|string[] $significantLinks |
1378
|
|
|
* |
1379
|
|
|
* @return static |
1380
|
|
|
* |
1381
|
|
|
* @see http://schema.org/significantLinks |
1382
|
|
|
*/ |
1383
|
|
|
public function significantLinks($significantLinks) |
1384
|
|
|
{ |
1385
|
|
|
return $this->setProperty('significantLinks', $significantLinks); |
1386
|
|
|
} |
1387
|
|
|
|
1388
|
|
|
/** |
1389
|
|
|
* The Organization on whose behalf the creator was working. |
1390
|
|
|
* |
1391
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[] $sourceOrganization |
1392
|
|
|
* |
1393
|
|
|
* @return static |
1394
|
|
|
* |
1395
|
|
|
* @see http://schema.org/sourceOrganization |
1396
|
|
|
*/ |
1397
|
|
|
public function sourceOrganization($sourceOrganization) |
1398
|
|
|
{ |
1399
|
|
|
return $this->setProperty('sourceOrganization', $sourceOrganization); |
1400
|
|
|
} |
1401
|
|
|
|
1402
|
|
|
/** |
1403
|
|
|
* The "spatial" property can be used in cases when more specific properties |
1404
|
|
|
* (e.g. [[locationCreated]], [[spatialCoverage]], [[contentLocation]]) are |
1405
|
|
|
* not known to be appropriate. |
1406
|
|
|
* |
1407
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $spatial |
1408
|
|
|
* |
1409
|
|
|
* @return static |
1410
|
|
|
* |
1411
|
|
|
* @see http://schema.org/spatial |
1412
|
|
|
*/ |
1413
|
|
|
public function spatial($spatial) |
1414
|
|
|
{ |
1415
|
|
|
return $this->setProperty('spatial', $spatial); |
1416
|
|
|
} |
1417
|
|
|
|
1418
|
|
|
/** |
1419
|
|
|
* The spatialCoverage of a CreativeWork indicates the place(s) which are |
1420
|
|
|
* the focus of the content. It is a subproperty of |
1421
|
|
|
* contentLocation intended primarily for more technical and detailed |
1422
|
|
|
* materials. For example with a Dataset, it indicates |
1423
|
|
|
* areas that the dataset describes: a dataset of New York weather |
1424
|
|
|
* would have spatialCoverage which was the place: the state of New York. |
1425
|
|
|
* |
1426
|
|
|
* @param \Spatie\SchemaOrg\Contracts\PlaceContract|\Spatie\SchemaOrg\Contracts\PlaceContract[] $spatialCoverage |
1427
|
|
|
* |
1428
|
|
|
* @return static |
1429
|
|
|
* |
1430
|
|
|
* @see http://schema.org/spatialCoverage |
1431
|
|
|
*/ |
1432
|
|
|
public function spatialCoverage($spatialCoverage) |
1433
|
|
|
{ |
1434
|
|
|
return $this->setProperty('spatialCoverage', $spatialCoverage); |
1435
|
|
|
} |
1436
|
|
|
|
1437
|
|
|
/** |
1438
|
|
|
* Indicates sections of a Web page that are particularly 'speakable' in the |
1439
|
|
|
* sense of being highlighted as being especially appropriate for |
1440
|
|
|
* text-to-speech conversion. Other sections of a page may also be usefully |
1441
|
|
|
* spoken in particular circumstances; the 'speakable' property serves to |
1442
|
|
|
* indicate the parts most likely to be generally useful for speech. |
1443
|
|
|
* |
1444
|
|
|
* The *speakable* property can be repeated an arbitrary number of times, |
1445
|
|
|
* with three kinds of possible 'content-locator' values: |
1446
|
|
|
* |
1447
|
|
|
* 1.) *id-value* URL references - uses *id-value* of an element in the page |
1448
|
|
|
* being annotated. The simplest use of *speakable* has (potentially |
1449
|
|
|
* relative) URL values, referencing identified sections of the document |
1450
|
|
|
* concerned. |
1451
|
|
|
* |
1452
|
|
|
* 2.) CSS Selectors - addresses content in the annotated page, eg. via |
1453
|
|
|
* class attribute. Use the [[cssSelector]] property. |
1454
|
|
|
* |
1455
|
|
|
* 3.) XPaths - addresses content via XPaths (assuming an XML view of the |
1456
|
|
|
* content). Use the [[xpath]] property. |
1457
|
|
|
* |
1458
|
|
|
* |
1459
|
|
|
* For more sophisticated markup of speakable sections beyond simple ID |
1460
|
|
|
* references, either CSS selectors or XPath expressions to pick out |
1461
|
|
|
* document section(s) as speakable. For this |
1462
|
|
|
* we define a supporting type, [[SpeakableSpecification]] which is defined |
1463
|
|
|
* to be a possible value of the *speakable* property. |
1464
|
|
|
* |
1465
|
|
|
* @param \Spatie\SchemaOrg\Contracts\SpeakableSpecificationContract|\Spatie\SchemaOrg\Contracts\SpeakableSpecificationContract[]|string|string[] $speakable |
1466
|
|
|
* |
1467
|
|
|
* @return static |
1468
|
|
|
* |
1469
|
|
|
* @see http://schema.org/speakable |
1470
|
|
|
*/ |
1471
|
|
|
public function speakable($speakable) |
1472
|
|
|
{ |
1473
|
|
|
return $this->setProperty('speakable', $speakable); |
1474
|
|
|
} |
1475
|
|
|
|
1476
|
|
|
/** |
1477
|
|
|
* One of the domain specialities to which this web page's content applies. |
1478
|
|
|
* |
1479
|
|
|
* @param \Spatie\SchemaOrg\Contracts\SpecialtyContract|\Spatie\SchemaOrg\Contracts\SpecialtyContract[] $specialty |
1480
|
|
|
* |
1481
|
|
|
* @return static |
1482
|
|
|
* |
1483
|
|
|
* @see http://schema.org/specialty |
1484
|
|
|
*/ |
1485
|
|
|
public function specialty($specialty) |
1486
|
|
|
{ |
1487
|
|
|
return $this->setProperty('specialty', $specialty); |
1488
|
|
|
} |
1489
|
|
|
|
1490
|
|
|
/** |
1491
|
|
|
* A person or organization that supports a thing through a pledge, promise, |
1492
|
|
|
* or financial contribution. e.g. a sponsor of a Medical Study or a |
1493
|
|
|
* corporate sponsor of an event. |
1494
|
|
|
* |
1495
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $sponsor |
1496
|
|
|
* |
1497
|
|
|
* @return static |
1498
|
|
|
* |
1499
|
|
|
* @see http://schema.org/sponsor |
1500
|
|
|
*/ |
1501
|
|
|
public function sponsor($sponsor) |
1502
|
|
|
{ |
1503
|
|
|
return $this->setProperty('sponsor', $sponsor); |
1504
|
|
|
} |
1505
|
|
|
|
1506
|
|
|
/** |
1507
|
|
|
* A CreativeWork or Event about this Thing. |
1508
|
|
|
* |
1509
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[]|\Spatie\SchemaOrg\Contracts\EventContract|\Spatie\SchemaOrg\Contracts\EventContract[] $subjectOf |
1510
|
|
|
* |
1511
|
|
|
* @return static |
1512
|
|
|
* |
1513
|
|
|
* @see http://schema.org/subjectOf |
1514
|
|
|
*/ |
1515
|
|
|
public function subjectOf($subjectOf) |
1516
|
|
|
{ |
1517
|
|
|
return $this->setProperty('subjectOf', $subjectOf); |
1518
|
|
|
} |
1519
|
|
|
|
1520
|
|
|
/** |
1521
|
|
|
* The "temporal" property can be used in cases where more specific |
1522
|
|
|
* properties |
1523
|
|
|
* (e.g. [[temporalCoverage]], [[dateCreated]], [[dateModified]], |
1524
|
|
|
* [[datePublished]]) are not known to be appropriate. |
1525
|
|
|
* |
1526
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[]|string|string[] $temporal |
1527
|
|
|
* |
1528
|
|
|
* @return static |
1529
|
|
|
* |
1530
|
|
|
* @see http://schema.org/temporal |
1531
|
|
|
*/ |
1532
|
|
|
public function temporal($temporal) |
1533
|
|
|
{ |
1534
|
|
|
return $this->setProperty('temporal', $temporal); |
1535
|
|
|
} |
1536
|
|
|
|
1537
|
|
|
/** |
1538
|
|
|
* The temporalCoverage of a CreativeWork indicates the period that the |
1539
|
|
|
* content applies to, i.e. that it describes, either as a DateTime or as a |
1540
|
|
|
* textual string indicating a time period in [ISO 8601 time interval |
1541
|
|
|
* format](https://en.wikipedia.org/wiki/ISO_8601#Time_intervals). In |
1542
|
|
|
* the case of a Dataset it will typically indicate the relevant time |
1543
|
|
|
* period in a precise notation (e.g. for a 2011 census dataset, the year |
1544
|
|
|
* 2011 would be written "2011/2012"). Other forms of content e.g. |
1545
|
|
|
* ScholarlyArticle, Book, TVSeries or TVEpisode may indicate their |
1546
|
|
|
* temporalCoverage in broader terms - textually or via well-known URL. |
1547
|
|
|
* Written works such as books may sometimes have precise temporal |
1548
|
|
|
* coverage too, e.g. a work set in 1939 - 1945 can be indicated in ISO 8601 |
1549
|
|
|
* interval format format via "1939/1945". |
1550
|
|
|
* |
1551
|
|
|
* Open-ended date ranges can be written with ".." in place of the end date. |
1552
|
|
|
* For example, "2015-11/.." indicates a range beginning in November 2015 |
1553
|
|
|
* and with no specified final date. This is tentative and might be updated |
1554
|
|
|
* in future when ISO 8601 is officially updated. |
1555
|
|
|
* |
1556
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[]|string|string[] $temporalCoverage |
1557
|
|
|
* |
1558
|
|
|
* @return static |
1559
|
|
|
* |
1560
|
|
|
* @see http://schema.org/temporalCoverage |
1561
|
|
|
*/ |
1562
|
|
|
public function temporalCoverage($temporalCoverage) |
1563
|
|
|
{ |
1564
|
|
|
return $this->setProperty('temporalCoverage', $temporalCoverage); |
1565
|
|
|
} |
1566
|
|
|
|
1567
|
|
|
/** |
1568
|
|
|
* The textual content of this CreativeWork. |
1569
|
|
|
* |
1570
|
|
|
* @param string|string[] $text |
1571
|
|
|
* |
1572
|
|
|
* @return static |
1573
|
|
|
* |
1574
|
|
|
* @see http://schema.org/text |
1575
|
|
|
*/ |
1576
|
|
|
public function text($text) |
1577
|
|
|
{ |
1578
|
|
|
return $this->setProperty('text', $text); |
1579
|
|
|
} |
1580
|
|
|
|
1581
|
|
|
/** |
1582
|
|
|
* A thumbnail image relevant to the Thing. |
1583
|
|
|
* |
1584
|
|
|
* @param string|string[] $thumbnailUrl |
1585
|
|
|
* |
1586
|
|
|
* @return static |
1587
|
|
|
* |
1588
|
|
|
* @see http://schema.org/thumbnailUrl |
1589
|
|
|
*/ |
1590
|
|
|
public function thumbnailUrl($thumbnailUrl) |
1591
|
|
|
{ |
1592
|
|
|
return $this->setProperty('thumbnailUrl', $thumbnailUrl); |
1593
|
|
|
} |
1594
|
|
|
|
1595
|
|
|
/** |
1596
|
|
|
* Approximate or typical time it takes to work with or through this |
1597
|
|
|
* learning resource for the typical intended target audience, e.g. 'PT30M', |
1598
|
|
|
* 'PT1H25M'. |
1599
|
|
|
* |
1600
|
|
|
* @param \Spatie\SchemaOrg\Contracts\DurationContract|\Spatie\SchemaOrg\Contracts\DurationContract[] $timeRequired |
1601
|
|
|
* |
1602
|
|
|
* @return static |
1603
|
|
|
* |
1604
|
|
|
* @see http://schema.org/timeRequired |
1605
|
|
|
*/ |
1606
|
|
|
public function timeRequired($timeRequired) |
1607
|
|
|
{ |
1608
|
|
|
return $this->setProperty('timeRequired', $timeRequired); |
1609
|
|
|
} |
1610
|
|
|
|
1611
|
|
|
/** |
1612
|
|
|
* Organization or person who adapts a creative work to different languages, |
1613
|
|
|
* regional differences and technical requirements of a target market, or |
1614
|
|
|
* that translates during some event. |
1615
|
|
|
* |
1616
|
|
|
* @param \Spatie\SchemaOrg\Contracts\OrganizationContract|\Spatie\SchemaOrg\Contracts\OrganizationContract[]|\Spatie\SchemaOrg\Contracts\PersonContract|\Spatie\SchemaOrg\Contracts\PersonContract[] $translator |
1617
|
|
|
* |
1618
|
|
|
* @return static |
1619
|
|
|
* |
1620
|
|
|
* @see http://schema.org/translator |
1621
|
|
|
*/ |
1622
|
|
|
public function translator($translator) |
1623
|
|
|
{ |
1624
|
|
|
return $this->setProperty('translator', $translator); |
1625
|
|
|
} |
1626
|
|
|
|
1627
|
|
|
/** |
1628
|
|
|
* The typical expected age range, e.g. '7-9', '11-'. |
1629
|
|
|
* |
1630
|
|
|
* @param string|string[] $typicalAgeRange |
1631
|
|
|
* |
1632
|
|
|
* @return static |
1633
|
|
|
* |
1634
|
|
|
* @see http://schema.org/typicalAgeRange |
1635
|
|
|
*/ |
1636
|
|
|
public function typicalAgeRange($typicalAgeRange) |
1637
|
|
|
{ |
1638
|
|
|
return $this->setProperty('typicalAgeRange', $typicalAgeRange); |
1639
|
|
|
} |
1640
|
|
|
|
1641
|
|
|
/** |
1642
|
|
|
* URL of the item. |
1643
|
|
|
* |
1644
|
|
|
* @param string|string[] $url |
1645
|
|
|
* |
1646
|
|
|
* @return static |
1647
|
|
|
* |
1648
|
|
|
* @see http://schema.org/url |
1649
|
|
|
*/ |
1650
|
|
|
public function url($url) |
1651
|
|
|
{ |
1652
|
|
|
return $this->setProperty('url', $url); |
1653
|
|
|
} |
1654
|
|
|
|
1655
|
|
|
/** |
1656
|
|
|
* The version of the CreativeWork embodied by a specified resource. |
1657
|
|
|
* |
1658
|
|
|
* @param float|float[]|int|int[]|string|string[] $version |
1659
|
|
|
* |
1660
|
|
|
* @return static |
1661
|
|
|
* |
1662
|
|
|
* @see http://schema.org/version |
1663
|
|
|
*/ |
1664
|
|
|
public function version($version) |
1665
|
|
|
{ |
1666
|
|
|
return $this->setProperty('version', $version); |
1667
|
|
|
} |
1668
|
|
|
|
1669
|
|
|
/** |
1670
|
|
|
* An embedded video object. |
1671
|
|
|
* |
1672
|
|
|
* @param \Spatie\SchemaOrg\Contracts\ClipContract|\Spatie\SchemaOrg\Contracts\ClipContract[]|\Spatie\SchemaOrg\Contracts\VideoObjectContract|\Spatie\SchemaOrg\Contracts\VideoObjectContract[] $video |
1673
|
|
|
* |
1674
|
|
|
* @return static |
1675
|
|
|
* |
1676
|
|
|
* @see http://schema.org/video |
1677
|
|
|
*/ |
1678
|
|
|
public function video($video) |
1679
|
|
|
{ |
1680
|
|
|
return $this->setProperty('video', $video); |
1681
|
|
|
} |
1682
|
|
|
|
1683
|
|
|
/** |
1684
|
|
|
* Example/instance/realization/derivation of the concept of this creative |
1685
|
|
|
* work. eg. The paperback edition, first edition, or eBook. |
1686
|
|
|
* |
1687
|
|
|
* @param \Spatie\SchemaOrg\Contracts\CreativeWorkContract|\Spatie\SchemaOrg\Contracts\CreativeWorkContract[] $workExample |
1688
|
|
|
* |
1689
|
|
|
* @return static |
1690
|
|
|
* |
1691
|
|
|
* @see http://schema.org/workExample |
1692
|
|
|
*/ |
1693
|
|
|
public function workExample($workExample) |
1694
|
|
|
{ |
1695
|
|
|
return $this->setProperty('workExample', $workExample); |
1696
|
|
|
} |
1697
|
|
|
|
1698
|
|
|
} |
1699
|
|
|
|