Completed
Push — master ( b0169f...379291 )
by Tharanga
05:57
created

SpotifyApiConfiguration::ourSecretState()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
/**
3
 * @author Tharanga Kothalawala <[email protected]>
4
 * @date 25-02-2019
5
 */
6
7
namespace TSK\SSO\ThirdParty\Spotify;
8
9
/**
10
 * @package TSK\SSO\ThirdParty\Spotify
11
 */
12
class SpotifyApiConfiguration
13
{
14
    /**
15
     * @var string
16
     */
17
    private $clientId;
18
19
    /**
20
     * @var string
21
     */
22
    private $clientSecret;
23
24
    /**
25
     * @var string
26
     */
27
    private $redirectUrl;
28
29
    /**
30
     * SpotifyApiConfiguration constructor.
31
     * @param string $clientId
32
     * @param string $clientSecret
33
     * @param string $redirectUrl
34
     */
35 2
    public function __construct($clientId, $clientSecret, $redirectUrl)
36
    {
37 2
        $this->clientId = $clientId;
38 2
        $this->clientSecret = $clientSecret;
39 2
        $this->redirectUrl = $redirectUrl;
40 2
    }
41
42
    /**
43
     * @return string
44
     */
45 1
    public function clientId()
46
    {
47 1
        return $this->clientId;
48
    }
49
50
    /**
51
     * @return string
52
     */
53 1
    public function clientSecret()
54
    {
55 1
        return $this->clientSecret;
56
    }
57
58
    /**
59
     * @return string
60
     */
61 1
    public function redirectUrl()
62
    {
63 1
        return $this->redirectUrl;
64
    }
65
66
    /**
67
     * This is just to identify that, we initiated the login sequence (not someone else)
68
     *
69
     * @return string
70
     */
71 1
    public function ourSecretState()
72
    {
73 1
        return 'dfeb6ef625880832f61c6f4bd737e11b';
74
    }
75
}
76