Passed
Pull Request — master (#561)
by Stanislav
05:02
created

getSspInquiryInitialStateMap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Suite.
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
        ];
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getSspInquiryCancelStateMachineEventName(): string
35
    {
36
        return 'cancel';
37
    }
38
39
    /**
40
     * @return array<string>
41
     */
42
    public function getAvailableStatuses(): array
43
    {
44
        return [
45
            'pending',
46
            'in_review',
47
            'approved',
48
            'rejected',
49
            'canceled',
50
        ];
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getStorageName(): string
57
    {
58
        return 'ssp-inquiry';
59
    }
60
}
61