MerchantDependencyProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 12
dl 0
loc 34
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getMerchantPostUpdatePlugins() 0 5 1
A getMerchantPostCreatePlugins() 0 6 1
A getMerchantBulkExpanderPlugins() 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\Merchant;
11
12
use Spryker\Zed\AclMerchantPortal\Communication\Plugin\Merchant\MerchantAclEntitiesMerchantPostCreatePlugin;
13
use Spryker\Zed\Merchant\MerchantDependencyProvider as SprykerMerchantDependencyProvider;
14
use Spryker\Zed\MerchantCategory\Communication\Plugin\Merchant\MerchantCategoryMerchantBulkExpanderPlugin;
15
use Spryker\Zed\MerchantProfile\Communication\Plugin\Merchant\MerchantProfileMerchantBulkExpanderPlugin;
16
use Spryker\Zed\MerchantProfile\Communication\Plugin\Merchant\MerchantProfileMerchantPostCreatePlugin;
17
use Spryker\Zed\MerchantProfile\Communication\Plugin\Merchant\MerchantProfileMerchantPostUpdatePlugin;
18
use Spryker\Zed\MerchantStock\Communication\Plugin\Merchant\MerchantStockMerchantBulkExpanderPlugin;
19
use Spryker\Zed\MerchantStock\Communication\Plugin\Merchant\MerchantStockMerchantPostCreatePlugin;
20
use Spryker\Zed\MerchantUser\Communication\Plugin\Merchant\SyncMerchantUsersStatusMerchantPostUpdatePlugin;
21
22
class MerchantDependencyProvider extends SprykerMerchantDependencyProvider
23
{
24
    /**
25
     * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostCreatePluginInterface>
26
     */
27
    protected function getMerchantPostCreatePlugins(): array
28
    {
29
        return [
30
            new MerchantProfileMerchantPostCreatePlugin(),
31
            new MerchantStockMerchantPostCreatePlugin(),
32
            new MerchantAclEntitiesMerchantPostCreatePlugin(),
33
        ];
34
    }
35
36
    /**
37
     * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostUpdatePluginInterface>
38
     */
39
    protected function getMerchantPostUpdatePlugins(): array
40
    {
41
        return [
42
            new MerchantProfileMerchantPostUpdatePlugin(),
43
            new SyncMerchantUsersStatusMerchantPostUpdatePlugin(),
44
        ];
45
    }
46
47
    /**
48
     * @return list<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantBulkExpanderPluginInterface>
49
     */
50
    protected function getMerchantBulkExpanderPlugins(): array
51
    {
52
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...ntBulkExpanderPlugin()) returns the type array<integer,Spryker\Ze...hantBulkExpanderPlugin> which is incompatible with the documented return type Pyz\Zed\Merchant\list.
Loading history...
53
            new MerchantProfileMerchantBulkExpanderPlugin(),
54
            new MerchantStockMerchantBulkExpanderPlugin(),
55
            new MerchantCategoryMerchantBulkExpanderPlugin(),
56
        ];
57
    }
58
}
59