Passed
Pull Request — master (#16)
by Aleksey
07:16
created

ArvatoRssConfig   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 30
rs 10
c 2
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getClientId() 0 4 1
A getAuthorization() 0 4 1
A getPaymentTypeMapping() 0 6 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
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