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 movie. |
||
7 | * |
||
8 | * @see http://schema.org/Movie |
||
9 | */ |
||
10 | View Code Duplication | class Movie extends CreativeWork |
|
0 ignored issues
–
show
|
|||
11 | { |
||
12 | /** |
||
13 | * An actor, e.g. in tv, radio, movie, video games etc., or in an event. |
||
14 | * Actors can be associated with individual items or with a series, episode, |
||
15 | * clip. |
||
16 | * |
||
17 | * @param Person|Person[] $actor |
||
18 | * |
||
19 | * @return static |
||
20 | * |
||
21 | * @see http://schema.org/actor |
||
22 | */ |
||
23 | public function actor($actor) |
||
24 | { |
||
25 | return $this->setProperty('actor', $actor); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * An actor, e.g. in tv, radio, movie, video games etc. Actors can be |
||
30 | * associated with individual items or with a series, episode, clip. |
||
31 | * |
||
32 | * @param Person|Person[] $actors |
||
33 | * |
||
34 | * @return static |
||
35 | * |
||
36 | * @see http://schema.org/actors |
||
37 | */ |
||
38 | public function actors($actors) |
||
39 | { |
||
40 | return $this->setProperty('actors', $actors); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * The country of the principal offices of the production company or |
||
45 | * individual responsible for the movie or program. |
||
46 | * |
||
47 | * @param Country|Country[] $countryOfOrigin |
||
48 | * |
||
49 | * @return static |
||
50 | * |
||
51 | * @see http://schema.org/countryOfOrigin |
||
52 | */ |
||
53 | public function countryOfOrigin($countryOfOrigin) |
||
54 | { |
||
55 | return $this->setProperty('countryOfOrigin', $countryOfOrigin); |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * A director of e.g. tv, radio, movie, video gaming etc. content, or of an |
||
60 | * event. Directors can be associated with individual items or with a |
||
61 | * series, episode, clip. |
||
62 | * |
||
63 | * @param Person|Person[] $director |
||
64 | * |
||
65 | * @return static |
||
66 | * |
||
67 | * @see http://schema.org/director |
||
68 | */ |
||
69 | public function director($director) |
||
70 | { |
||
71 | return $this->setProperty('director', $director); |
||
72 | } |
||
73 | |||
74 | /** |
||
75 | * A director of e.g. tv, radio, movie, video games etc. content. Directors |
||
76 | * can be associated with individual items or with a series, episode, clip. |
||
77 | * |
||
78 | * @param Person|Person[] $directors |
||
79 | * |
||
80 | * @return static |
||
81 | * |
||
82 | * @see http://schema.org/directors |
||
83 | */ |
||
84 | public function directors($directors) |
||
85 | { |
||
86 | return $this->setProperty('directors', $directors); |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * The duration of the item (movie, audio recording, event, etc.) in [ISO |
||
91 | * 8601 date format](http://en.wikipedia.org/wiki/ISO_8601). |
||
92 | * |
||
93 | * @param Duration|Duration[] $duration |
||
94 | * |
||
95 | * @return static |
||
96 | * |
||
97 | * @see http://schema.org/duration |
||
98 | */ |
||
99 | public function duration($duration) |
||
100 | { |
||
101 | return $this->setProperty('duration', $duration); |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * The composer of the soundtrack. |
||
106 | * |
||
107 | * @param MusicGroup|MusicGroup[]|Person|Person[] $musicBy |
||
108 | * |
||
109 | * @return static |
||
110 | * |
||
111 | * @see http://schema.org/musicBy |
||
112 | */ |
||
113 | public function musicBy($musicBy) |
||
114 | { |
||
115 | return $this->setProperty('musicBy', $musicBy); |
||
116 | } |
||
117 | |||
118 | /** |
||
119 | * The production company or studio responsible for the item e.g. series, |
||
120 | * video game, episode etc. |
||
121 | * |
||
122 | * @param Organization|Organization[] $productionCompany |
||
123 | * |
||
124 | * @return static |
||
125 | * |
||
126 | * @see http://schema.org/productionCompany |
||
127 | */ |
||
128 | public function productionCompany($productionCompany) |
||
129 | { |
||
130 | return $this->setProperty('productionCompany', $productionCompany); |
||
131 | } |
||
132 | |||
133 | /** |
||
134 | * Languages in which subtitles/captions are available, in [IETF BCP 47 |
||
135 | * standard format](http://tools.ietf.org/html/bcp47). |
||
136 | * |
||
137 | * @param Language|Language[]|string|string[] $subtitleLanguage |
||
138 | * |
||
139 | * @return static |
||
140 | * |
||
141 | * @see http://schema.org/subtitleLanguage |
||
142 | */ |
||
143 | public function subtitleLanguage($subtitleLanguage) |
||
144 | { |
||
145 | return $this->setProperty('subtitleLanguage', $subtitleLanguage); |
||
146 | } |
||
147 | |||
148 | /** |
||
149 | * The trailer of a movie or tv/radio series, season, episode, etc. |
||
150 | * |
||
151 | * @param VideoObject|VideoObject[] $trailer |
||
152 | * |
||
153 | * @return static |
||
154 | * |
||
155 | * @see http://schema.org/trailer |
||
156 | */ |
||
157 | public function trailer($trailer) |
||
158 | { |
||
159 | return $this->setProperty('trailer', $trailer); |
||
160 | } |
||
161 | |||
162 | } |
||
163 |
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.