getWishlistItemRequestExpanderPlugins()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
c 0
b 0
f 0
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
declare(strict_types = 1);
9
10
namespace Pyz\Yves\WishlistPage;
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\MerchantProductOfferWidget\Plugin\WishlistPage\MerchantProductOfferWishlistItemMetaFormExpanderPlugin;
16
use SprykerShop\Yves\MerchantProductOfferWidget\Plugin\WishlistPage\MerchantProductOfferWishlistItemRequestExpanderPlugin;
17
use SprykerShop\Yves\MerchantProductWidget\Plugin\WishlistPage\MerchantProductWishlistItemMetaFormExpanderPlugin;
18
use SprykerShop\Yves\MerchantProductWidget\Plugin\WishlistPage\MerchantProductWishlistItemRequestExpanderPlugin;
19
use SprykerShop\Yves\ProductConfigurationWishlistWidget\Plugin\WishlistPage\ProductConfigurationWishlistItemRequestExpanderPlugin;
20
use SprykerShop\Yves\WishlistPage\WishlistPageDependencyProvider as SprykerWishlistPageDependencyProvider;
21
22
class WishlistPageDependencyProvider extends SprykerWishlistPageDependencyProvider
23
{
24
    /**
25
     * @return array<\Spryker\Client\ProductStorage\Dependency\Plugin\ProductViewExpanderPluginInterface>
26
     */
27
    protected function getWishlistItemExpanderPlugins(): array
28
    {
29
        return [
30
            new ProductViewPriceExpanderPlugin(),
31
            new ProductViewImageExpanderPlugin(),
32
            new ProductViewAvailabilityStorageExpanderPlugin(),
33
        ];
34
    }
35
36
    /**
37
     * @return array<\SprykerShop\Yves\WishlistPageExtension\Dependency\Plugin\WishlistItemRequestExpanderPluginInterface>
38
     */
39
    protected function getWishlistItemRequestExpanderPlugins(): array
40
    {
41
        return [
42
            new MerchantProductWishlistItemRequestExpanderPlugin(),
43
            new MerchantProductOfferWishlistItemRequestExpanderPlugin(),
44
            new ProductConfigurationWishlistItemRequestExpanderPlugin(),
45
        ];
46
    }
47
48
    /**
49
     * @return array<\SprykerShop\Yves\WishlistPageExtension\Dependency\Plugin\WishlistItemMetaFormExpanderPluginInterface>
50
     */
51
    protected function getWishlistItemMetaFormExpanderPlugins(): array
52
    {
53
        return [
54
            new MerchantProductWishlistItemMetaFormExpanderPlugin(),
55
            new MerchantProductOfferWishlistItemMetaFormExpanderPlugin(),
56
        ];
57
    }
58
}
59