1 | <?php |
||
2 | |||
3 | namespace Osnova\Services\Media; |
||
4 | |||
5 | class Video extends Media |
||
6 | { |
||
7 | /** |
||
8 | * Get video cover URL. |
||
9 | * |
||
10 | * @return string|null |
||
11 | */ |
||
12 | public function getImageUrl() |
||
13 | { |
||
14 | return $this->getData('imageUrl'); |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Get video iframe URL. |
||
19 | * |
||
20 | * @return string|null |
||
21 | */ |
||
22 | public function getIframeUrl() |
||
23 | { |
||
24 | return $this->getData('iframeUrl'); |
||
0 ignored issues
–
show
|
|||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get video service name. |
||
29 | * |
||
30 | * @return string|null |
||
31 | */ |
||
32 | public function getService() |
||
33 | { |
||
34 | return $this->getData('service'); |
||
0 ignored issues
–
show
|
|||
35 | } |
||
36 | } |
||
37 |