DefaultProductModelImportConfigurationPlugin   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 108
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 17
c 1
b 0
f 1
dl 0
loc 108
rs 10
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getProcessName() 0 3 1
A getLoggerPlugin() 0 4 1
A getInputStreamPlugin() 0 4 1
A getStagePlugins() 0 4 1
A getOutputStreamPlugin() 0 4 1
A getIteratorPlugin() 0 4 1
A getPostProcessorHookPlugins() 0 4 1
A getPreProcessorHookPlugins() 0 4 1
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\Communication\Plugin\Configuration;
9
10
use Spryker\Zed\Kernel\Communication\AbstractPlugin;
0 ignored issues
show
Bug introduced by
The type Spryker\Zed\Kernel\Communication\AbstractPlugin 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 SprykerMiddleware\Zed\Process\Dependency\Plugin\Configuration\ProcessConfigurationPluginInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...gurationPluginInterface 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...
12
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Iterator\ProcessIteratorPluginInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...IteratorPluginInterface 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...
13
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Log\MiddlewareLoggerConfigPluginInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...erConfigPluginInterface 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...
14
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\InputStreamPluginInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...utStreamPluginInterface 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...
15
use SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\OutputStreamPluginInterface;
0 ignored issues
show
Bug introduced by
The type SprykerMiddleware\Zed\Pr...utStreamPluginInterface 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...
16
17
/**
18
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Communication\AkeneoPimMiddlewareConnectorCommunicationFactory getFactory()
19
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Business\AkeneoPimMiddlewareConnectorFacadeInterface getFacade()
20
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConfig getConfig()
21
 * @method \SprykerEco\Zed\AkeneoPimMiddlewareConnector\Persistence\AkeneoPimMiddlewareConnectorQueryContainerInterface getQueryContainer()
22
 */
23
class DefaultProductModelImportConfigurationPlugin extends AbstractPlugin implements ProcessConfigurationPluginInterface
24
{
25
    /**
26
     * @var string
27
     */
28
    protected const PROCESS_NAME = 'DEFAULT_PRODUCT_MODEL_IMPORT_PROCESS';
29
30
    /**
31
     * {@inheritDoc}
32
     *
33
     * @api
34
     *
35
     * @return string
36
     */
37
    public function getProcessName(): string
38
    {
39
        return static::PROCESS_NAME;
40
    }
41
42
    /**
43
     * {@inheritDoc}
44
     *
45
     * @api
46
     *
47
     * @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\InputStreamPluginInterface
48
     */
49
    public function getInputStreamPlugin(): InputStreamPluginInterface
50
    {
51
        return $this->getFactory()
52
            ->getProductModelImportInputStreamPlugin();
53
    }
54
55
    /**
56
     * {@inheritDoc}
57
     *
58
     * @api
59
     *
60
     * @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Stream\OutputStreamPluginInterface
61
     */
62
    public function getOutputStreamPlugin(): OutputStreamPluginInterface
63
    {
64
        return $this->getFactory()
65
            ->getProductModelImportOutputStreamPlugin();
66
    }
67
68
    /**
69
     * {@inheritDoc}
70
     *
71
     * @api
72
     *
73
     * @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Iterator\ProcessIteratorPluginInterface
74
     */
75
    public function getIteratorPlugin(): ProcessIteratorPluginInterface
76
    {
77
        return $this->getFactory()
78
            ->getProductModelImportIteratorPlugin();
79
    }
80
81
    /**
82
     * {@inheritDoc}
83
     *
84
     * @api
85
     *
86
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\StagePluginInterface>
87
     */
88
    public function getStagePlugins(): array
89
    {
90
        return $this->getFactory()
91
            ->getDefaultProductModelImportStagePluginsStack();
92
    }
93
94
    /**
95
     * {@inheritDoc}
96
     *
97
     * @api
98
     *
99
     * @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Log\MiddlewareLoggerConfigPluginInterface
100
     */
101
    public function getLoggerPlugin(): MiddlewareLoggerConfigPluginInterface
102
    {
103
        return $this->getFactory()
104
            ->getAkeneoPimLoggerConfigPlugin();
105
    }
106
107
    /**
108
     * {@inheritDoc}
109
     *
110
     * @api
111
     *
112
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Hook\PreProcessorHookPluginInterface>
113
     */
114
    public function getPreProcessorHookPlugins(): array
115
    {
116
        return $this->getFactory()
117
            ->getProductModelImportPreProcessorPluginsStack();
118
    }
119
120
    /**
121
     * {@inheritDoc}
122
     *
123
     * @api
124
     *
125
     * @return array<\SprykerMiddleware\Zed\Process\Dependency\Plugin\Hook\PostProcessorHookPluginInterface>
126
     */
127
    public function getPostProcessorHookPlugins(): array
128
    {
129
        return $this->getFactory()
130
        ->getProductModelImportPostProcessorPluginsStack();
131
    }
132
}
133