Total Complexity | 6 |
Total Lines | 77 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class SlackApiConfiguration |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $appId; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $appSecret; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $appPermissions; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $redirectUrl; |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @param string $appId |
||
38 | * @param string $appSecret |
||
39 | * @param string $appPermissions |
||
40 | * @param string $redirectUrl |
||
41 | */ |
||
42 | 2 | public function __construct($appId, $appSecret, $appPermissions, $redirectUrl) |
|
43 | { |
||
44 | 2 | $this->appId = $appId; |
|
45 | 2 | $this->appSecret = $appSecret; |
|
46 | 2 | $this->appPermissions = $appPermissions; |
|
47 | 2 | $this->redirectUrl = $redirectUrl; |
|
48 | 2 | } |
|
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 1 | public function appId() |
|
54 | { |
||
55 | 1 | return $this->appId; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 1 | public function appSecret() |
|
62 | { |
||
63 | 1 | return $this->appSecret; |
|
64 | } |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | 1 | public function appPermissions() |
|
70 | { |
||
71 | 1 | return $this->appPermissions; |
|
72 | } |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | 1 | public function redirectUrl() |
|
80 | } |
||
81 | |||
82 | /** |
||
83 | * This is just to identify that, we initiated the login sequence (not someone else) |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | 1 | public function ourSecretState() |
|
90 | } |
||
91 | } |
||
92 |