Passed
Pull Request — master (#13)
by
unknown
09:54 queued 05:33
created

CrefoPayConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getUseIndependentOrderIdForTransaction() 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\Service\CrefoPay;
9
10
use Spryker\Service\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\CrefoPay\CrefoPayConstants;
12
13
/**
14
 * @method \SprykerEco\Shared\CrefoPay\CrefoPayConfig getSharedConfig()
15
 */
16
class CrefoPayConfig extends AbstractBundleConfig
17
{
18
    /**
19
     * @api
20
     *
21
     * @return bool
22
     */
23
    public function getUseIndependentOrderIdForTransaction(): bool
24
    {
25
        return $this->get(CrefoPayConstants::USE_INDEPENDENT_ORDER_ID_FOR_TRANSACTION, false);
26
    }
27
}
28