Completed
Pull Request — master (#1)
by Tharanga
09:26
created

TwitterApiConfiguration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 5
dl 0
loc 7
rs 10
c 0
b 0
f 0
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 $oauthToken;
28
29
    /**
30
     * @var string
31
     */
32
    private $oauthTokenSecret;
33
34
    /**
35
     * @var string
36
     */
37
    private $redirectUrl;
38
39
    /**
40
     * TwitterApiConfiguration constructor.
41
     * @param string $consumerApiKey
42
     * @param string $consumerApiSecret
43
     * @param string $oauthToken
44
     * @param string $oauthTokenSecret
45
     * @param string $redirectUrl
46
     */
47
    public function __construct($consumerApiKey, $consumerApiSecret, $oauthToken, $oauthTokenSecret, $redirectUrl)
48
    {
49
        $this->consumerApiKey = $consumerApiKey;
50
        $this->consumerApiSecret = $consumerApiSecret;
51
        $this->oauthToken = $oauthToken;
52
        $this->oauthTokenSecret = $oauthTokenSecret;
53
        $this->redirectUrl = $redirectUrl;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function consumerApiKey()
60
    {
61
        return $this->consumerApiKey;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function consumerApiSecret()
68
    {
69
        return $this->consumerApiSecret;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function oauthToken()
76
    {
77
        return $this->oauthToken;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function oauthTokenSecret()
84
    {
85
        return $this->oauthTokenSecret;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function redirectUrl()
92
    {
93
        return $this->redirectUrl;
94
    }
95
}
96