|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Spatie\SchemaOrg; |
|
4
|
|
|
|
|
5
|
|
|
/** |
|
6
|
|
|
* A CreativeWorkSeries in schema.org is a group of related items, typically but |
|
7
|
|
|
* not necessarily of the same kind. CreativeWorkSeries are usually organized |
|
8
|
|
|
* into some order, often chronological. Unlike [[ItemList]] which is a general |
|
9
|
|
|
* purpose data structure for lists of things, the emphasis with |
|
10
|
|
|
* CreativeWorkSeries is on published materials (written e.g. books and |
|
11
|
|
|
* periodicals, or media such as tv, radio and games). |
|
12
|
|
|
* |
|
13
|
|
|
* Specific subtypes are available for describing [[TVSeries]], [[RadioSeries]], |
|
14
|
|
|
* [[MovieSeries]], [[BookSeries]], [[Periodical]] and [[VideoGameSeries]]. In |
|
15
|
|
|
* each case, the [[hasPart]] / [[isPartOf]] properties can be used to relate |
|
16
|
|
|
* the CreativeWorkSeries to its parts. The general CreativeWorkSeries type |
|
17
|
|
|
* serves largely just to organize these more specific and practical subtypes. |
|
18
|
|
|
* |
|
19
|
|
|
* It is common for properties applicable to an item from the series to be |
|
20
|
|
|
* usefully applied to the containing group. Schema.org attempts to anticipate |
|
21
|
|
|
* some of these cases, but publishers should be free to apply properties of the |
|
22
|
|
|
* series parts to the series as a whole wherever they seem appropriate. |
|
23
|
|
|
* |
|
24
|
|
|
* @see http://schema.org/CreativeWorkSeries |
|
25
|
|
|
*/ |
|
26
|
|
|
class CreativeWorkSeries extends CreativeWork |
|
27
|
|
|
{ |
|
28
|
|
|
/** |
|
29
|
|
|
* The end date and time of the item (in [ISO 8601 date |
|
30
|
|
|
* format](http://en.wikipedia.org/wiki/ISO_8601)). |
|
31
|
|
|
* |
|
32
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $endDate |
|
33
|
|
|
* |
|
34
|
|
|
* @return static |
|
35
|
|
|
* |
|
36
|
|
|
* @see http://schema.org/endDate |
|
37
|
|
|
*/ |
|
38
|
|
|
public function endDate($endDate) |
|
39
|
|
|
{ |
|
40
|
|
|
return $this->setProperty('endDate', $endDate); |
|
41
|
|
|
} |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* The International Standard Serial Number (ISSN) that identifies this |
|
45
|
|
|
* serial publication. You can repeat this property to identify different |
|
46
|
|
|
* formats of, or the linking ISSN (ISSN-L) for, this serial publication. |
|
47
|
|
|
* |
|
48
|
|
|
* @param string|string[] $issn |
|
49
|
|
|
* |
|
50
|
|
|
* @return static |
|
51
|
|
|
* |
|
52
|
|
|
* @see http://schema.org/issn |
|
53
|
|
|
*/ |
|
54
|
|
|
public function issn($issn) |
|
55
|
|
|
{ |
|
56
|
|
|
return $this->setProperty('issn', $issn); |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* The start date and time of the item (in [ISO 8601 date |
|
61
|
|
|
* format](http://en.wikipedia.org/wiki/ISO_8601)). |
|
62
|
|
|
* |
|
63
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $startDate |
|
64
|
|
|
* |
|
65
|
|
|
* @return static |
|
66
|
|
|
* |
|
67
|
|
|
* @see http://schema.org/startDate |
|
68
|
|
|
*/ |
|
69
|
|
|
public function startDate($startDate) |
|
70
|
|
|
{ |
|
71
|
|
|
return $this->setProperty('startDate', $startDate); |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
} |
|
75
|
|
|
|