SimpleStream::getStatus()   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 SimpleStream.
7
 *
8
 * @author Bart Malestein <[email protected]>
9
 */
10
class SimpleStream
11
{
12
    /**
13
     * @var string
14
     */
15
    private $name;
16
17
    /**
18
     * @var string
19
     */
20
    private $uuid;
21
22
    /**
23
     * @var string
24
     */
25
    private $status;
26
27
    /**
28
     * @var boolean
29
     */
30
    private $enabled;
31
32
    /**
33
     * SimpleStream constructor.
34
     * @param string $data
35
     */
36
    public function __construct($data)
37
    {
38
        $this->name = $data['streamName'];
39
        $this->uuid = $data['uuid'];
40
        $this->status = $data['status'];
41
        $this->enabled = (boolean)$data['enabled'];
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getName()
48
    {
49
        return $this->name;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getUuid()
56
    {
57
        return $this->uuid;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getStatus()
64
    {
65
        return $this->status;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getEnabled()
72
    {
73
        return $this->enabled;
74
    }
75
76
}