createProductModelImportDictionary()   A
last analyzed

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
 * 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;
9
10
use Spryker\Zed\Kernel\Business\AbstractBusinessFactory;
0 ignored issues
show
Bug introduced by
The type Spryker\Zed\Kernel\Busin...AbstractBusinessFactory 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\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\LocaleMapper;
12
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\LocaleMapperInterface;
13
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map\AttributeMapImportMap;
14
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map\AttributeMapPreparationMap;
15
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map\CategoryImportMap;
16
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map\DefaultCategoryImportMap;
17
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map\ProductImportMap;
18
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\Map\ProductModelImportMap;
19
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\TaxSetMapper;
20
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\TaxSetMapperInterface;
21
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\AttributeMapDictionary;
22
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\CategoryImportDictionary;
23
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\DefaultCategoryImportDictionary;
24
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\DefaultProductImportDictionary;
25
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\DefaultProductModelImportDictionary;
26
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\ProductImportDictionary;
27
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Translator\Dictionary\ProductModelImportDictionary;
28
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Validator\ValidationRuleSet\ProductImportValidationRuleSet;
29
use SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Validator\ValidationRuleSet\ProductModelImportValidationRuleSet;
30
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...
31
use SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...ary\DictionaryInterface 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...
32
use SprykerMiddleware\Zed\Process\Business\Validator\ValidationRuleSet\ValidationRuleSetInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...idationRuleSetInterface 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...
33
34
/**
35
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConfig getConfig()
36
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Persistence\AkeneoPimMiddlewareConnectorQueryContainerInterface getQueryContainer()
37
 */
38
class AkeneoPimMiddlewareConnectorBusinessFactory extends AbstractBusinessFactory
39
{
40
    /**
41
     * @return \SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface
42
     */
43
    public function createProductImportMap(): MapInterface
44
    {
45
        return new ProductImportMap($this->getConfig());
46
    }
47
48
    /**
49
     * @return \SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface
50
     */
51
    public function createProductModelImportMap(): MapInterface
52
    {
53
        return new ProductModelImportMap($this->getConfig());
54
    }
55
56
    /**
57
     * @return \SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface
58
     */
59
    public function createCategoryImportMap(): MapInterface
60
    {
61
        return new CategoryImportMap();
62
    }
63
64
    /**
65
     * @return \SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface
66
     */
67
    public function createAttributeMapImportMap(): MapInterface
68
    {
69
        return new AttributeMapImportMap();
70
    }
71
72
    /**
73
     * @return \SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface
74
     */
75
    public function createAttributeMapPreparationMap(): MapInterface
76
    {
77
        return new AttributeMapPreparationMap();
78
    }
79
80
    /**
81
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
82
     */
83
    public function createProductModelImportDictionary(): DictionaryInterface
84
    {
85
        return new ProductModelImportDictionary($this->getConfig());
86
    }
87
88
    /**
89
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
90
     */
91
    public function createProductImportDictionary(): DictionaryInterface
92
    {
93
        return new ProductImportDictionary($this->getConfig());
94
    }
95
96
    /**
97
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
98
     */
99
    public function createCategoryImportDictionary(): DictionaryInterface
100
    {
101
        return new CategoryImportDictionary($this->getConfig());
102
    }
103
104
    /**
105
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
106
     */
107
    public function createAttributeMapDictionary(): DictionaryInterface
108
    {
109
        return new AttributeMapDictionary($this->getConfig());
110
    }
111
112
    /**
113
     * @return \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\LocaleMapperInterface
114
     */
115
    public function createLocaleMapper(): LocaleMapperInterface
116
    {
117
        return new LocaleMapper();
118
    }
119
120
    /**
121
     * @return \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\Mapper\TaxSetMapperInterface
122
     */
123
    public function createTaxSetMapper(): TaxSetMapperInterface
124
    {
125
        return new TaxSetMapper();
126
    }
127
128
    /**
129
     * @return \SprykerMiddleware\Zed\Process\Business\Mapper\Map\MapInterface
130
     */
131
    public function createDefaultCategoryImportMap(): MapInterface
132
    {
133
        return new DefaultCategoryImportMap();
134
    }
135
136
    /**
137
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
138
     */
139
    public function createDefaultProductModelImportDictionary(): DictionaryInterface
140
    {
141
        return new DefaultProductModelImportDictionary($this->getConfig());
142
    }
143
144
    /**
145
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
146
     */
147
    public function createDefaultProductImportDictionary(): DictionaryInterface
148
    {
149
        return new DefaultProductImportDictionary($this->getConfig());
150
    }
151
152
    /**
153
     * @return \SprykerMiddleware\Zed\Process\Business\Translator\Dictionary\DictionaryInterface
154
     */
155
    public function createDefaultCategoryImportDictionary(): DictionaryInterface
156
    {
157
        return new DefaultCategoryImportDictionary($this->getConfig());
158
    }
159
160
    /**
161
     * @return \SprykerMiddleware\Zed\Process\Business\Validator\ValidationRuleSet\ValidationRuleSetInterface
162
     */
163
    public function createProductModelImportValidationRuleSet(): ValidationRuleSetInterface
164
    {
165
        return new ProductModelImportValidationRuleSet();
166
    }
167
168
    /**
169
     * @return \SprykerMiddleware\Zed\Process\Business\Validator\ValidationRuleSet\ValidationRuleSetInterface
170
     */
171
    public function createProductImportValidationRuleSet(): ValidationRuleSetInterface
172
    {
173
        return new ProductImportValidationRuleSet($this->getConfig());
174
    }
175
}
176