Root::getUserName()   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 0
Metric Value
c 1
b 0
f 0
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;
3
4
class Root {
5
6
    /**
7
     * @var string
8
     */
9
    protected $user_name;
10
11
    /**
12
     * @var bool
13
     */
14
    protected $valid;
15
16
    /**
17
     * @return Authorization
18
     */
19
    public function getAuthorization()
20
    {
21
        return $this->authorization;
22
    }
23
24
    /**
25
     * @param Authorization $authorization
26
     */
27
    public function setAuthorization($authorization)
28
    {
29
        $this->authorization = $authorization;
30
    }
31
32
    /**
33
     * @var Authorization
34
     */
35
    protected $authorization;
36
37
38
    /**
39
     * @return string
40
     */
41
    public function getUserName()
42
    {
43
        return $this->user_name;
44
    }
45
46
    /**
47
     * @param string $user_name
48
     */
49
    public function setUserName($user_name)
50
    {
51
        $this->user_name = $user_name;
52
    }
53
54
    /**
55
     * @return boolean
56
     */
57
    public function isValid()
58
    {
59
        return $this->valid;
60
    }
61
62
    /**
63
     * @param boolean $valid
64
     */
65
    public function setValid($valid)
66
    {
67
        $this->valid = $valid;
68
    }
69
}