MerchantOmsConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 36
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMerchantProcessInitialStateMap() 0 6 1
A getMerchantOmsProcesses() 0 6 1
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\MerchantOms;
11
12
use Spryker\Zed\MerchantOms\MerchantOmsConfig as SprykerMerchantOmsConfig;
13
14
class MerchantOmsConfig extends SprykerMerchantOmsConfig
15
{
16
    /**
17
     * @var string
18
     */
19
    protected const MAIN_MERCHANT_OMS_PROCESS_NAME = 'MainMerchantStateMachine';
20
21
    /**
22
     * @var string
23
     */
24
    protected const MAIN_MERCHANT_STATE_MACHINE_INITIAL_STATE = 'created';
25
26
    /**
27
     * @return array<string>
28
     */
29
    public function getMerchantProcessInitialStateMap(): array
30
    {
31
        return array_merge(
32
            parent::getMerchantProcessInitialStateMap(),
33
            [
34
                static::MAIN_MERCHANT_OMS_PROCESS_NAME => static::MAIN_MERCHANT_STATE_MACHINE_INITIAL_STATE,
35
            ],
36
        );
37
    }
38
39
    /**
40
     * @api
41
     *
42
     * @return array<string>
43
     */
44
    public function getMerchantOmsProcesses(): array
45
    {
46
        return array_merge(
47
            parent::getMerchantOmsProcesses(),
48
            [
49
                static::MAIN_MERCHANT_OMS_PROCESS_NAME,
50
            ],
51
        );
52
    }
53
}
54