BraintreeConfig   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 56
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrivateKey() 0 3 1
A getIsVaulted() 0 3 1
A getChannel() 0 3 1
A getIs3DSecure() 0 3 1
A getMerchantId() 0 3 1
A getEnvironment() 0 3 1
A getPublicKey() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\Braintree;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\Braintree\BraintreeConstants;
12
13
class BraintreeConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getPublicKey()
19
    {
20
        return $this->get(BraintreeConstants::PUBLIC_KEY);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getPrivateKey()
27
    {
28
        return $this->get(BraintreeConstants::PRIVATE_KEY);
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getMerchantId()
35
    {
36
        return $this->get(BraintreeConstants::MERCHANT_ID);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getEnvironment()
43
    {
44
        return $this->get(BraintreeConstants::ENVIRONMENT);
45
    }
46
47
    /**
48
     * @return bool
49
     */
50
    public function getIsVaulted()
51
    {
52
        return $this->get(BraintreeConstants::IS_VAULTED, false);
53
    }
54
55
    /**
56
     * @return bool
57
     */
58
    public function getIs3DSecure()
59
    {
60
        return $this->get(BraintreeConstants::IS_3D_SECURE, false);
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    final public function getChannel()
67
    {
68
        return 'Spryker_BT_DE';
69
    }
70
}
71