Passed
Pull Request — master (#455)
by Aleksey
09:57 queued 32s
created

getMiniCartViewExpanderPlugins()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
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\Yves\CartPage;
9
10
use SprykerShop\Yves\CartPage\CartPageDependencyProvider as SprykerCartPageDependencyProvider;
11
use SprykerShop\Yves\DiscountPromotionWidget\Plugin\CartPage\DiscountPromotionAddToCartFormWidgetParameterExpanderPlugin;
12
use SprykerShop\Yves\MultiCartWidget\Plugin\CartPage\MultiCartMiniCartViewExpanderPlugin;
13
use SprykerShop\Yves\ProductBundleWidget\Plugin\CartPage\ProductBundleCartItemTransformerPlugin;
14
use SprykerShop\Yves\UrlPage\Plugin\CartPage\UrlCartItemTransformerPlugin;
15
16
class CartPageDependencyProvider extends SprykerCartPageDependencyProvider
17
{
18
    /**
19
     * @return array<\SprykerShop\Yves\CartPageExtension\Dependency\Plugin\CartItemTransformerPluginInterface>
20
     */
21
    protected function getCartItemTransformerPlugins(): array
22
    {
23
        return [
24
            new ProductBundleCartItemTransformerPlugin(),
25
            new UrlCartItemTransformerPlugin(),
26
        ];
27
    }
28
29
    /**
30
     * @return array<\SprykerShop\Yves\CartPageExtension\Dependency\Plugin\AddToCartFormWidgetParameterExpanderPluginInterface>
31
     */
32
    protected function getAddToCartFormWidgetParameterExpanderPlugins(): array
33
    {
34
        return [
35
            new DiscountPromotionAddToCartFormWidgetParameterExpanderPlugin(),
36
        ];
37
    }
38
39
    /**
40
     * @return array<\SprykerShop\Yves\CartPageExtension\Dependency\Plugin\MiniCartViewExpanderPluginInterface>
41
     */
42
    protected function getMiniCartViewExpanderPlugins(): array
43
    {
44
        return [
45
            new MultiCartMiniCartViewExpanderPlugin(),
46
        ];
47
    }
48
}
49