Passed
Push — master ( 321221...bff5d9 )
by Dmitry
03:28 queued 12s
created

ProductConfigurationDependencyProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
dl 0
loc 19
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductConfigurationRequestExpanderPlugins() 0 4 1
A getProductConfigurationPriceExtractorPlugins() 0 4 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
namespace Pyz\Client\ProductConfiguration;
9
10
use Spryker\Client\ProductConfiguration\Plugin\PriceProductVolumeProductConfigurationPriceExtractorPlugin;
11
use Spryker\Client\ProductConfiguration\ProductConfigurationDependencyProvider as SprykerProductConfigurationDependencyProvider;
12
use SprykerShop\Client\DateTimeConfiguratorPageExample\Plugin\ProductConfiguration\ExampleDateTimeProductConfiguratorRequestExpanderPlugin;
13
14
/**
15
 * @method \Spryker\Client\ProductConfiguration\ProductConfigurationConfig getConfig()
16
 */
17
class ProductConfigurationDependencyProvider extends SprykerProductConfigurationDependencyProvider
18
{
19
    /**
20
     * @return array<\Spryker\Client\ProductConfigurationExtension\Dependency\Plugin\ProductConfiguratorRequestExpanderPluginInterface>
21
     */
22
    protected function getProductConfigurationRequestExpanderPlugins(): array
23
    {
24
        return [
25
            new ExampleDateTimeProductConfiguratorRequestExpanderPlugin(),
26
        ];
27
    }
28
29
    /**
30
     * @return array<\Spryker\Client\ProductConfigurationExtension\Dependency\Plugin\ProductConfigurationPriceExtractorPluginInterface>
31
     */
32
    protected function getProductConfigurationPriceExtractorPlugins(): array
33
    {
34
        return [
35
            new PriceProductVolumeProductConfigurationPriceExtractorPlugin(),
36
        ];
37
    }
38
}
39