| Total Complexity | 1 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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) |
||
| 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 |