AccessToken::getRefreshToken()   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 AccessToken
5
{
6
    /**
7
     * @var string
8
     */
9
    protected $access_token;
10
    /**
11
     * @var string
12
     */
13
    protected $refresh_token;
14
    /**
15
     * @var array
16
     */
17
    protected $scope;
18
19
    /**
20
     * @return string
21
     */
22
    public function getAccessToken()
23
    {
24
        return $this->access_token;
25
    }
26
27
    /**
28
     * @param string $access_token
29
     */
30
    public function setAccessToken($access_token)
31
    {
32
        $this->access_token = $access_token;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getRefreshToken()
39
    {
40
        return $this->refresh_token;
41
    }
42
43
    /**
44
     * @param string $refresh_token
45
     */
46
    public function setRefreshToken($refresh_token)
47
    {
48
        $this->refresh_token = $refresh_token;
49
    }
50
51
    /**
52
     * @return array
53
     */
54
    public function getScope()
55
    {
56
        return $this->scope;
57
    }
58
59
    /**
60
     * @param array $scope
61
     */
62
    public function setScope($scope)
63
    {
64
        $this->scope = $scope;
65
    }
66
}