CrefoPayConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 30
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSecureFieldsApiEndpoint() 0 3 1
A getPublicKey() 0 3 1
A getSecureFieldsPlaceholders() 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\Yves\CrefoPay;
9
10
use Spryker\Yves\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\CrefoPay\CrefoPayConstants;
12
use SprykerEco\Shared\CrefoPayApi\CrefoPayApiConstants;
13
14
class CrefoPayConfig extends AbstractBundleConfig
15
{
16
    /**
17
     * @api
18
     *
19
     * @return string
20
     */
21
    public function getPublicKey(): string
22
    {
23
        return $this->get(CrefoPayApiConstants::PUBLIC_KEY);
24
    }
25
26
    /**
27
     * @api
28
     *
29
     * @return string
30
     */
31
    public function getSecureFieldsApiEndpoint(): string
32
    {
33
        return $this->get(CrefoPayConstants::SECURE_FIELDS_API_ENDPOINT);
34
    }
35
36
    /**
37
     * @api
38
     *
39
     * @return array<string>
40
     */
41
    public function getSecureFieldsPlaceholders(): array
42
    {
43
        return $this->get(CrefoPayConstants::SECURE_FIELDS_PLACEHOLDERS);
44
    }
45
}
46