FacebookApiConfiguration::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 5
dl 0
loc 7
rs 10
ccs 6
cts 6
cp 1
crap 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