StreamView   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 39
wmc 3
lcom 0
cbo 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPlayoutUrl() 0 4 1
A getVideoPlayer() 0 4 1
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
}