Passed
Pull Request — master (#809)
by Stanislav
06:02
created

getSspInquiryCancelStateMachineEventName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 0
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\SelfServicePortal;
11
12
use SprykerFeature\Shared\SelfServicePortal\SelfServicePortalConfig as SprykerSelfServicePortalConfig;
13
14
class SelfServicePortalConfig extends SprykerSelfServicePortalConfig
15
{
16
    /**
17
     * @return array<string, string>
18
     */
19
    public function getInquiryInitialStateMachineMap(): array
20
    {
21
        return [
22
            'SspInquiryDefaultStateMachine' => 'created',
23
        ];
24
    }
25
26
    /**
27
     * @return array<string, string>
28
     */
29
    public function getSspInquiryStateMachineProcessInquiryTypeMap(): array
30
    {
31
        return [
32
            'general' => 'SspInquiryDefaultStateMachine',
33
            'order' => 'SspInquiryDefaultStateMachine',
34
            'ssp_asset' => 'SspInquiryDefaultStateMachine',
35
        ];
36
    }
37
38
    public function getSspInquiryCancelStateMachineEventName(): string
39
    {
40
        return 'cancel';
41
    }
42
43
    /**
44
     * @return array<string>
45
     */
46
    public function getSspInquiryAvailableStatuses(): array
47
    {
48
        return [
49
            'pending',
50
            'in_review',
51
            'approved',
52
            'rejected',
53
            'canceled',
54
        ];
55
    }
56
}
57