Completed
Push — master ( 0541e3...1b0cb6 )
by Ilya
55s queued 18s
created

CartReorderDependencyProvider   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 111
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 9
eloc 41
c 1
b 0
f 0
dl 0
loc 111
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getCartReorderPreAddToCartPluginsForOrderAmendment() 0 4 1
A getCartReorderQuoteProviderStrategyPlugins() 0 4 1
A getCartReorderPreAddToCartPlugins() 0 6 1
A getCartReorderOrderItemFilterPlugins() 0 4 1
A getCartReorderRequestValidatorPlugins() 0 4 1
A getCartPreReorderPlugins() 0 16 1
A getCartPostReorderPlugins() 0 6 1
A getCartReorderItemHydratorPlugins() 0 9 1
A getCartReorderValidatorPluginsForOrderAmendment() 0 5 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
declare(strict_types = 1);
9
10
namespace Pyz\Zed\CartReorder;
11
12
use Spryker\Zed\AvailabilityCartConnector\Communication\Plugin\CartReorder\RemoveUnavailableItemsCartReorderPreAddToCartPlugin;
13
use Spryker\Zed\CartNote\Communication\Plugin\CartReorder\CartNoteCartPreReorderPlugin;
14
use Spryker\Zed\CartNote\Communication\Plugin\CartReorder\CartNoteCartReorderItemHydratorPlugin;
15
use Spryker\Zed\CartReorder\CartReorderDependencyProvider as SprykerCartReorderDependencyProvider;
16
use Spryker\Zed\ConfigurableBundleNote\Communication\Plugin\CartReorder\ConfigurableBundleNoteCartReorderItemHydratorPlugin;
17
use Spryker\Zed\Currency\Communication\Plugin\CartReorder\CopyOrderCurrencyCartPreReorderPlugin;
18
use Spryker\Zed\PersistentCart\Communication\Plugin\CartReorder\ReplacePersistentCartReorderQuoteProviderStrategyPlugin;
19
use Spryker\Zed\PersistentCart\Communication\Plugin\CartReorder\UpdateQuoteCartPostReorderPlugin;
20
use Spryker\Zed\Price\Communication\Plugin\CartReorder\CopyOrderPriceModeCartPreReorderPlugin;
21
use Spryker\Zed\PriceProductSalesOrderAmendment\Communication\Plugin\CartReorder\OriginalSalesOrderItemPriceCartPreReorderPlugin;
22
use Spryker\Zed\ProductBundle\Communication\Plugin\CartReorder\OriginalOrderBundleItemCartPreReorderPlugin;
23
use Spryker\Zed\ProductBundle\Communication\Plugin\CartReorder\ProductBundleCartReorderOrderItemFilterPlugin;
24
use Spryker\Zed\ProductBundle\Communication\Plugin\CartReorder\ReplaceBundledItemsCartPreReorderPlugin;
25
use Spryker\Zed\ProductCartConnector\Communication\Plugin\CartReorder\RemoveInactiveItemsCartReorderPreAddToCartPlugin;
26
use Spryker\Zed\ProductList\Communication\Plugin\CartReorder\ProductListRestrictedItemsCartPreReorderPlugin;
27
use Spryker\Zed\ProductOption\Communication\Plugin\CartReorder\ProductOptionCartReorderItemHydratorPlugin;
28
use Spryker\Zed\ProductOptionCartConnector\Communication\Plugin\CartReorder\RemoveInactiveProductOptionItemsCartReorderPreAddToCartPlugin;
29
use Spryker\Zed\ProductQuantity\Communication\Plugin\CartReorder\MergeProductQuantityRestrictionItemsCartPreReorderPlugin;
30
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\CartReorder\ConfigurableBundleCartReorderItemHydratorPlugin;
31
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\CartReorder\ConfiguredBundleCartPostReorderPlugin;
32
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\CartReorder\MergeConfigurableBundleItemsCartPreReorderPlugin;
33
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\CartReorder\AmendmentOrderReferenceCartPreReorderPlugin;
34
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\CartReorder\AmendmentQuoteNameCartPreReorderPlugin;
35
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\CartReorder\OrderAmendmentCartReorderValidatorPlugin;
36
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\CartReorder\OrderAmendmentQuoteProcessFlowExpanderCartPreReorderPlugin;
37
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\CartReorder\OriginalSalesOrderItemCartPreReorderPlugin;
38
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\CartReorder\OriginalSalesOrderItemGroupKeyCartReorderItemHydratorPlugin;
39
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\CartReorder\IsAmendableOrderCartReorderRequestValidatorPlugin;
40
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\CartReorder\StartOrderAmendmentCartReorderPostCreatePlugin;
41
use Spryker\Zed\SalesProductConfiguration\Communication\Plugin\CartReorder\ProductConfigurationCartReorderItemHydratorPlugin;
42
use Spryker\Zed\Store\Communication\Plugin\CartReorder\CurrentStoreCartReorderValidatorPlugin;
43
44
class CartReorderDependencyProvider extends SprykerCartReorderDependencyProvider
45
{
46
    /**
47
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderRequestValidatorPluginInterface>
0 ignored issues
show
Bug introduced by
The type Pyz\Zed\CartReorder\list was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
48
     */
49
    protected function getCartReorderRequestValidatorPlugins(): array
50
    {
51
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...questValidatorPlugin()) returns the type array<integer,Spryker\Ze...RequestValidatorPlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
52
            new IsAmendableOrderCartReorderRequestValidatorPlugin(),
53
        ];
