AttributeMapPreparationMap   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMap() 0 11 1
A getStrategy() 0 3 1
1
<?php
2
3
/**
4
 * Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map;
9
10
use SprykerMiddleware\Zed\Process\Business\Mapper\Map\AbstractMap;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...\Mapper\Map\AbstractMap 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...
11
use SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...Mapper\Map\MapInterface 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...
12
13
class AttributeMapPreparationMap extends AbstractMap
14
{
15
    /**
16
     * @return array
17
     */
18
    public function getMap(): array
19
    {
20
        return [
21
            'options' => function (array $value) {
22
                return [
23
                    'code' => $value['code'],
24
                    'type' => $value['type'],
25
                ];
26
            },
27
            'is_super' => 'code',
28
            'localizable' => 'localizable',
29
        ];
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getStrategy(): string
36
    {
37
        return MapInterface::MAPPER_STRATEGY_COPY_UNKNOWN;
38
    }
39
}
40