Passed
Pull Request — master (#664)
by Ilya
13:28 queued 07:25
created

getItemPreTransformerPlugins()   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
declare(strict_types = 1);
9
10
namespace Pyz\Zed\Sales;
11
12
use Spryker\Zed\CommentSalesConnector\Communication\Plugin\Sales\CommentThreadAttachedCommentOrderPostSavePlugin;
13
use Spryker\Zed\CommentSalesConnector\Communication\Plugin\Sales\CommentThreadOrderExpanderPlugin;
14
use Spryker\Zed\CommentSalesConnector\Communication\Plugin\Sales\SaveOrderCommentThreadOrderPostSavePlugin;
15
use Spryker\Zed\CompanyBusinessUnitSalesConnector\Communication\Plugin\Sales\CompanyBusinessUnitCustomerFilterOrderSearchQueryExpanderPlugin;
16
use Spryker\Zed\CompanyBusinessUnitSalesConnector\Communication\Plugin\Sales\CompanyBusinessUnitCustomerOrderAccessCheckPlugin;
17
use Spryker\Zed\CompanyBusinessUnitSalesConnector\Communication\Plugin\Sales\CompanyBusinessUnitCustomerSortingOrderSearchQueryExpanderPlugin;
18
use Spryker\Zed\CompanyBusinessUnitSalesConnector\Communication\Plugin\Sales\CompanyBusinessUnitFilterOrderSearchQueryExpanderPlugin;
19
use Spryker\Zed\CompanyBusinessUnitSalesConnector\Communication\Plugin\Sales\SaveCompanyBusinessUnitUuidOrderPostSavePlugin;
20
use Spryker\Zed\CompanySalesConnector\Communication\Plugin\Sales\CompanyCustomerFilterOrderSearchQueryExpanderPlugin;
21
use Spryker\Zed\CompanySalesConnector\Communication\Plugin\Sales\CompanyCustomerOrderAccessCheckPlugin;
22
use Spryker\Zed\CompanySalesConnector\Communication\Plugin\Sales\CompanyCustomerSortingOrderSearchQueryExpanderPlugin;
23
use Spryker\Zed\CompanySalesConnector\Communication\Plugin\Sales\CompanyFilterOrderSearchQueryExpanderPlugin;
24
use Spryker\Zed\CompanySalesConnector\Communication\Plugin\Sales\SaveCompanyUuidOrderPostSavePlugin;
25
use Spryker\Zed\Currency\Communication\Plugin\Sales\CurrencyOrderExpanderPlugin;
26
use Spryker\Zed\Customer\Communication\Plugin\Sales\CustomerOrderHydratePlugin;
27
use Spryker\Zed\Discount\Communication\Plugin\Sales\DiscountOrderHydratePlugin;
28
use Spryker\Zed\Discount\Communication\Plugin\Sales\DiscountSalesOrderItemCollectionPreDeletePlugin;
29
use Spryker\Zed\Discount\Communication\Plugin\Sales\SalesDiscountSalesExpensePreDeletePlugin;
30
use Spryker\Zed\MerchantOmsGui\Communication\Plugin\Sales\MerchantOmsStateOrderItemsTableExpanderPlugin;
31
use Spryker\Zed\MerchantProfile\Communication\Plugin\Sales\MerchantDataOrderHydratePlugin;
32
use Spryker\Zed\MerchantSalesOrder\Communication\Plugin\Sales\MerchantOrderDataOrderExpanderPlugin;
33
use Spryker\Zed\MerchantSalesOrder\Communication\Plugin\Sales\MerchantReferenceOrderItemExpanderPreSavePlugin;
34
use Spryker\Zed\MerchantSalesOrder\Communication\Plugin\Sales\MerchantReferencesOrderExpanderPlugin;
35
use Spryker\Zed\Nopayment\Communication\Plugin\Sales\NopaymentSalesOrderItemCollectionPreDeletePlugin;
36
use Spryker\Zed\Oms\Communication\Plugin\Sales\DefaultOrderItemInitialStateProviderPlugin;
37
use Spryker\Zed\Oms\Communication\Plugin\Sales\IsCancellableOrderExpanderPlugin;
38
use Spryker\Zed\Oms\Communication\Plugin\Sales\IsCancellableSearchOrderExpanderPlugin;
39
use Spryker\Zed\Oms\Communication\Plugin\Sales\ItemStateOrderItemExpanderPlugin;
40
use Spryker\Zed\Oms\Communication\Plugin\Sales\OmsItemHistorySalesOrderItemCollectionPreDeletePlugin;
41
use Spryker\Zed\Oms\Communication\Plugin\Sales\OmsStatesOrderExpanderPlugin;
42
use Spryker\Zed\Oms\Communication\Plugin\Sales\OrderAggregatedItemStateSearchOrderExpanderPlugin;
43
use Spryker\Zed\Oms\Communication\Plugin\Sales\StateHistoryOrderItemExpanderPlugin;
44
use Spryker\Zed\OmsMultiThread\Communication\Plugin\Sales\OmsMultiThreadProcessorIdentifierOrderExpanderPreSavePlugin;
45
use Spryker\Zed\OrderCustomReference\Communication\Plugin\Sales\OrderCustomReferenceOrderPostSavePlugin;
46
use Spryker\Zed\OrderCustomReference\Communication\Plugin\Sales\UpdateOrderCustomReferenceOrderPostSavePlugin;
47
use Spryker\Zed\ProductBundle\Communication\Plugin\Sales\ProductBundleIdHydratorPlugin;
48
use Spryker\Zed\ProductBundle\Communication\Plugin\Sales\ProductBundleOptionItemExpanderPlugin;
49
use Spryker\Zed\ProductBundle\Communication\Plugin\Sales\ProductBundleOptionOrderExpanderPlugin;
50
use Spryker\Zed\ProductBundle\Communication\Plugin\Sales\ProductBundleOrderHydratePlugin;
51
use Spryker\Zed\ProductBundle\Communication\Plugin\Sales\ProductBundleOrderItemExpanderPlugin;
52
use Spryker\Zed\ProductBundle\Communication\Plugin\Sales\UniqueOrderBundleItemsExpanderPlugin;
53
use Spryker\Zed\ProductMeasurementUnit\Communication\Plugin\Sales\QuantitySalesUnitOrderItemExpanderPlugin;
54
use Spryker\Zed\ProductMeasurementUnit\Communication\Plugin\SalesExtension\QuantitySalesUnitOrderItemExpanderPreSavePlugin;
55
use Spryker\Zed\ProductOfferSales\Communication\Plugin\Sales\ProductOfferReferenceOrderItemExpanderPreSavePlugin;
56
use Spryker\Zed\ProductOption\Communication\Plugin\Sales\ProductOptionGroupIdHydratorPlugin;
57
use Spryker\Zed\ProductOption\Communication\Plugin\Sales\ProductOptionOrderItemsPostSavePlugin;
58
use Spryker\Zed\ProductOption\Communication\Plugin\Sales\ProductOptionSalesOrderItemCollectionPostUpdatePlugin;
59
use Spryker\Zed\ProductOption\Communication\Plugin\Sales\ProductOptionSalesOrderItemCollectionPreDeletePlugin;
60
use Spryker\Zed\ProductOption\Communication\Plugin\Sales\ProductOptionsOrderItemExpanderPlugin;
61
use Spryker\Zed\ProductPackagingUnit\Communication\Plugin\Checkout\PackagingUnitSplittableItemTransformerStrategyPlugin;
62
use Spryker\Zed\ProductPackagingUnit\Communication\Plugin\Sales\AmountLeadProductOrderItemExpanderPlugin;
63
use Spryker\Zed\ProductPackagingUnit\Communication\Plugin\Sales\AmountSalesUnitOrderItemExpanderPlugin;
64
use Spryker\Zed\ProductPackagingUnit\Communication\Plugin\SalesExtension\AmountSalesUnitOrderItemExpanderPreSavePlugin;
65
use Spryker\Zed\ProductPackagingUnit\Communication\Plugin\SalesExtension\ProductPackagingUnitOrderItemExpanderPreSavePlugin;
66
use Spryker\Zed\Sales\Communication\Plugin\Sales\CurrencyIsoCodeOrderItemExpanderPlugin;
67
use Spryker\Zed\Sales\SalesDependencyProvider as SprykerSalesDependencyProvider;
68
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\Sales\ConfiguredBundleItemPreTransformerPlugin;
69
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\Sales\ConfiguredBundleOrderItemExpanderPlugin;
70
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\Sales\ConfiguredBundlesOrderItemsPostSavePlugin;
71
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\Sales\SalesConfigurableBundleSalesOrderItemCollectionPreDeletePlugin;
72
use Spryker\Zed\SalesConfigurableBundle\Communication\Plugin\Sales\SalesConfiguredBundlesSalesOrderItemCollectionPostUpdatePlugin;
73
use Spryker\Zed\SalesMerchantCommission\Communication\Plugin\Sales\MerchantCommissionOrderPostCancelPlugin;
74
use Spryker\Zed\SalesOms\Communication\Plugin\OrderItemReferenceExpanderPreSavePlugin;
75
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Sales\CreateSalesOrderAmendmentOrderPostSavePlugin;
76
use Spryker\Zed\SalesOrderAmendment\Communication\Plugin\Sales\SalesOrderAmendmentOrderExpanderPlugin;
77
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Sales\IsAmendableOrderExpanderPlugin;
78
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Sales\IsAmendableOrderSearchOrderExpanderPlugin;
79
use Spryker\Zed\SalesOrderAmendmentOms\Communication\Plugin\Sales\OrderAmendmentDefaultOrderItemInitialStateProviderPlugin;
80
use Spryker\Zed\SalesPayment\Communication\Plugin\Sales\SalesPaymentOrderExpanderPlugin;
81
use Spryker\Zed\SalesProductConfiguration\Communication\Plugin\Sales\ProductConfigurationOrderItemExpanderPlugin;
82
use Spryker\Zed\SalesProductConfiguration\Communication\Plugin\Sales\ProductConfigurationOrderItemsPostSavePlugin;
83
use Spryker\Zed\SalesProductConfiguration\Communication\Plugin\Sales\SalesProductConfigurationSalesOrderItemCollectionPostUpdatePlugin;
84
use Spryker\Zed\SalesProductConfiguration\Communication\Plugin\Sales\SalesProductConfigurationSalesOrderItemCollectionPreDeletePlugin;
85
use Spryker\Zed\SalesProductConnector\Communication\Plugin\Sales\ItemMetadataOrderItemsPostSavePlugin;
86
use Spryker\Zed\SalesProductConnector\Communication\Plugin\Sales\ItemMetadataSalesOrderItemCollectionPostUpdatePlugin;
87
use Spryker\Zed\SalesProductConnector\Communication\Plugin\Sales\ItemMetadataSalesOrderItemCollectionPreDeletePlugin;
88
use Spryker\Zed\SalesProductConnector\Communication\Plugin\Sales\ItemMetadataSearchOrderExpanderPlugin;
89
use Spryker\Zed\SalesProductConnector\Communication\Plugin\Sales\MetadataOrderItemExpanderPlugin;
90
use Spryker\Zed\SalesProductConnector\Communication\Plugin\Sales\ProductIdOrderItemExpanderPlugin;
91
use Spryker\Zed\SalesQuantity\Communication\Plugin\SalesExtension\IsQuantitySplittableOrderItemExpanderPreSavePlugin;
92
use Spryker\Zed\SalesQuantity\Communication\Plugin\SalesExtension\NonSplittableItemTransformerStrategyPlugin;
93
use Spryker\Zed\SalesQuoteRequestConnector\Communication\Plugin\Sales\QuoteRequestVersionReferenceOrderPostSavePlugin;
94
use Spryker\Zed\SalesReclamation\Communication\Plugin\Sales\SalesReclamationSalesOrderItemCollectionPreDeletePlugin;
95
use Spryker\Zed\SalesReclamationGui\Communication\Plugin\Sales\ReclamationSalesTablePlugin;
96
use Spryker\Zed\SalesReturn\Communication\Plugin\Sales\RemunerationTotalOrderExpanderPlugin;
97
use Spryker\Zed\SalesReturn\Communication\Plugin\Sales\UpdateOrderItemIsReturnableByGlobalReturnableNumberOfDaysPlugin;
98
use Spryker\Zed\SalesReturn\Communication\Plugin\Sales\UpdateOrderItemIsReturnableByItemStatePlugin;
99
use Spryker\Zed\Shipment\Communication\Plugin\ShipmentOrderHydratePlugin;
100
101
class SalesDependencyProvider extends SprykerSalesDependencyProvider
102
{
103
    /**
104
     * @return array<\Spryker\Zed\Sales\Dependency\Plugin\OrderExpanderPreSavePluginInterface>
105
     */
106
    protected function getOrderExpanderPreSavePlugins(): array
107
    {
108
        return [
109
            new OmsMultiThreadProcessorIdentifierOrderExpanderPreSavePlugin(),
110
        ];
111
    }
112
113
    /**
114
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderExpanderPluginInterface>
115
     */
116
    protected function getOrderHydrationPlugins(): array
117
    {
118
        return [
119
            new ProductBundleOrderHydratePlugin(),
120
            new DiscountOrderHydratePlugin(),
121
            new ShipmentOrderHydratePlugin(),
122
            new SalesPaymentOrderExpanderPlugin(),
123
            new CustomerOrderHydratePlugin(),
124
            new ProductBundleIdHydratorPlugin(),
125
            new ProductOptionGroupIdHydratorPlugin(),
126
            new CommentThreadOrderExpanderPlugin(),
127
            new ProductBundleOptionOrderExpanderPlugin(),
128
            new RemunerationTotalOrderExpanderPlugin(),
129
            new OmsStatesOrderExpanderPlugin(),
130
            new IsCancellableOrderExpanderPlugin(),
131
            new CurrencyOrderExpanderPlugin(),
132
            new MerchantOrderDataOrderExpanderPlugin(),
133
            new MerchantReferencesOrderExpanderPlugin(),
134
            new MerchantDataOrderHydratePlugin(),
135
            new SalesOrderAmendmentOrderExpanderPlugin(),
136
            new IsAmendableOrderExpanderPlugin(),
137
        ];
138
    }
139
140
    /**
141
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemExpanderPreSavePluginInterface>
142
     */
143
    protected function getOrderItemExpanderPreSavePlugins(): array
144
    {
145
        return [
146
            new QuantitySalesUnitOrderItemExpanderPreSavePlugin(),
147
            new ProductPackagingUnitOrderItemExpanderPreSavePlugin(),
148
            new AmountSalesUnitOrderItemExpanderPreSavePlugin(),
149
            new IsQuantitySplittableOrderItemExpanderPreSavePlugin(),
150
            new OrderItemReferenceExpanderPreSavePlugin(),
151
            new MerchantReferenceOrderItemExpanderPreSavePlugin(),
152
            new ProductOfferReferenceOrderItemExpanderPreSavePlugin(),
153
        ];
154
    }
155
156
    /**
157
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\ItemTransformerStrategyPluginInterface>
158
     */
159
    public function getItemTransformerStrategyPlugins(): array
160
    {
161
        return [
162
            new PackagingUnitSplittableItemTransformerStrategyPlugin(), #ProductPackagingUnit
163
            new NonSplittableItemTransformerStrategyPlugin(),
164
        ];
165
    }
166
167
    /**
168
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\SalesTablePluginInterface>
169
     */
170
    protected function getSalesTablePlugins(): array
171
    {
172
        return [
173
            new ReclamationSalesTablePlugin(),
174
        ];
175
    }
176
177
    /**
178
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderPostSavePluginInterface>
179
     */
180
    protected function getOrderPostSavePlugins(): array
181
    {
182
        return [
183
            new CommentThreadAttachedCommentOrderPostSavePlugin(),
184
            new OrderCustomReferenceOrderPostSavePlugin(),
185
            new SaveCompanyBusinessUnitUuidOrderPostSavePlugin(),
186
            new SaveCompanyUuidOrderPostSavePlugin(),
187
            new QuoteRequestVersionReferenceOrderPostSavePlugin(),
188
        ];
189
    }
190
191
    /**
192
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderPostSavePluginInterface>
193
     */
194
    protected function getOrderPostSavePluginsForOrderAmendment(): array
195
    {
196
        return [
197
            new SaveOrderCommentThreadOrderPostSavePlugin(),
198
            new UpdateOrderCustomReferenceOrderPostSavePlugin(),
199
            new SaveCompanyBusinessUnitUuidOrderPostSavePlugin(),
200
            new SaveCompanyUuidOrderPostSavePlugin(),
201
            new CreateSalesOrderAmendmentOrderPostSavePlugin(),
202
        ];
203
    }
204
205
    /**
206
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\ItemPreTransformerPluginInterface>
207
     */
208
    protected function getItemPreTransformerPlugins(): array
209
    {
210
        return [
211
            new ConfiguredBundleItemPreTransformerPlugin(),
212
        ];
213
    }
214
215
    /**
216
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\UniqueOrderItemsExpanderPluginInterface>
217
     */
218
    protected function getUniqueOrderItemsExpanderPlugins(): array
219
    {
220
        return [
221
            new UniqueOrderBundleItemsExpanderPlugin(),
222
        ];
223
    }
224
225
    /**
226
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemExpanderPluginInterface>
227
     */
228
    protected function getOrderItemExpanderPlugins(): array
229
    {
230
        return [
231
            new StateHistoryOrderItemExpanderPlugin(),
232
            new ProductIdOrderItemExpanderPlugin(),
233
            new ProductOptionsOrderItemExpanderPlugin(),
234
            new MetadataOrderItemExpanderPlugin(),
235
            new UpdateOrderItemIsReturnableByItemStatePlugin(),
236
            new UpdateOrderItemIsReturnableByGlobalReturnableNumberOfDaysPlugin(),
237
            new CurrencyIsoCodeOrderItemExpanderPlugin(),
238
            new ConfiguredBundleOrderItemExpanderPlugin(),
239
            new ProductBundleOrderItemExpanderPlugin(),
240
            new ProductBundleOptionItemExpanderPlugin(),
241
            new QuantitySalesUnitOrderItemExpanderPlugin(),
242
            new AmountLeadProductOrderItemExpanderPlugin(),
243
            new AmountSalesUnitOrderItemExpanderPlugin(),
244
            new ItemStateOrderItemExpanderPlugin(),
245
            new ProductConfigurationOrderItemExpanderPlugin(),
246
        ];
247
    }
248
249
    /**
250
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\SearchOrderExpanderPluginInterface>
251
     */
252
    protected function getSearchOrderExpanderPlugins(): array
253
    {
254
        return [
255
            new ItemMetadataSearchOrderExpanderPlugin(),
256
            new OrderAggregatedItemStateSearchOrderExpanderPlugin(),
257
            new IsCancellableSearchOrderExpanderPlugin(),
258
            new IsAmendableOrderSearchOrderExpanderPlugin(),
259
        ];
260
    }
261
262
    /**
263
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\SearchOrderQueryExpanderPluginInterface>
264
     */
265
    protected function getOrderSearchQueryExpanderPlugins(): array
266
    {
267
        return [
268
            new CompanyBusinessUnitFilterOrderSearchQueryExpanderPlugin(),
269
            new CompanyFilterOrderSearchQueryExpanderPlugin(),
270
            new CompanyBusinessUnitCustomerFilterOrderSearchQueryExpanderPlugin(),
271
            new CompanyBusinessUnitCustomerSortingOrderSearchQueryExpanderPlugin(),
272
            new CompanyCustomerFilterOrderSearchQueryExpanderPlugin(),
273
            new CompanyCustomerSortingOrderSearchQueryExpanderPlugin(),
274
        ];
275
    }
276
277
    /**
278
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\CustomerOrderAccessCheckPluginInterface>
279
     */
280
    protected function getCustomerOrderAccessCheckPlugins(): array
281
    {
282
        return [
283
            new CompanyBusinessUnitCustomerOrderAccessCheckPlugin(),
284
            new CompanyCustomerOrderAccessCheckPlugin(),
285
        ];
286
    }
287
288
    /**
289
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemsTableExpanderPluginInterface>
290
     */
291
    protected function getOrderItemsTableExpanderPlugins(): array
292
    {
293
        return [
294
            new MerchantOmsStateOrderItemsTableExpanderPlugin(),
295
        ];
296
    }
297
298
    /**
299
     * @return array<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemsPostSavePluginInterface>
300
     */
301
    protected function getOrderItemsPostSavePlugins(): array
302
    {
303
        return [
304
            new ConfiguredBundlesOrderItemsPostSavePlugin(),
305
            new ItemMetadataOrderItemsPostSavePlugin(),
306
            new ProductConfigurationOrderItemsPostSavePlugin(),
307
            new ProductOptionOrderItemsPostSavePlugin(),
308
        ];
309
    }
310
311
    /**
312
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderPostCancelPluginInterface>
313
     */
314
    protected function getOrderPostCancelPlugins(): array
315
    {
316
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...rderPostCancelPlugin()) returns the type array<integer,Spryker\Ze...nOrderPostCancelPlugin> which is incompatible with the documented return type Pyz\Zed\Sales\list.
Loading history...
317
            new MerchantCommissionOrderPostCancelPlugin(),
318
        ];
319
    }
