AkeneoPimMiddlewareConnectorConfig   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Importance

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

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getSuperAttributeMapFilePath() 0 3 1
A getFkCategoryTemplate() 0 3 1
A getActiveStoresForProducts() 0 3 1
A getTaxSet() 0 3 1
A getLocaleToPriceMap() 0 3 1
A getLocaleMapFilePath() 0 3 1
A getAttributeMapFilePath() 0 3 1
A getLocalesForImport() 0 3 1
A getDefaultParentCategoryKey() 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;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
0 ignored issues
show
Bug introduced by
The type Spryker\Zed\Kernel\AbstractBundleConfig 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 SprykerEco\Shared\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConstants;
12
13
class AkeneoPimMiddlewareConnectorConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @api
17
     *
18
     * @return string
19
     */
20
    public function getLocaleMapFilePath(): string
21
    {
22
        return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALE_MAP_FILE_PATH);
23
    }
24
25
    /**
26
     * @api
27
     *
28
     * @return string
29
     */
30
    public function getAttributeMapFilePath(): string
31
    {
32
        return $this->get(AkeneoPimMiddlewareConnectorConstants::ATTRIBUTE_MAP_FILE_PATH);
33
    }
34
35
    /**
36
     * @api
37
     *
38
     * @return string
39
     */
40
    public function getSuperAttributeMapFilePath(): string
41
    {
42
        return $this->get(AkeneoPimMiddlewareConnectorConstants::SUPER_ATTRIBUTE_MAP_FILE_PATH);
43
    }
44
45
    /**
46
     * @api
47
     *
48
     * @return int
49
     */
50
    public function getFkCategoryTemplate(): int
51
    {
52
        return $this->get(AkeneoPimMiddlewareConnectorConstants::FK_CATEGORY_TEMPLATE);
53
    }
54
55
    /**
56
     * @api
57
     *
58
     * @return string
59
     */
60
    public function getTaxSet(): string
61
    {
62
        return $this->get(AkeneoPimMiddlewareConnectorConstants::TAX_SET);
63
    }
64
65
    /**
66
     * @api
67
     *
68
     * @return array
69
     */
70
    public function getLocalesForImport(): array
71
    {
72
        return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALES_FOR_IMPORT);
73
    }
74
75
    /**
76
     * @api
77
     *
78
     * @return array
79
     */
80
    public function getActiveStoresForProducts(): array
81
    {
82
        return $this->get(AkeneoPimMiddlewareConnectorConstants::ACTIVE_STORES_FOR_PRODUCTS);
83
    }
84
85
    /**
86
     * @api
87
     *
88
     * @return array
89
     */
90
    public function getLocaleToPriceMap(): array
91
    {
92
        return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALES_TO_PRICE_MAP);
93
    }
94
95
    /**
96
     * @api
97
     *
98
     * @return string
99
     */
100
    public function getDefaultParentCategoryKey(): string
101
    {
102
        return $this->get(AkeneoPimMiddlewareConnectorConstants::DEFAULT_PARENT_CATEGORY_KEY, 'demoshop');
103
    }
104
}
105