Issues (75)

src/Services/Media/Video.php (3 issues)

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
The expression return $this->getData('imageUrl') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
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
Bug Best Practice introduced by
The expression return $this->getData('iframeUrl') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
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
Bug Best Practice introduced by
The expression return $this->getData('service') also could return the type array which is incompatible with the documented return type null|string.
Loading history...
35
    }
36
}
37