Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
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() |
|
64 | } |
||
65 | } |
||
66 |