ShoppingListPageDependencyProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getShoppingListFormDataProviderMapperPlugins() 0 4 1
A getShoppingListItemFormExpanderPlugins() 0 5 1
A getShoppingListItemExpanderPlugins() 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\Yves\ShoppingListPage;
11
12
use Spryker\Client\AvailabilityStorage\Plugin\ProductViewAvailabilityStorageExpanderPlugin;
13
use Spryker\Client\PriceProductStorage\Plugin\ProductViewPriceExpanderPlugin;
14
use Spryker\Client\ProductImageStorage\Plugin\ProductViewImageExpanderPlugin;
15
use SprykerShop\Yves\ProductOptionWidget\Plugin\ShoppingListPage\ShoppingListItemProductOptionFormDataProviderMapperPlugin;
16
use SprykerShop\Yves\ProductOptionWidget\Plugin\ShoppingListPage\ShoppingListItemProductOptionFormExpanderPlugin;
17
use SprykerShop\Yves\ShoppingListNoteWidget\Plugin\ShoppingListPage\ShoppingListItemNoteFormExpanderPlugin;
18
use SprykerShop\Yves\ShoppingListPage\ShoppingListPageDependencyProvider as SprykerShoppingListPageDependencyProvider;
19
20
class ShoppingListPageDependencyProvider extends SprykerShoppingListPageDependencyProvider
21
{
22
    /**
23
     * @return array<\Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface>
24
     */
25
    protected function getShoppingListItemExpanderPlugins(): array
26
    {
27
        return [
28
            new ProductViewPriceExpanderPlugin(),
29
            new ProductViewImageExpanderPlugin(),
30
            new ProductViewAvailabilityStorageExpanderPlugin(),
31
        ];
32
    }
33
34
    /**
35
     * @return array<\SprykerShop\Yves\ShoppingListPageExtension\Dependency\Plugin\ShoppingListItemFormExpanderPluginInterface>
36
     */
37
    protected function getShoppingListItemFormExpanderPlugins(): array
38
    {
39
        return [
40
            new ShoppingListItemNoteFormExpanderPlugin(), #ShoppingListNoteFeature
41
            new ShoppingListItemProductOptionFormExpanderPlugin(),
42
        ];
43
    }
44
45
    /**
46
     * @return array<\SprykerShop\Yves\ShoppingListPageExtension\Dependency\Plugin\ShoppingListFormDataProviderMapperPluginInterface>
47
     */
48
    protected function getShoppingListFormDataProviderMapperPlugins(): array
49
    {
50
        return [
51
            new ShoppingListItemProductOptionFormDataProviderMapperPlugin(),
52
        ];
53
    }
54
}
55