StreamSummary::getChannels()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Redbox\Twitch\Entity;
3
4
/**
5
 * Class Stream
6
 * @package Redbox\Twitch\Entity
7
 */
8
class StreamSummary
9
{
10
    /**
11
     * @var int
12
     */
13
    protected $channels = 0;
14
15
    /**
16
     * @var int
17
     */
18
    protected $viewers = 0;
19
20
    /**
21
     * @return int
22
     */
23
    public function getChannels()
24
    {
25
        return $this->channels;
26
    }
27
28
    /**
29
     * @param int $channels
30
     */
31
    public function setChannels($channels)
32
    {
33
        $this->channels = $channels;
34
    }
35
36
    /**
37
     * @return int
38
     */
39
    public function getViewers()
40
    {
41
        return $this->viewers;
42
    }
43
44
    /**
45
     * @param int $viewers
46
     */
47
    public function setViewers($viewers)
48
    {
49
        $this->viewers = $viewers;
50
    }
51
52
}