SpotifyToken   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 82
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getTokenType() 0 3 1
A __construct() 0 7 1
A getExpiresIn() 0 3 1
A getRefreshToken() 0 3 1
A getScope() 0 3 1
A getAccessToken() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: thiago
5
 * Date: 31/03/18
6
 * Time: 19:59
7
 */
8
namespace MyWonderland\Domain\Model;
9
10
class SpotifyToken
11
{
12
    /**
13
     * @var string
14
     */
15
    private $accessToken;
16
17
    /**
18
     * @var string
19
     */
20
    private $tokenType;
21
22
    /**
23
     * @var string
24
     */
25
    private $expiresIn;
26
27
    /**
28
     * @var string
29
     */
30
    private $refreshToken;
31
32
    /**
33
     * @var string
34
     */
35
    private $scope;
36
37
    /**
38
     * SpotifyToken constructor.
39
     * @param string $accessToken
40
     * @param string $tokenType
41
     * @param string $expiresIn
42
     * @param string $refreshToken
43
     * @param string $scope
44
     */
45
    public function __construct($accessToken, $tokenType, $expiresIn, $refreshToken, $scope)
46
    {
47
        $this->accessToken = $accessToken;
48
        $this->tokenType = $tokenType;
49
        $this->expiresIn = $expiresIn;
50
        $this->refreshToken = $refreshToken;
51
        $this->scope = $scope;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getAccessToken(): string
58
    {
59
        return $this->accessToken;
60
    }
61
62
    /**
63
     * @return string
64
     */
65
    public function getTokenType(): string
66
    {
67
        return $this->tokenType;
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getExpiresIn(): string
74
    {
75
        return $this->expiresIn;
76
    }
77
78
    /**
79
     * @return string
80
     */
81
    public function getRefreshToken(): string
82
    {
83
        return $this->refreshToken;
84
    }
85
86
    /**
87
     * @return string
88
     */
89
    public function getScope(): string
90
    {
91
        return $this->scope;
92
    }
93
}