getProductConcreteExpanderPlugins()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
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\Client\QuickOrder;
11
12
use Spryker\Client\PriceProductStorage\Plugin\QuickOrder\ProductPriceItemValidatorPlugin;
13
use Spryker\Client\ProductDiscontinuedStorage\Plugin\QuickOrder\ProductDiscontinuedItemValidatorPlugin;
14
use Spryker\Client\ProductMeasurementUnitStorage\Plugin\QuickOrder\ProductConcreteTransferBaseMeasurementUnitExpanderPlugin;
15
use Spryker\Client\ProductQuantityStorage\Plugin\QuickOrder\ProductQuantityItemValidatorPlugin;
16
use Spryker\Client\QuickOrder\QuickOrderDependencyProvider as SprykerQuickOrderDependencyProvider;
17
18
class QuickOrderDependencyProvider extends SprykerQuickOrderDependencyProvider
19
{
20
    /**
21
     * @return array<\Spryker\Client\QuickOrderExtension\Dependency\Plugin\ProductConcreteExpanderPluginInterface>
22
     */
23
    protected function getProductConcreteExpanderPlugins(): array
24
    {
25
        return [
26
            new ProductConcreteTransferBaseMeasurementUnitExpanderPlugin(),
27
        ];
28
    }
29
30
    /**
31
     * @return array<\Spryker\Client\QuickOrderExtension\Dependency\Plugin\ItemValidatorPluginInterface>
32
     */
33
    protected function getQuickOrderBuildItemValidatorPlugins(): array
34
    {
35
        return [
36
            new ProductDiscontinuedItemValidatorPlugin(),
37
            new ProductPriceItemValidatorPlugin(),
38
            new ProductQuantityItemValidatorPlugin(),
39
        ];
40
    }
41
}
42