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

AbstractApiAdapter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 29
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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