Completed
Push — master ( c14ed6...643334 )
by Johnny
02:41
created

ChatChannelBadges::getList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

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 11
ccs 0
cts 11
cp 0
rs 9.4286
cc 1
eloc 8
nc 1
nop 0
crap 2
1
<?php
2
namespace Redbox\Twitch;
3
4
class ChatChannelBadges
5
{
6
    /**
7
     * @var array
8
     */
9
    protected $subscriber;
10
11
    /**
12
     * @var array
13
     */
14
    protected $broadcaster;
15
16
    /**
17
     * @var array
18
     */
19
    protected $global_mod;
20
21
    /**
22
     * @var array
23
     */
24
    protected $staff;
25
26
    /**
27
     * @var array
28
     */
29
    protected $turbo;
30
31
    /**
32
     * @var array
33
     */
34
    protected $admin;
35
36
    /**
37
     * @var array
38
     */
39
    protected $mod;
40
41
    /**
42
     * @return array
43
     */
44
    public function getList()
45
    {
46
        return array(
47
            'subscriber'  => $this->getSubscriber(),
48
            'broadcaster' => $this->getBroadcaster(),
49
            'global_mod'  => $this->getGlobalMod(),
50
            'staff'       => $this->getStaff(),
51
            'turbo'       => $this->getTurbo(),
52
            'admin'       => $this->getAdmin(),
53
        );
54
    }
55
    /**
56
     * @return array
57
     */
58
    public function getSubscriber()
59
    {
60
        return $this->subscriber;
61
    }
62
63
    /**
64
     * @param array $subscriber
65
     */
66
    public function setSubscriber($subscriber)
67
    {
68
        $this->subscriber = $subscriber;
69
    }
70
71
    /**
72
     * @return array
73
     */
74
    public function getBroadcaster()
75
    {
76
        return $this->broadcaster;
77
    }
78
79
    /**
80
     * @param array $broadcaster
81
     */
82
    public function setBroadcaster($broadcaster)
83
    {
84
        $this->broadcaster = $broadcaster;
85
    }
86
87
    /**
88
     * @return array
89
     */
90
    public function getGlobalMod()
91
    {
92
        return $this->global_mod;
93
    }
94
95
    /**
96
     * @param array $global_mod
97
     */
98
    public function setGlobalMod($global_mod)
99
    {
100
        $this->global_mod = $global_mod;
101
    }
102
103
    /**
104
     * @return array
105
     */
106
    public function getStaff()
107
    {
108
        return $this->staff;
109
    }
110
111
    /**
112
     * @param array $staff
113
     */
114
    public function setStaff($staff)
115
    {
116
        $this->staff = $staff;
117
    }
118
119
    /**
120
     * @return array
121
     */
122
    public function getTurbo()
123
    {
124
        return $this->turbo;
125
    }
126
127
    /**
128
     * @param array $turbo
129
     */
130
    public function setTurbo($turbo)
131
    {
132
        $this->turbo = $turbo;
133
    }
134
135
    /**
136
     * @return array
137
     */
138
    public function getAdmin()
139
    {
140
        return $this->admin;
141
    }
142
143
    /**
144
     * @param array $admin
145
     */
146
    public function setAdmin($admin)
147
    {
148
        $this->admin = $admin;
149
    }
150
151
    /**
152
     * @return array
153
     */
154
    public function getMod()
155
    {
156
        return $this->mod;
157
    }
158
159
    /**
160
     * @param array $mod
161
     */
162
    public function setMod($mod)
163
    {
164
        $this->mod = $mod;
165
    }
166
167
}