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