ArvatoRssConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 28
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getAuthorization() 0 3 1
A getClientId() 0 3 1
A getPaymentTypeMapping() 0 5 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\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