CartReorderRestApiDependencyProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 2
b 0
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRestCartReorderAttributesMapperPlugins() 0 4 1
A getCartReorderRequestExpanderPlugins() 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\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