These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Spatie\SchemaOrg; |
||
4 | |||
5 | /** |
||
6 | * A media episode (e.g. TV, radio, video game) which can be part of a series or |
||
7 | * season. |
||
8 | * |
||
9 | * @see http://schema.org/Episode |
||
10 | */ |
||
11 | View Code Duplication | class Episode extends CreativeWork |
|
0 ignored issues
–
show
|
|||
12 | { |
||
13 | /** |
||
14 | * An actor, e.g. in tv, radio, movie, video games etc., or in an event. |
||
15 | * Actors can be associated with individual items or with a series, episode, |
||
16 | * clip. |
||
17 | * |
||
18 | * @param Person|Person[] $actor |
||
19 | * |
||
20 | * @return static |
||
21 | * |
||
22 | * @see http://schema.org/actor |
||
23 | */ |
||
24 | public function actor($actor) |
||
25 | { |
||
26 | return $this->setProperty('actor', $actor); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * An actor, e.g. in tv, radio, movie, video games etc. Actors can be |
||
31 | * associated with individual items or with a series, episode, clip. |
||
32 | * |
||
33 | * @param Person|Person[] $actors |
||
34 | * |
||
35 | * @return static |
||
36 | * |
||
37 | * @see http://schema.org/actors |
||
38 | */ |
||
39 | public function actors($actors) |
||
40 | { |
||
41 | return $this->setProperty('actors', $actors); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * A director of e.g. tv, radio, movie, video gaming etc. content, or of an |
||
46 | * event. Directors can be associated with individual items or with a |
||
47 | * series, episode, clip. |
||
48 | * |
||
49 | * @param Person|Person[] $director |
||
50 | * |
||
51 | * @return static |
||
52 | * |
||
53 | * @see http://schema.org/director |
||
54 | */ |
||
55 | public function director($director) |
||
56 | { |
||
57 | return $this->setProperty('director', $director); |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * A director of e.g. tv, radio, movie, video games etc. content. Directors |
||
62 | * can be associated with individual items or with a series, episode, clip. |
||
63 | * |
||
64 | * @param Person|Person[] $directors |
||
65 | * |
||
66 | * @return static |
||
67 | * |
||
68 | * @see http://schema.org/directors |
||
69 | */ |
||
70 | public function directors($directors) |
||
71 | { |
||
72 | return $this->setProperty('directors', $directors); |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * Position of the episode within an ordered group of episodes. |
||
77 | * |
||
78 | * @param int|int[]|string|string[] $episodeNumber |
||
79 | * |
||
80 | * @return static |
||
81 | * |
||
82 | * @see http://schema.org/episodeNumber |
||
83 | */ |
||
84 | public function episodeNumber($episodeNumber) |
||
85 | { |
||
86 | return $this->setProperty('episodeNumber', $episodeNumber); |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * The composer of the soundtrack. |
||
91 | * |
||
92 | * @param MusicGroup|MusicGroup[]|Person|Person[] $musicBy |
||
93 | * |
||
94 | * @return static |
||
95 | * |
||
96 | * @see http://schema.org/musicBy |
||
97 | */ |
||
98 | public function musicBy($musicBy) |
||
99 | { |
||
100 | return $this->setProperty('musicBy', $musicBy); |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * The season to which this episode belongs. |
||
105 | * |
||
106 | * @param CreativeWorkSeason|CreativeWorkSeason[] $partOfSeason |
||
107 | * |
||
108 | * @return static |
||
109 | * |
||
110 | * @see http://schema.org/partOfSeason |
||
111 | */ |
||
112 | public function partOfSeason($partOfSeason) |
||
113 | { |
||
114 | return $this->setProperty('partOfSeason', $partOfSeason); |
||
115 | } |
||
116 | |||
117 | /** |
||
118 | * The series to which this episode or season belongs. |
||
119 | * |
||
120 | * @param CreativeWorkSeries|CreativeWorkSeries[] $partOfSeries |
||
121 | * |
||
122 | * @return static |
||
123 | * |
||
124 | * @see http://schema.org/partOfSeries |
||
125 | */ |
||
126 | public function partOfSeries($partOfSeries) |
||
127 | { |
||
128 | return $this->setProperty('partOfSeries', $partOfSeries); |
||
129 | } |
||
130 | |||
131 | /** |
||
132 | * The production company or studio responsible for the item e.g. series, |
||
133 | * video game, episode etc. |
||
134 | * |
||
135 | * @param Organization|Organization[] $productionCompany |
||
136 | * |
||
137 | * @return static |
||
138 | * |
||
139 | * @see http://schema.org/productionCompany |
||
140 | */ |
||
141 | public function productionCompany($productionCompany) |
||
142 | { |
||
143 | return $this->setProperty('productionCompany', $productionCompany); |
||
144 | } |
||
145 | |||
146 | /** |
||
147 | * The trailer of a movie or tv/radio series, season, episode, etc. |
||
148 | * |
||
149 | * @param VideoObject|VideoObject[] $trailer |
||
150 | * |
||
151 | * @return static |
||
152 | * |
||
153 | * @see http://schema.org/trailer |
||
154 | */ |
||
155 | public function trailer($trailer) |
||
156 | { |
||
157 | return $this->setProperty('trailer', $trailer); |
||
158 | } |
||
159 | |||
160 | } |
||
161 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.