EasycreditConfig   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 12
c 1
b 0
f 0
dl 0
loc 48
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getPaymentMethodAvailableCountries() 0 3 1
A getPaymentPageIntegrationType() 0 3 1
A getPaymentMethod() 0 3 1
A getPaymentMethodMaxAvailableMoneyValue() 0 3 1
A getPaymentMethodMinAvailableMoneyValue() 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\Shared\Easycredit;
9
10
use Spryker\Shared\Kernel\AbstractBundleConfig;
11
12
class EasycreditConfig extends AbstractBundleConfig
13
{
14
    public const PROVIDER_NAME = 'Easycredit';
15
    public const PAYMENT_METHOD = 'easycredit';
16
    public const PAYMENT_PAGE_INTEGRATION_TYPE = 'PAYMENT_PAGE';
17
18
    public const PAYMENT_METHOD_AVAILABLE_COUNTRIES = ['DE'];
19
    public const PAYMENT_METHOD_MIN_AVAILABLE_MONEY_VALUE = 20000;
20
    public const PAYMENT_METHOD_MAX_AVAILABLE_MONEY_VALUE = 1000000;
21
22
    /**
23
     * @return string
24
     */
25
    public function getPaymentPageIntegrationType(): string
26
    {
27
        return static::PAYMENT_PAGE_INTEGRATION_TYPE;
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getPaymentMethodAvailableCountries(): array
34
    {
35
        return static::PAYMENT_METHOD_AVAILABLE_COUNTRIES;
36
    }
37
38
    /**
39
     * @return int
40
     */
41
    public function getPaymentMethodMinAvailableMoneyValue(): int
42
    {
43
        return static::PAYMENT_METHOD_MIN_AVAILABLE_MONEY_VALUE;
44
    }
45
46
    /**
47
     * @return int
48
     */
49
    public function getPaymentMethodMaxAvailableMoneyValue(): int
50
    {
51
        return static::PAYMENT_METHOD_MAX_AVAILABLE_MONEY_VALUE;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getPaymentMethod(): string
58
    {
59
        return static::PAYMENT_METHOD;
60
    }
61
}
62