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

SelfServicePortalDependencyProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSspAssetManagementExpanderPlugins() 0 6 1
A getDashboardDataExpanderPlugins() 0 7 1
A getStateMachineCommandPlugins() 0 5 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\SelfServicePortal;
11
12
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspAssetManagement\ServiceSspAssetManagementExpanderPlugin;
13
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspAssetManagement\SspFileSspAssetManagementExpanderPlugin;
14
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspAssetManagement\SspInquirySspAssetManagementExpanderPlugin;
15
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspDashboardManagement\SspAssetDashboardDataExpanderPlugin;
16
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspDashboardManagement\SspFileDashboardDataExpanderPlugin;
17
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspDashboardManagement\SspInquiryDashboardDataExpanderPlugin;
18
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\SspDashboardManagement\SspServiceDashboardDataExpanderPlugin;
19
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\StateMachine\ApproveSspInquiryCommandPlugin;
20
use SprykerFeature\Zed\SelfServicePortal\Communication\Plugin\StateMachine\RejectSspInquiryCommandPlugin;
21
use SprykerFeature\Zed\SelfServicePortal\SelfServicePortalDependencyProvider as SprykerSelfServicePortalDependencyProvider;
22
23
class SelfServicePortalDependencyProvider extends SprykerSelfServicePortalDependencyProvider
24
{
25
    /**
26
     * @return array<int, \SprykerFeature\Zed\SelfServicePortal\Dependency\Plugin\DashboardDataExpanderPluginInterface>
27
     */
28
    protected function getDashboardDataExpanderPlugins(): array
29
    {
30
        return [
31
            new SspInquiryDashboardDataExpanderPlugin(),
32
            new SspFileDashboardDataExpanderPlugin(),
33
            new SspAssetDashboardDataExpanderPlugin(),
34
            new SspServiceDashboardDataExpanderPlugin(),
35
        ];
36
    }
37
38
    /**
39
     * @return array<\Spryker\Zed\StateMachine\Dependency\Plugin\CommandPluginInterface>
40
     */
41
    protected function getStateMachineCommandPlugins(): array
42
    {
43
        return [
44
            'SspInquiry/Approve' => new ApproveSspInquiryCommandPlugin(),
45
            'SspInquiry/Reject' => new RejectSspInquiryCommandPlugin(),
46
        ];
47
    }
48
49
    /**
50
     * @return array<\SprykerFeature\Zed\SelfServicePortal\Dependency\Plugin\SspAssetManagementExpanderPluginInterface>
51
     */
52
    protected function getSspAssetManagementExpanderPlugins(): array
53
    {
54
        return [
55
            new SspInquirySspAssetManagementExpanderPlugin(),
56
            new SspFileSspAssetManagementExpanderPlugin(),
57
            new ServiceSspAssetManagementExpanderPlugin(),
58
        ];
59
    }
60
}
61