320
321
    /**
322
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\SalesExpensePreDeletePluginInterface>
323
     */
324
    protected function getSalesExpensePreDeletePlugins(): array
325
    {
326
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...pensePreDeletePlugin()) returns the type array<integer,Spryker\Ze...ExpensePreDeletePlugin> which is incompatible with the documented return type Pyz\Zed\Sales\list.
Loading history...
327
            new SalesDiscountSalesExpensePreDeletePlugin(),
328
        ];
329
    }
330
331
    /**
332
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\SalesOrderItemCollectionPreDeletePluginInterface>
333
     */
334
    protected function getSalesOrderItemCollectionPreDeletePlugins(): array
335
    {
336
        return [
337
            new DiscountSalesOrderItemCollectionPreDeletePlugin(),
338
            new ItemMetadataSalesOrderItemCollectionPreDeletePlugin(),
339
            new OmsItemHistorySalesOrderItemCollectionPreDeletePlugin(),
340
            new ProductOptionSalesOrderItemCollectionPreDeletePlugin(),
341
            new SalesConfigurableBundleSalesOrderItemCollectionPreDeletePlugin(),
342
            new SalesProductConfigurationSalesOrderItemCollectionPreDeletePlugin(),
343
            new NopaymentSalesOrderItemCollectionPreDeletePlugin(),
344
            new SalesReclamationSalesOrderItemCollectionPreDeletePlugin(),
345
        ];
346
    }
