Passed
Pull Request — master (#213)
by Ruslan
18:45
created

getMerchantBulkExpanderPlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 6
rs 10
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
namespace Pyz\Zed\Merchant;
9
10
use Spryker\Zed\AclMerchantPortal\Communication\Plugin\Merchant\MerchantAclEntitiesMerchantPostCreatePlugin;
11
use Spryker\Zed\Merchant\MerchantDependencyProvider as SprykerMerchantDependencyProvider;
12
use Spryker\Zed\MerchantCategory\Communication\Plugin\Merchant\MerchantCategoryMerchantBulkExpanderPlugin;
13
use Spryker\Zed\MerchantProfile\Communication\Plugin\Merchant\MerchantProfileMerchantBulkExpanderPlugin;
14
use Spryker\Zed\MerchantProfile\Communication\Plugin\Merchant\MerchantProfileMerchantPostCreatePlugin;
15
use Spryker\Zed\MerchantProfile\Communication\Plugin\Merchant\MerchantProfileMerchantPostUpdatePlugin;
16
use Spryker\Zed\MerchantStock\Communication\Plugin\Merchant\MerchantStockMerchantBulkExpanderPlugin;
17
use Spryker\Zed\MerchantStock\Communication\Plugin\Merchant\MerchantStockMerchantPostCreatePlugin;
18
use Spryker\Zed\MerchantUser\Communication\Plugin\Merchant\SyncMerchantUsersStatusMerchantPostUpdatePlugin;
19
20
class MerchantDependencyProvider extends SprykerMerchantDependencyProvider
21
{
22
    /**
23
     * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostCreatePluginInterface>
24
     */
25
    protected function getMerchantPostCreatePlugins(): array
26
    {
27
        return [
28
            new MerchantProfileMerchantPostCreatePlugin(),
29
            new MerchantStockMerchantPostCreatePlugin(),
30
            new MerchantAclEntitiesMerchantPostCreatePlugin(),
31
        ];
32
    }
33
34
    /**
35
     * @return array<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantPostUpdatePluginInterface>
36
     */
37
    protected function getMerchantPostUpdatePlugins(): array
38
    {
39
        return [
40
            new MerchantProfileMerchantPostUpdatePlugin(),
41
            new SyncMerchantUsersStatusMerchantPostUpdatePlugin(),
42
        ];
43
    }
44
45
    /**
46
     * @return list<\Spryker\Zed\MerchantExtension\Dependency\Plugin\MerchantBulkExpanderPluginInterface>
47
     */
48
    protected function getMerchantBulkExpanderPlugins(): array
49
    {
50
        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...
51
            new MerchantProfileMerchantBulkExpanderPlugin(),
52
            new MerchantStockMerchantBulkExpanderPlugin(),
53
            new MerchantCategoryMerchantBulkExpanderPlugin(),
54
        ];
55
    }
56
}
57