Completed
Pull Request — master (#9)
by Volodymyr
09:05 queued 04:59
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
namespace SprykerEco\Service\Braintree;
4
5
use Spryker\Service\Kernel\AbstractBundleConfig;
6
use SprykerEco\Shared\Braintree\BraintreeConstants;
7
8
class BraintreeConfig extends AbstractBundleConfig
9
{
10
    /**
11
     * @return string
12
     */
13
    public function getEnvironment(): string
14
    {
15
        return $this->get(BraintreeConstants::ENVIRONMENT);
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function getPublicKey(): string
22
    {
23
        return $this->get(BraintreeConstants::PUBLIC_KEY);
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getPrivateKey(): string
30
    {
31
        return $this->get(BraintreeConstants::PRIVATE_KEY);
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getMerchantId(): string
38
    {
39
        return $this->get(BraintreeConstants::MERCHANT_ID);
40
    }
41
}