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

createAkeneoPimClientBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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