1 | <?php |
||
2 | |||
3 | namespace Osnova\Services\Media; |
||
4 | |||
5 | class CoverImage extends Image |
||
6 | { |
||
7 | /** |
||
8 | * Get cover image UUID. |
||
9 | * |
||
10 | * @return string|null |
||
11 | */ |
||
12 | public function getUuid() |
||
13 | { |
||
14 | return $this->getData('additionalData.uuid'); |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Get file size. |
||
19 | * |
||
20 | * @return int|null |
||
21 | */ |
||
22 | public function getFileSize() |
||
23 | { |
||
24 | return $this->getData('additionalData.size'); |
||
0 ignored issues
–
show
|
|||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get thumbnail URL. |
||
29 | * |
||
30 | * @return string|null |
||
31 | */ |
||
32 | public function getThumbnailUrl() |
||
33 | { |
||
34 | return $this->getData('thumbnailUrl'); |
||
0 ignored issues
–
show
|
|||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Get image URL. |
||
39 | * |
||
40 | * @return string|null |
||
41 | */ |
||
42 | public function getUrl() |
||
43 | { |
||
44 | return $this->getData('url'); |
||
0 ignored issues
–
show
|
|||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Get image size name. |
||
49 | * |
||
50 | * @return string|null |
||
51 | */ |
||
52 | public function getSizeName() |
||
53 | { |
||
54 | return $this->getData('size_simple'); |
||
0 ignored issues
–
show
|
|||
55 | } |
||
56 | } |
||
57 |