Passed
Pull Request — master (#21)
by Volodymyr
08:08
created

getDefaultParentCategoryKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConstants;
12
13
class AkeneoPimMiddlewareConnectorConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getLocaleMapFilePath(): string
19
    {
20
        return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALE_MAP_FILE_PATH);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getAttributeMapFilePath(): string
27
    {
28
        return $this->get(AkeneoPimMiddlewareConnectorConstants::ATTRIBUTE_MAP_FILE_PATH);
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getSuperAttributeMapFilePath(): string
35
    {
36
        return $this->get(AkeneoPimMiddlewareConnectorConstants::SUPER_ATTRIBUTE_MAP_FILE_PATH);
37
    }
38
39
    /**
40
     * @return int
41
     */
42
    public function getFkCategoryTemplate(): int
43
    {
44
        return $this->get(AkeneoPimMiddlewareConnectorConstants::FK_CATEGORY_TEMPLATE);
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getTaxSet(): string
51
    {
52
        return $this->get(AkeneoPimMiddlewareConnectorConstants::TAX_SET);
53
    }
54
55
    /**
56
     * @return array
57
     */
58
    public function getLocalesForImport(): array
59
    {
60
        return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALES_FOR_IMPORT);
61
    }
62
63
    /**
64
     * @return array
65
     */
66
    public function getActiveStoresForProducts(): array
67
    {
68
        return $this->get(AkeneoPimMiddlewareConnectorConstants::ACTIVE_STORES_FOR_PRODUCTS);
69
    }
70
71
    /**
72
     * @return array
73
     */
74
    public function getLocaleToPriceMap(): array
75
    {
76
        return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALES_TO_PRICE_MAP);
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getDefaultParentCategoryKey() : string
83
    {
84
        return $this->get(AkeneoPimMiddlewareConnectorConstants::DEFAULT_PARENT_CATEGORY_KEY);
85
    }
86
}
87