CombinedProductPricePropelWriterPlugin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A flush() 0 3 1
A write() 0 3 1
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\Communication\Plugin\CombinedProduct\ProductPrice;
11
12
use Spryker\Zed\DataImport\Business\Model\DataSet\DataSetInterface;
13
use Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetWriterPluginInterface;
14
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
15
16
/**
17
 * @method \Pyz\Zed\DataImport\Business\DataImportFacadeInterface getFacade()
18
 * @method \Pyz\Zed\DataImport\DataImportConfig getConfig()
19
 * @method \Spryker\Zed\DataImport\Communication\DataImportCommunicationFactory getFactory()
20
 */
21
class CombinedProductPricePropelWriterPlugin extends AbstractPlugin implements DataSetWriterPluginInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Spryker\Zed\DataImportEx...etWriterPluginInterface has been deprecated: Use {@link \Spryker\Zed\DataImportExtension\Dependency\Plugin\DataSetItemWriterPluginInterface} instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

21
class CombinedProductPricePropelWriterPlugin extends AbstractPlugin implements /** @scrutinizer ignore-deprecated */ DataSetWriterPluginInterface

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
22
{
23
    public function write(DataSetInterface $dataSet): void
24
    {
25
        $this->getFacade()->writeCombinedProductPriceDataSet($dataSet);
26
    }
27
28
    public function flush(): void
29
    {
30
        $this->getFacade()->flushCombinedProductPriceDataImporter();
31
    }
32
}
33