Passed
Pull Request — master (#573)
by Eugenia
05:45
created

SspInquiryManagementConfig   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

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

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getSspInquiryInitialStateMap() 0 4 1
A getStorageName() 0 3 1
A getSspInquiryCancelStateMachineEventName() 0 3 1
A getSspInquiryStateMachineProcessSspInquiryTypeMap() 0 6 1
A getAvailableStatuses() 0 8 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\Shared\SspInquiryManagement;
11
12
use SprykerFeature\Shared\SspInquiryManagement\SspInquiryManagementConfig as SprykerSspInquiryConfig;
13
14
class SspInquiryManagementConfig extends SprykerSspInquiryConfig
15
{
16
    public function getSspInquiryInitialStateMap(): array
17
    {
18
        return [
19
            'SspInquiryDefaultStateMachine' => 'created',
20
        ];
21
    }
22
23
    public function getSspInquiryStateMachineProcessSspInquiryTypeMap(): array
24
    {
25
        return [
26
            'general' => 'SspInquiryDefaultStateMachine',
27
            'order' => 'SspInquiryDefaultStateMachine',
28
            'ssp_asset' => 'SspInquiryDefaultStateMachine',
29
        ];
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getSspInquiryCancelStateMachineEventName(): string
36
    {
37
        return 'cancel';
38
    }
39
40
    /**
41
     * @return array<string>
42
     */
43
    public function getAvailableStatuses(): array
44
    {
45
        return [
46
            'pending',
47
            'in_review',
48
            'approved',
49
            'rejected',
50
            'canceled',
51
        ];
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getStorageName(): string
58
    {
59
        return 'ssp-inquiry';
60
    }
61
}
62