Completed
Push — master ( cddd98...c8ab6f )
by Oleksandr
14s queued 10s
created

BraintreeConfig   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getPublicKey() 0 3 1
A getEnvironment() 0 3 1
A getMerchantId() 0 3 1
A getPrivateKey() 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\Service\Braintree;
9
10
use Spryker\Service\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\Braintree\BraintreeConstants;
12
13
class BraintreeConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getEnvironment(): string
19
    {
20
        return $this->get(BraintreeConstants::ENVIRONMENT);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getPublicKey(): string
27
    {
28
        return $this->get(BraintreeConstants::PUBLIC_KEY);
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getPrivateKey(): string
35
    {
36
        return $this->get(BraintreeConstants::PRIVATE_KEY);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getMerchantId(): string
43
    {
44
        return $this->get(BraintreeConstants::MERCHANT_ID);
45
    }
46
}
47