Video   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getImageUrl() 0 3 1
A getService() 0 3 1
A getIframeUrl() 0 3 1
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