|
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\Zed\DataImport\Business; |
|
11
|
|
|
|
|
12
|
|
|
use Spryker\Zed\DataImport\Business\DataImportFacade as SprykerDataImportFacade; |
|
13
|
|
|
use Spryker\Zed\DataImport\Business\Model\DataSet\DataSetInterface; |
|
14
|
|
|
|
|
15
|
|
|
/** |
|
16
|
|
|
* @method \Pyz\Zed\DataImport\Business\DataImportBusinessFactory getFactory() |
|
17
|
|
|
*/ |
|
18
|
|
|
class DataImportFacade extends SprykerDataImportFacade implements DataImportFacadeInterface |
|
19
|
|
|
{ |
|
20
|
|
|
public function writeProductAbstractDataSet(DataSetInterface $dataSet): void |
|
21
|
|
|
{ |
|
22
|
|
|
$this->getFactory()->createProductAbstractPropelWriter()->write($dataSet); |
|
23
|
|
|
} |
|
24
|
|
|
|
|
25
|
|
|
public function flushProductAbstractDataImporter(): void |
|
26
|
|
|
{ |
|
27
|
|
|
$this->getFactory()->createProductAbstractPropelWriter()->flush(); |
|
28
|
|
|
} |
|
29
|
|
|
|
|
30
|
|
|
public function writeProductConcreteDataSet(DataSetInterface $dataSet): void |
|
31
|
|
|
{ |
|
32
|
|
|
$this->getFactory()->createProductConcretePropelWriter()->write($dataSet); |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
public function flushProductConcreteDataImporter(): void |
|
36
|
|
|
{ |
|
37
|
|
|
$this->getFactory()->createProductConcretePropelWriter()->flush(); |
|
38
|
|
|
} |
|
39
|
|
|
|
|
40
|
|
|
public function writeProductImageDataSet(DataSetInterface $dataSet): void |
|
41
|
|
|
{ |
|
42
|
|
|
$this->getFactory()->createProductImagePropelWriter()->write($dataSet); |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
public function flushProductImageDataImporter(): void |
|
46
|
|
|
{ |
|
47
|
|
|
$this->getFactory()->createProductImagePropelWriter()->flush(); |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
public function writeProductStockDataSet(DataSetInterface $dataSet): void |
|
51
|
|
|
{ |
|
52
|
|
|
$this->getFactory()->createProductStockPropelWriter()->write($dataSet); |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
public function flushProductStockDataImporter(): void |
|
56
|
|
|
{ |
|
57
|
|
|
$this->getFactory()->createProductStockPropelWriter()->flush(); |
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
public function writeProductAbstractStoreDataSet(DataSetInterface $dataSet): void |
|
61
|
|
|
{ |
|
62
|
|
|
$this->getFactory()->createProductAbstractStorePropelWriter()->write($dataSet); |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
public function flushProductAbstractStoreDataImporter(): void |
|
66
|
|
|
{ |
|
67
|
|
|
$this->getFactory()->createProductAbstractStorePropelWriter()->flush(); |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
public function writeCombinedProductPriceDataSet(DataSetInterface $dataSet): void |
|
71
|
|
|
{ |
|
72
|
|
|
$this->getFactory()->createCombinedProductPricePropelDataSetWriter()->write($dataSet); |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
public function flushCombinedProductPriceDataImporter(): void |
|
76
|
|
|
{ |
|
77
|
|
|
$this->getFactory()->createCombinedProductPricePropelDataSetWriter()->flush(); |
|
78
|
|
|
} |
|
79
|
|
|
|
|
80
|
|
|
public function writeCombinedProductImageDataSet(DataSetInterface $dataSet): void |
|
81
|
|
|
{ |
|
82
|
|
|
$this->getFactory()->createCombinedProductImagePropelDataSetWriter()->write($dataSet); |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
public function flushCombinedProductImageDataImporter(): void |
|
86
|
|
|
{ |
|
87
|
|
|
$this->getFactory()->createCombinedProductImagePropelDataSetWriter()->flush(); |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
public function writeCombinedProductStockDataSet(DataSetInterface $dataSet): void |
|
91
|
|
|
{ |
|
92
|
|
|
$this->getFactory()->createCombinedProductStockPropelDataSetWriter()->write($dataSet); |
|
93
|
|
|
} |
|
94
|
|
|
|
|
95
|
|
|
public function flushCombinedProductStockDataImporter(): void |
|
96
|
|
|
{ |
|
97
|
|
|
$this->getFactory()->createCombinedProductStockPropelDataSetWriter()->flush(); |
|
98
|
|
|
} |
|
99
|
|
|
|
|
100
|
|
|
public function writeCombinedProductAbstractStoreDataSet(DataSetInterface $dataSet): void |
|
101
|
|
|
{ |
|
102
|
|
|
$this->getFactory()->createCombinedProductAbstractStorePropelDataSetWriter()->write($dataSet); |
|
103
|
|
|
} |
|
104
|
|
|
|
|
105
|
|
|
public function flushCombinedProductAbstractStoreDataImporter(): void |
|
106
|
|
|
{ |
|
107
|
|
|
$this->getFactory()->createCombinedProductAbstractStorePropelDataSetWriter()->flush(); |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
public function writeCombinedProductAbstractDataSet(DataSetInterface $dataSet): void |
|
111
|
|
|
{ |
|
112
|
|
|
$this->getFactory()->createCombinedProductAbstractPropelDataSetWriter()->write($dataSet); |
|
113
|
|
|
} |
|
114
|
|
|
|
|
115
|
|
|
public function flushCombinedProductAbstractDataImporter(): void |
|
116
|
|
|
{ |
|
117
|
|
|
$this->getFactory()->createCombinedProductAbstractPropelDataSetWriter()->flush(); |
|
118
|
|
|
} |
|
119
|
|
|
|
|
120
|
|
|
public function writeCombinedProductConcreteDataSet(DataSetInterface $dataSet): void |
|
121
|
|
|
{ |
|
122
|
|
|
$this->getFactory()->createCombinedProductConcretePropelDataSetWriter()->write($dataSet); |
|
123
|
|
|
} |
|
124
|
|
|
|
|
125
|
|
|
public function flushCombinedProductConcreteDataImporter(): void |
|
126
|
|
|
{ |
|
127
|
|
|
$this->getFactory()->createCombinedProductConcretePropelDataSetWriter()->flush(); |
|
128
|
|
|
} |
|
129
|
|
|
} |
|
130
|
|
|
|