54
    }
55
56
    /**
57
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderQuoteProviderStrategyPluginInterface>
58
     */
59
    protected function getCartReorderQuoteProviderStrategyPlugins(): array
60
    {
61
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...oviderStrategyPlugin()) returns the type array<integer,Spryker\Ze...ProviderStrategyPlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
62
            new ReplacePersistentCartReorderQuoteProviderStrategyPlugin(),
63
        ];
64
    }
65
66
    /**
67
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderValidatorPluginInterface>
68
     */
69
    protected function getCartReorderValidatorPluginsForOrderAmendment(): array
70
    {
71
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...orderValidatorPlugin()) returns the type array<integer,Spryker\Ze...ReorderValidatorPlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
72
            new CurrentStoreCartReorderValidatorPlugin(),
73
            new OrderAmendmentCartReorderValidatorPlugin(),
74
        ];
75
    }
76
77
    /**
78
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartPreReorderPluginInterface>
79
     */
80
    protected function getCartPreReorderPlugins(): array
81
    {
82
        return [
83
            new CopyOrderCurrencyCartPreReorderPlugin(),
84
            new CopyOrderPriceModeCartPreReorderPlugin(),
85
            new ProductListRestrictedItemsCartPreReorderPlugin(),
86
            new OrderAmendmentQuoteProcessFlowExpanderCartPreReorderPlugin(),
87
            new AmendmentOrderReferenceCartPreReorderPlugin(),
88
            new AmendmentQuoteNameCartPreReorderPlugin(),
89
            new ReplaceBundledItemsCartPreReorderPlugin(),
90
            new MergeConfigurableBundleItemsCartPreReorderPlugin(),
91
            new CartNoteCartPreReorderPlugin(),
92
            new MergeProductQuantityRestrictionItemsCartPreReorderPlugin(),
93
            new OriginalSalesOrderItemPriceCartPreReorderPlugin(),
94
            new OriginalSalesOrderItemCartPreReorderPlugin(),
95
            new OriginalOrderBundleItemCartPreReorderPlugin(),
96
        ];
97
    }
98
99
    /**
100
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderPreAddToCartPluginInterface>
101
     */
102
    protected function getCartReorderPreAddToCartPluginsForOrderAmendment(): array
103
    {
104
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...erPreAddToCartPlugin()) returns the type array<integer,Spryker\Ze...rderPreAddToCartPlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
105
            new RemoveInactiveProductOptionItemsCartReorderPreAddToCartPlugin(),
106
        ];
107
    }
108
109
    /**
110
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderItemHydratorPluginInterface>
111
     */
112
    protected function getCartReorderItemHydratorPlugins(): array
113
    {
114
        return [
115
            new CartNoteCartReorderItemHydratorPlugin(),
116
            new ProductConfigurationCartReorderItemHydratorPlugin(),
117
            new ProductOptionCartReorderItemHydratorPlugin(),
118
            new ConfigurableBundleCartReorderItemHydratorPlugin(),
119
            new ConfigurableBundleNoteCartReorderItemHydratorPlugin(),
120
            new OriginalSalesOrderItemGroupKeyCartReorderItemHydratorPlugin(),
121
        ];
122
    }
123
124
    /**
125
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartPostReorderPluginInterface>
126
     */
127
    protected function getCartPostReorderPlugins(): array
128
    {
129
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...rderPostCreatePlugin()) returns the type array<integer,Spryker\Ze...eorderPostCreatePlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
130
            new UpdateQuoteCartPostReorderPlugin(),
131
            new ConfiguredBundleCartPostReorderPlugin(),
132
            new StartOrderAmendmentCartReorderPostCreatePlugin(),
133
        ];
134
    }
135
136
    /**
137
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderPreAddToCartPluginInterface>
138
     */
139
    protected function getCartReorderPreAddToCartPlugins(): array
140
    {
141
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...erPreAddToCartPlugin()) returns the type array<integer,Spryker\Ze...rderPreAddToCartPlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
142
            new RemoveUnavailableItemsCartReorderPreAddToCartPlugin(),
143
            new RemoveInactiveItemsCartReorderPreAddToCartPlugin(),
144
            new RemoveInactiveProductOptionItemsCartReorderPreAddToCartPlugin(),
145
        ];
146
    }
147
148
    /**
149
     * @return list<\Spryker\Zed\CartReorderExtension\Dependency\Plugin\CartReorderOrderItemFilterPluginInterface>
150
     */
151
    protected function getCartReorderOrderItemFilterPlugins(): array
152
    {
153
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...rderItemFilterPlugin()) returns the type array<integer,Spryker\Ze...rOrderItemFilterPlugin> which is incompatible with the documented return type Pyz\Zed\CartReorder\list.
Loading history...
154
            new ProductBundleCartReorderOrderItemFilterPlugin(),
155
        ];
156
    }
157
}
158