Passed
Pull Request — master (#6)
by Tharanga
09:58
created

ZoomApiConfiguration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 5
rs 10
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
    public function __construct($clientId, $clientSecret, $redirectUrl)
38
    {
39
        $this->clientId = $clientId;
40
        $this->clientSecret = $clientSecret;
41
        $this->redirectUrl = $redirectUrl;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function clientId()
48
    {
49
        return $this->clientId;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function clientSecret()
56
    {
57
        return $this->clientSecret;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function redirectUrl()
64
    {
65
        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
    public function ourSecretState()
74
    {
75
        return 'dfeb6ef625880832f61c6f4bd737e11b';
76
    }
77
}
78