Completed
Push — master ( 3377ec...b18ded )
by Tharanga
02:10
created

AmazonApiConfiguration   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 62
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A clientSecret() 0 3 1
A redirectUrl() 0 3 1
A __construct() 0 5 1
A clientId() 0 3 1
A ourSecretState() 0 3 1
1
<?php
2
/**
3
 * @author Tharanga Kothalawala <[email protected]>
4
 * @date 17-02-2019
5
 */
6
7
namespace TSK\SSO\ThirdParty\Amazon;
8
9
/**
10
 * @package TSK\SSO\ThirdParty\Amazon
11
 */
12
class AmazonApiConfiguration
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
     * AmazonApiConfiguration 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