Passed
Branch development (62ef01)
by Theodoros
06:18
created

CategoryPlugin::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 4
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Econda\Communication\Plugin;
9
10
use Generated\Shared\Transfer\BatchResultTransfer;
11
use Generated\Shared\Transfer\LocaleTransfer;
12
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
13
use SprykerEco\Zed\Econda\Business\Exporter\Writer\WriterInterface;
14
use SprykerEco\Zed\Econda\Dependency\Plugin\EcondaPluginInterface;
15
use Symfony\Component\Console\Output\OutputInterface;
16
17
/**
18
 * @method \SprykerEco\Zed\Econda\Business\EcondaFacade getFacade()
19
 * @method \Spryker\Zed\Collector\CollectorConfig getConfig()
20
 * @method \SprykerEco\Zed\Econda\Communication\EcondaCommunicationFactory getFactory()
21
 */
22
class CategoryPlugin extends AbstractPlugin implements EcondaPluginInterface
23
{
24
    /**
25
     * @param \Generated\Shared\Transfer\LocaleTransfer $locale
26
     * @param \Generated\Shared\Transfer\BatchResultTransfer $result
27
     * @param \SprykerEco\Zed\Econda\Business\Exporter\Writer\WriterInterface $dataWriter
28
     * @param \Symfony\Component\Console\Output\OutputInterface $output
29
     *
30
     * @return void
31
     */
32
    public function run(
33
        LocaleTransfer $locale,
34
        BatchResultTransfer $result,
35
        WriterInterface $dataWriter,
36
        OutputInterface $output
37
    ) {
38
        $this->getFacade()
39
            ->exportCategories(
40
                $locale,
41
                $result,
42
                $dataWriter,
43
                $output
44
            );
45
    }
46
}
47