StreamView::getPlayoutUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace VideoPublisher\Domain;
4
5
/**
6
 * Class StreamView.
7
 *
8
 * @author Bart Malestein <[email protected]>
9
 */
10
class StreamView
11
{
12
    /**
13
     * @var string
14
     */
15
    private $playoutUrl;
16
17
    /**
18
     * @var string
19
     */
20
    private $videoPlayer;
21
22
    /**
23
     * StreamView constructor.
24
     * @param $data
25
     */
26
    public function __construct($data)
27
    {
28
        $this->playoutUrl = $data['playout_url'];
29
        $this->videoPlayer = $data['video_player'];
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getPlayoutUrl()
36
    {
37
        return $this->playoutUrl;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getVideoPlayer()
44
    {
45
        return $this->videoPlayer;
46
    }
47
48
}