TwitterApiConfiguration   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 10
c 1
b 0
f 1
dl 0
loc 52
rs 10
ccs 11
cts 11
cp 1
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A redirectUrl() 0 3 1
A consumerApiKey() 0 3 1
A consumerApiSecret() 0 3 1
A __construct() 0 5 1
1
<?php
2
/**
3
 * @author Tharanga Kothalawala <[email protected]>
4
 * @date 13-01-2019
5
 */
6
7
namespace TSK\SSO\ThirdParty\Twitter;
8
9
/**
10
 * @package TSK\SSO\ThirdParty\Twitter
11
 */
12
class TwitterApiConfiguration
13
{
14
    /**
15
     * @var string
16
     */
17
    private $consumerApiKey;
18
19
    /**
20
     * @var string
21
     */
22
    private $consumerApiSecret;
23
24
    /**
25
     * @var string
26
     */
27
    private $redirectUrl;
28
29
    /**
30
     * TwitterApiConfiguration constructor.
31
     * @param string $consumerApiKey
32
     * @param string $consumerApiSecret
33
     * @param string $redirectUrl
34
     */
35 2
    public function __construct($consumerApiKey, $consumerApiSecret, $redirectUrl)
36
    {
37 2
        $this->consumerApiKey = $consumerApiKey;
38 2
        $this->consumerApiSecret = $consumerApiSecret;
39 2
        $this->redirectUrl = $redirectUrl;
40 2
    }
41
42
    /**
43
     * @return string
44
     */
45 2
    public function consumerApiKey()
46
    {
47 2
        return $this->consumerApiKey;
48
    }
49
50
    /**
51
     * @return string
52
     */
53 2
    public function consumerApiSecret()
54
    {
55 2
        return $this->consumerApiSecret;
56
    }
57
58
    /**
59
     * @return string
60
     */
61 1
    public function redirectUrl()
62
    {
63 1
        return $this->redirectUrl;
64
    }
65
}
66