Blog   F
last analyzed

Complexity

Total Complexity 100

Size/Duplication

Total Lines 1557
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 100
lcom 1
cbo 1
dl 0
loc 1557
rs 0.8
c 0
b 0
f 0

100 Methods

Rating   Name   Duplication   Size   Complexity  
A about() 0 4 1
A accessMode() 0 4 1
A accessModeSufficient() 0 4 1
A accessibilityAPI() 0 4 1
A accessibilityControl() 0 4 1
A accessibilityFeature() 0 4 1
A accessibilityHazard() 0 4 1
A accessibilitySummary() 0 4 1
A accountablePerson() 0 4 1
A additionalType() 0 4 1
A aggregateRating() 0 4 1
A alternateName() 0 4 1
A alternativeHeadline() 0 4 1
A associatedMedia() 0 4 1
A audience() 0 4 1
A audio() 0 4 1
A author() 0 4 1
A award() 0 4 1
A awards() 0 4 1
A blogPost() 0 4 1
A blogPosts() 0 4 1
A character() 0 4 1
A citation() 0 4 1
A comment() 0 4 1
A commentCount() 0 4 1
A contentLocation() 0 4 1
A contentRating() 0 4 1
A contributor() 0 4 1
A copyrightHolder() 0 4 1
A copyrightYear() 0 4 1
A creator() 0 4 1
A dateCreated() 0 4 1
A dateModified() 0 4 1
A datePublished() 0 4 1
A description() 0 4 1
A disambiguatingDescription() 0 4 1
A discussionUrl() 0 4 1
A editor() 0 4 1
A educationalAlignment() 0 4 1
A educationalUse() 0 4 1
A encoding() 0 4 1
A encodingFormat() 0 4 1
A encodings() 0 4 1
A exampleOfWork() 0 4 1
A expires() 0 4 1
A fileFormat() 0 4 1
A funder() 0 4 1
A genre() 0 4 1
A hasPart() 0 4 1
A headline() 0 4 1
A identifier() 0 4 1
A image() 0 4 1
A inLanguage() 0 4 1
A interactionStatistic() 0 4 1
A interactivityType() 0 4 1
A isAccessibleForFree() 0 4 1
A isBasedOn() 0 4 1
A isBasedOnUrl() 0 4 1
A isFamilyFriendly() 0 4 1
A isPartOf() 0 4 1
A issn() 0 4 1
A keywords() 0 4 1
A learningResourceType() 0 4 1
A license() 0 4 1
A locationCreated() 0 4 1
A mainEntity() 0 4 1
A mainEntityOfPage() 0 4 1
A material() 0 4 1
A mentions() 0 4 1
A name() 0 4 1
A offers() 0 4 1
A position() 0 4 1
A potentialAction() 0 4 1
A producer() 0 4 1
A provider() 0 4 1
A publication() 0 4 1
A publisher() 0 4 1
A publishingPrinciples() 0 4 1
A recordedAt() 0 4 1
A releasedEvent() 0 4 1
A review() 0 4 1
A reviews() 0 4 1
A sameAs() 0 4 1
A schemaVersion() 0 4 1
A sourceOrganization() 0 4 1
A spatial() 0 4 1
A spatialCoverage() 0 4 1
A sponsor() 0 4 1
A subjectOf() 0 4 1
A temporal() 0 4 1
A temporalCoverage() 0 4 1
A text() 0 4 1
A thumbnailUrl() 0 4 1
A timeRequired() 0 4 1
A translator() 0 4 1
A typicalAgeRange() 0 4 1
A url() 0 4 1
A version() 0 4 1
A video() 0 4 1
A workExample() 0 4 1

How to fix   Complexity   

Complex Class

Complex classes like Blog often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.

Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.

While breaking up the class, it is a good idea to analyze how other classes use Blog, and based on these observations, apply Extract Interface, too.

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