TwitterApiConfiguration::consumerApiKey()   A
last analyzed

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 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
crap 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