CrefoPayConfig::getPublicKey()   A
last analyzed

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
/**
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