AkeneoPimServiceFactory   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createWrapperFactory() 0 3 1
A createAkeneoPimAdapterFactory() 0 3 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\Service\AkeneoPim;
9
10
use Spryker\Service\Kernel\AbstractServiceFactory;
0 ignored issues
show
Bug introduced by
The type Spryker\Service\Kernel\AbstractServiceFactory 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\Service\AkeneoPim\Dependencies\External\Api\Adapter\AdapterFactory;
12
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Adapter\AdapterFactoryInterface;
13
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\WrapperFactory;
14
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\WrapperFactoryInterface;
15
16
/**
17
 * @method \SprykerEco\Service\AkeneoPim\AkeneoPimConfig getConfig()
18
 */
19
class AkeneoPimServiceFactory extends AbstractServiceFactory
20
{
21
    /**
22
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Adapter\AdapterFactoryInterface
23
     */
24
    public function createAkeneoPimAdapterFactory(): AdapterFactoryInterface
25
    {
26
        return new AdapterFactory($this->getConfig(), $this->createWrapperFactory());
27
    }
28
29
    /**
30
     * @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\WrapperFactoryInterface
31
     */
32
    public function createWrapperFactory(): WrapperFactoryInterface
33
    {
34
        return new WrapperFactory();
35
    }
36
}
37