1 | <?php |
||
27 | class ArticleMedia implements ArticleMediaInterface |
||
28 | { |
||
29 | use TimestampableTrait, SoftDeletableTrait; |
||
30 | |||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | protected $id; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $key; |
||
40 | |||
41 | /** |
||
42 | * @var FileInterface |
||
43 | */ |
||
44 | protected $file; |
||
45 | |||
46 | /** |
||
47 | * @var ImageInterface |
||
48 | */ |
||
49 | protected $image; |
||
50 | |||
51 | /** |
||
52 | * @var ArticleInterface |
||
53 | */ |
||
54 | protected $article; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | protected $description; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $located; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | */ |
||
69 | protected $byLine; |
||
70 | |||
71 | /** |
||
72 | * @var string |
||
73 | */ |
||
74 | protected $body; |
||
75 | |||
76 | /** |
||
77 | * @var string |
||
78 | */ |
||
79 | protected $mimetype; |
||
80 | |||
81 | /** |
||
82 | * @var string |
||
83 | */ |
||
84 | protected $usageTerms; |
||
85 | |||
86 | /** |
||
87 | * @var ArrayCollection |
||
88 | */ |
||
89 | protected $renditions; |
||
90 | |||
91 | /** |
||
92 | * @var string|null |
||
93 | */ |
||
94 | protected $headline; |
||
95 | |||
96 | /** |
||
97 | * @var string|null |
||
98 | */ |
||
99 | protected $copyrightHolder; |
||
100 | |||
101 | /** |
||
102 | * @var string/null |
||
103 | */ |
||
104 | protected $copyrightNotice; |
||
105 | |||
106 | /** |
||
107 | * ArticleMedia constructor. |
||
108 | */ |
||
109 | public function __construct() |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function getRenditions() |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function addRendition(ImageRendition $rendition) |
||
130 | |||
131 | /** |
||
132 | * {@inheritdoc} |
||
133 | */ |
||
134 | public function setRenditions($renditions) |
||
138 | |||
139 | /** |
||
140 | * {@inheritdoc} |
||
141 | */ |
||
142 | public function getId() |
||
146 | |||
147 | /** |
||
148 | * {@inheritdoc} |
||
149 | */ |
||
150 | public function getFile() |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function setFile($file) |
||
164 | |||
165 | /** |
||
166 | * {@inheritdoc} |
||
167 | */ |
||
168 | public function getImage() |
||
172 | |||
173 | /** |
||
174 | * {@inheritdoc} |
||
175 | */ |
||
176 | public function setImage($image) |
||
182 | |||
183 | /** |
||
184 | * {@inheritdoc} |
||
185 | */ |
||
186 | public function getArticle() |
||
190 | |||
191 | /** |
||
192 | * {@inheritdoc} |
||
193 | */ |
||
194 | public function setArticle(ArticleInterface $article) |
||
200 | |||
201 | /** |
||
202 | * {@inheritdoc} |
||
203 | */ |
||
204 | public function getAssetId() |
||
214 | |||
215 | /** |
||
216 | * {@inheritdoc} |
||
217 | */ |
||
218 | public function getDescription() |
||
222 | |||
223 | /** |
||
224 | * {@inheritdoc} |
||
225 | */ |
||
226 | public function setDescription($description) |
||
232 | |||
233 | /** |
||
234 | * {@inheritdoc} |
||
235 | */ |
||
236 | public function getLocated() |
||
240 | |||
241 | /** |
||
242 | * {@inheritdoc} |
||
243 | */ |
||
244 | public function setLocated($located) |
||
250 | |||
251 | /** |
||
252 | * {@inheritdoc} |
||
253 | */ |
||
254 | public function getByLine() |
||
258 | |||
259 | /** |
||
260 | * {@inheritdoc} |
||
261 | */ |
||
262 | public function setByLine($byLine) |
||
268 | |||
269 | /** |
||
270 | * {@inheritdoc} |
||
271 | */ |
||
272 | public function getBody() |
||
276 | |||
277 | /** |
||
278 | * {@inheritdoc} |
||
279 | */ |
||
280 | public function setBody($body) |
||
286 | |||
287 | /** |
||
288 | * {@inheritdoc} |
||
289 | */ |
||
290 | public function getMimetype() |
||
294 | |||
295 | /** |
||
296 | * {@inheritdoc} |
||
297 | */ |
||
298 | public function setMimetype($mimetype) |
||
304 | |||
305 | /** |
||
306 | * {@inheritdoc} |
||
307 | */ |
||
308 | public function getUsageTerms() |
||
312 | |||
313 | /** |
||
314 | * {@inheritdoc} |
||
315 | */ |
||
316 | public function setUsageTerms($usageTerms) |
||
322 | |||
323 | /** |
||
324 | * {@inheritdoc} |
||
325 | */ |
||
326 | public function getKey(): string |
||
330 | |||
331 | /** |
||
332 | * {@inheritdoc} |
||
333 | */ |
||
334 | public function setKey(string $key) |
||
338 | |||
339 | public function getHeadline(): ?string |
||
343 | |||
344 | public function setHeadline(?string $headline): void |
||
348 | |||
349 | public function getCopyrightNotice(): ?string |
||
353 | |||
354 | public function setCopyrightNotice(?string $copyrightNotice): void |
||
358 | |||
359 | public function getCopyrightHolder(): ?string |
||
363 | |||
364 | public function setCopyrightHolder(?string $copyrightHolder): void |
||
368 | |||
369 | /** |
||
370 | * {@inheritdoc} |
||
371 | */ |
||
372 | public function setFromItem(ItemInterface $item) |
||
383 | |||
384 | /** |
||
385 | * {@inheritdoc} |
||
386 | */ |
||
387 | public static function handleMediaId($mediaId) |
||
397 | |||
398 | /** |
||
399 | * {@inheritdoc} |
||
400 | */ |
||
401 | public static function getOriginalMediaId(string $mediaId) |
||
405 | } |
||
406 |