ClientConfig   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 46
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getLoginUrl() 0 4 1
A getClientId() 0 4 1
A getClientSecret() 0 4 1
1
<?php namespace DarkGold\Salesforce;
2
3
class ClientConfig implements ClientConfigInterface {
4
5
    /**
6
     * @var
7
     */
8
    private $loginUrl;
9
    /**
10
     * @var
11
     */
12
    private $clientId;
13
    /**
14
     * @var
15
     */
16
    private $clientSecret;
17
18
    public function __construct($loginUrl, $clientId, $clientSecret)
19
    {
20
        $this->loginUrl = $loginUrl;
21
        $this->clientId = $clientId;
22
        $this->clientSecret = $clientSecret;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getLoginUrl()
29
    {
30
        return $this->loginUrl;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getClientId()
37
    {
38
        return $this->clientId;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getClientSecret()
45
    {
46
        return $this->clientSecret;
47
    }
48
}