Passed
Push — bugfix/supesc-331-adjusted-the... ( a6d65b...656fd3 )
by Ihor
04:07
created

AkeneoPimSdkFactory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createHttpClient() 0 3 1
A createAkeneoPimClientBuilder() 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\Dependencies\External\Api\Adapter\Sdk;
9
10
use Akeneo\Pim\ApiClient\AkeneoPimClientBuilder;
11
use Http\Adapter\Guzzle6\Client;
12
use Http\Client\HttpClient;
13
14
class AkeneoPimSdkFactory implements AkeneoPimSdkFactoryInterface
15
{
16
    /**
17
     * @param string $host
18
     *
19
     * @return \Akeneo\Pim\ApiClient\AkeneoPimClientBuilder
20
     */
21
    public function createAkeneoPimClientBuilder(string $host): AkeneoPimClientBuilder
22
    {
23
        return new AkeneoPimClientBuilder($host);
24
    }
25
26
    /**
27
     * @return \Http\Client\HttpClient
28
     */
29
    public function createHttpClient(): HttpClient
30
    {
31
        return new Client();
32
    }
33
}
34