Passed
Pull Request — master (#9)
by Volodymyr
04:30
created

BraintreeConfig::getPublicKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}