Completed
Push — development ( ea08ae...a063ea )
by Volodymyr
15:59
created

AbstractApiAdapter::__construct()   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
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
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;
9
10
use Akeneo\Pim\ApiClient\AkeneoPimClient;
11
12
abstract class AbstractApiAdapter implements ApiAdapterInterface
13
{
14
    /**
15
     * @var \Akeneo\Pim\ApiClient\AkeneoPimClient
16
     */
17
    protected $akeneoPimClient;
18
19
    /**
20
     * @param \Akeneo\Pim\ApiClient\AkeneoPimClient $akeneoPimClient
21
     */
22
    public function __construct(AkeneoPimClient $akeneoPimClient)
23
    {
24
        $this->akeneoPimClient = $akeneoPimClient;
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    abstract public function get($code);
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    abstract public function listPerPage($limit = 10, $withCount = false, array $queryParameters = []);
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    abstract public function all($pageSize = 10, array $queryParameters = []);
41
}
42