Passed
Push — bugfix/supesc-612-crefopay-use... ( d838fe )
by Roman
09:03
created

CrefoPayConfig::getCrefoPayBasketItemIdMaxLength()   A

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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
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\Service\CrefoPay;
9
10
use Spryker\Service\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\CrefoPay\CrefoPayConstants;
12
13
class CrefoPayConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @var int
17
     */
18
    protected const CREFO_PAY_ORDER_ID_LENGTH = 30;
19
20
    /**
21
     * @var int
22
     */
23
    protected const CREFO_PAY_USER_ID_MAX_LENGTH = 50;
24
25
    /**
26
     * @var int
27
     */
28
    protected const CREFO_PAY_BASKET_ITEM_ID_MAX_LENGTH = 20;
29
30
    /**
31
     * @api
32
     *
33
     * @return int
34
     */
35
    public function getCrefoPayOrderIdLength(): int
36
    {
37
        return static::CREFO_PAY_ORDER_ID_LENGTH;
38
    }
39
40
    /**
41
     * @api
42
     *
43
     * @return int
44
     */
45
    public function getCrefoPayUserIdMaxLength(): int
46
    {
47
        return static::CREFO_PAY_USER_ID_MAX_LENGTH;
48
    }
49
50
    /**
51
     * @api
52
     *
53
     * @return int
54
     */
55
    public function getCrefoPayBasketItemIdMaxLength(): int
56
    {
57
        return static::CREFO_PAY_BASKET_ITEM_ID_MAX_LENGTH;
58
    }
59
60
    /**
61
     * @api
62
     *
63
     * @return bool
64
     */
65
    public function getIsBusinessToBusiness(): bool
66
    {
67
        return $this->get(CrefoPayConstants::IS_BUSINESS_TO_BUSINESS, false);
68
    }
69
}
70