ZoomApiConfiguration::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * @author Tharanga Kothalawala <[email protected]>
4
 * @date   28-10-2020
5
 */
6
7
namespace TSK\SSO\ThirdParty\Zoom;
8
9
/**
10
 * @package TSK\SSO\ThirdParty\Zoom
11
 * @see     https://api.Zoom.com/apps
12
 */
13
class ZoomApiConfiguration
14
{
15
    /**
16
     * @var string
17
     */
18
    private $clientId;
19
20
    /**
21
     * @var string
22
     */
23
    private $clientSecret;
24
25
    /**
26
     * @var string
27
     */
28
    private $redirectUrl;
29
30
    /**
31
     * ZoomApiConfiguration constructor.
32
     *
33
     * @param string $clientId
34
     * @param string $clientSecret
35
     * @param string $redirectUrl
36
     */
37 2
    public function __construct($clientId, $clientSecret, $redirectUrl)
38
    {
39 2
        $this->clientId = $clientId;
40 2
        $this->clientSecret = $clientSecret;
41 2
        $this->redirectUrl = $redirectUrl;
42 2
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function clientId()
48
    {
49 1
        return $this->clientId;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 1
    public function clientSecret()
56
    {
57 1
        return $this->clientSecret;
58
    }
59
60
    /**
61
     * @return string
62
     */
63 1
    public function redirectUrl()
64
    {
65 1
        return $this->redirectUrl;
66
    }
67
68
    /**
69
     * This is just to identify that, we initiated the login sequence (not someone else)
70
     *
71
     * @return string
72
     */
73 1
    public function ourSecretState()
74
    {
75 1
        return 'dfeb6ef625880832f61c6f4bd737e11b';
76
    }
77
}
78