getRestCartReorderAttributesMapperPlugins()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 2
b 0
f 0
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\Glue\CartReorderRestApi;
11
12
use Spryker\Glue\CartReorderRestApi\CartReorderRestApiDependencyProvider as SprykerCartReorderRestApiDependencyProvider;
13
use Spryker\Glue\CompaniesRestApi\Plugin\CartReorderRestApi\CompanyUserCompanyCartReorderRequestExpanderPlugin;
14
use Spryker\Glue\CompanyBusinessUnitsRestApi\Plugin\CartReorderRestApi\CompanyUserCompanyBusinessUnitCartReorderRequestExpanderPlugin;
15
use Spryker\Glue\OrderAmendmentsRestApi\Plugin\CartReorderRestApi\OrderAmendmentRestCartReorderAttributesMapperPlugin;
16
17
class CartReorderRestApiDependencyProvider extends SprykerCartReorderRestApiDependencyProvider
18
{
19
    /**
20
     * @return list<\Spryker\Glue\CartReorderRestApiExtension\Dependency\Plugin\RestCartReorderAttributesMapperPluginInterface>
21
     */
22
    protected function getRestCartReorderAttributesMapperPlugins(): array
23
    {
24
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...tributesMapperPlugin()) returns the type array<integer,Spryker\Gl...AttributesMapperPlugin> which is incompatible with the documented return type Pyz\Glue\CartReorderRestApi\list.
Loading history...
25
            new OrderAmendmentRestCartReorderAttributesMapperPlugin(),
26
        ];
27
    }
28
29
    /**
30
     * @return list<\Spryker\Glue\CartReorderRestApiExtension\Dependency\Plugin\CartReorderRequestExpanderPluginInterface>
31
     */
32
    protected function getCartReorderRequestExpanderPlugins(): array
33
    {
34
        return [
0 ignored issues
show
Bug Best Practice introduced by
The expression return array(new Spryker...equestExpanderPlugin()) returns the type array<integer,Spryker\Gl...rRequestExpanderPlugin> which is incompatible with the documented return type Pyz\Glue\CartReorderRestApi\list.
Loading history...
35
            new CompanyUserCompanyCartReorderRequestExpanderPlugin(),
36
            new CompanyUserCompanyBusinessUnitCartReorderRequestExpanderPlugin(),
37
        ];
38
    }
39
}
40