347
348
    /**
349
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\SalesOrderItemCollectionPostUpdatePluginInterface>
350
     */
351
    protected function getOrderItemCollectionPostUpdatePlugins(): array
352
    {
353
        return [
354
            new SalesConfiguredBundlesSalesOrderItemCollectionPostUpdatePlugin(),
355
            new SalesProductConfigurationSalesOrderItemCollectionPostUpdatePlugin(),
356
            new ItemMetadataSalesOrderItemCollectionPostUpdatePlugin(),
357
            new ProductOptionSalesOrderItemCollectionPostUpdatePlugin(),
358
        ];
359
    }
360
361
    /**
362
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemInitialStateProviderPluginInterface>
363
     */
364
    protected function getOrderItemInitialStateProviderPlugins(): array
365
    {
366
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...lStateProviderPlugin()) returns the type array<integer,Spryker\Ze...ialStateProviderPlugin> which is incompatible with the documented return type Pyz\Zed\Sales\list.
Loading history...
367
            new DefaultOrderItemInitialStateProviderPlugin(),
368
        ];
369
    }
370
371
    /**
372
     * @return list<\Spryker\Zed\SalesExtension\Dependency\Plugin\OrderItemInitialStateProviderPluginInterface>
373
     */
374
    protected function getOrderItemInitialStateProviderPluginsForOrderAmendment(): array
375
    {
376
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...lStateProviderPlugin()) returns the type array<integer,Spryker\Ze...ialStateProviderPlugin> which is incompatible with the documented return type Pyz\Zed\Sales\list.
Loading history...
377
            new OrderAmendmentDefaultOrderItemInitialStateProviderPlugin(),
378
        ];
379
    }
380
}
381