FacebookApiConfiguration   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 82
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 16
c 1
b 0
f 0
dl 0
loc 82
rs 10
ccs 17
cts 17
cp 1
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A appSecret() 0 3 1
A apiVersion() 0 3 1
A appPermissions() 0 3 1
A appId() 0 3 1
A redirectUrl() 0 3 1
1
<?php
2
/**
3
 * @author Tharanga Kothalawala <[email protected]>
4
 * @date 30-12-2018
5
 */
6
7
namespace TSK\SSO\ThirdParty\Facebook;
8
9
/**
10
 * @package TSK\SSO\ThirdParty\Facebook
11
 */
12
class FacebookApiConfiguration
13
{
14
    /**
15
     * @var string
16
     */
17
    private $apiVersion;
18
19
    /**
20
     * @var int
21
     */
22
    private $appId;
23
24
    /**
25
     * @var string
26
     */
27
    private $appSecret;
28
29
    /**
30
     * @var string
31
     */
32
    private $appPermissions;
33
34
    /**
35
     * @var string
36
     */
37
    private $redirectUrl;
38
39
40
    /**
41
     * @param string $apiVersion
42
     * @param int $appId
43
     * @param string $appSecret
44
     * @param string $appPermissions
45
     * @param string $redirectUrl
46
     */
47 2
    public function __construct($apiVersion, $appId, $appSecret, $appPermissions, $redirectUrl)
48
    {
49 2
        $this->apiVersion = $apiVersion;
50 2
        $this->appId = $appId;
51 2
        $this->appSecret = $appSecret;
52 2
        $this->appPermissions = $appPermissions;
53 2
        $this->redirectUrl = $redirectUrl;
54 2
    }
55
56
    /**
57
     * @return string
58
     */
59 2
    public function apiVersion()
60
    {
61 2
        return $this->apiVersion;
62
    }
63
64
    /**
65
     * @return int
66
     */
67 2
    public function appId()
68
    {
69 2
        return $this->appId;
70
    }
71
72
    /**
73
     * @return string
74
     */
75 2
    public function appSecret()
76
    {
77 2
        return $this->appSecret;
78
    }
79
80
    /**
81
     * @return string
82
     */
83 1
    public function appPermissions()
84
    {
85 1
        return $this->appPermissions;
86
    }
87
88
    /**
89
     * @return string
90
     */
91 1
    public function redirectUrl()
92
    {
93 1
        return $this->redirectUrl;
94
    }
95
}
96