ArvatoRssConfig::getPaymentTypeMapping()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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\Zed\ArvatoRss;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\ArvatoRss\ArvatoRssConstants;
12
13
class ArvatoRssConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getClientId()
19
    {
20
        return $this->get(ArvatoRssConstants::ARVATORSS_CLIENTID);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getAuthorization()
27
    {
28
        return $this->get(ArvatoRssConstants::ARVATORSS_AUTHORISATION);
29
    }
30
31
    /**
32
     * @param string $paymentMethod
33
     *
34
     * @return string
35
     */
36
    public function getPaymentTypeMapping($paymentMethod)
37
    {
38
        $mapping = $this->get(ArvatoRssConstants::ARVATORSS_PAYMENT_TYPE_MAPPING);
39
40
        return $mapping[$paymentMethod];
41
    }
42
}
43