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

ProductConfigurationsRestApiDependencyProvider   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 getProductConfigurationPriceMapperPlugins() 0 4 1
A getRestProductConfigurationPriceMapperPlugins() 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\Glue\ProductConfigurationsRestApi;
9
10
use Spryker\Glue\ProductConfigurationsPriceProductVolumesRestApi\Plugin\ProductConfigurationsRestApi\ProductConfigurationVolumePriceProductConfigurationPriceMapperPlugin;
11
use Spryker\Glue\ProductConfigurationsPriceProductVolumesRestApi\Plugin\ProductConfigurationsRestApi\ProductConfigurationVolumePriceRestProductConfigurationPriceMapperPlugin;
12
use Spryker\Glue\ProductConfigurationsRestApi\ProductConfigurationsRestApiDependencyProvider as SprykerProductConfigurationsRestApiDependencyProvider;
13
14
class ProductConfigurationsRestApiDependencyProvider extends SprykerProductConfigurationsRestApiDependencyProvider
15
{
16
    /**
17
     * @return array<\Spryker\Glue\ProductConfigurationsRestApiExtension\Dependency\Plugin\ProductConfigurationPriceMapperPluginInterface>
18
     */
19
    protected function getProductConfigurationPriceMapperPlugins(): array
20
    {
21
        return [
22
            new ProductConfigurationVolumePriceProductConfigurationPriceMapperPlugin(),
23
        ];
24
    }
25
26
    /**
27
     * @return array<\Spryker\Glue\ProductConfigurationsRestApiExtension\Dependency\Plugin\RestProductConfigurationPriceMapperPluginInterface>
28
     */
29
    protected function getRestProductConfigurationPriceMapperPlugins(): array
30
    {
31
        return [
32
            new ProductConfigurationVolumePriceRestProductConfigurationPriceMapperPlugin(),
33
        ];
34
    }
35
}
36