Passed
Push — karoly/akeneo-skeleton ( dfb631 )
by Karoly
05:38
created

AkeneoPimBusinessFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createCategorySyncer() 0 3 1
A createProductConcreteSyncer() 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 Spryker\Zed\AkeneoPim\Business;
9
10
use Spryker\Zed\AkeneoPim\Business\Syncer\CategorySyncer;
11
use Spryker\Zed\AkeneoPim\Business\Syncer\ProductConcreteSyncer;
12
use Spryker\Zed\Kernel\Business\AbstractBusinessFactory;
13
14
/**
15
 * @method \Spryker\Zed\AkeneoPim\Persistence\AkeneoPimEntityManagerInterface getEntityManager()
16
 * @method \Spryker\Zed\AkeneoPim\Persistence\AkeneoPimRepositoryInterface getRepository()
17
 * @method \Spryker\Zed\AkeneoPim\AkeneoPimConfig getConfig()
18
 */
19
class AkeneoPimBusinessFactory extends AbstractBusinessFactory
20
{
21
    public function createProductConcreteSyncer(): ProductConcreteSyncer
22
    {
23
        return new ProductConcreteSyncer();
24
    }
25
26
    public function createCategorySyncer(): CategorySyncer
27
    {
28
        return new CategorySyncer();
29
    }
30
}
31