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; |
9
|
|
|
|
10
|
|
|
use Akeneo\Pim\ApiClient\AkeneoPimClient; |
|
|
|
|
11
|
|
|
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface; |
12
|
|
|
use SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface; |
13
|
|
|
|
14
|
|
|
abstract class AbstractApiAdapter implements ApiAdapterInterface |
15
|
|
|
{ |
16
|
|
|
/** |
17
|
|
|
* @var \Akeneo\Pim\ApiClient\AkeneoPimClient |
18
|
|
|
*/ |
19
|
|
|
protected $akeneoPimClient; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @param \Akeneo\Pim\ApiClient\AkeneoPimClient $akeneoPimClient |
23
|
|
|
*/ |
24
|
|
|
public function __construct(AkeneoPimClient $akeneoPimClient) |
25
|
|
|
{ |
26
|
|
|
$this->akeneoPimClient = $akeneoPimClient; |
27
|
|
|
} |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @param string $code Code of the resource |
31
|
|
|
* |
32
|
|
|
* @return array |
33
|
|
|
*/ |
34
|
|
|
abstract public function get($code): array; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @param int $limit The maximum number of resources to return. |
38
|
|
|
* Do note that the server has a maximum limit allowed. |
39
|
|
|
* @param bool $withCount Set to true to return the total count of resources. |
40
|
|
|
* This parameter could decrease drastically the performance when set to true. |
41
|
|
|
* @param array $queryParameters Additional query parameters to pass in the request. |
42
|
|
|
* |
43
|
|
|
* @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourcePageInterface |
44
|
|
|
*/ |
45
|
|
|
abstract public function listPerPage($limit = 10, $withCount = false, array $queryParameters = []): AkeneoResourcePageInterface; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @param int $pageSize The size of the page returned by the server. |
49
|
|
|
* Do note that the server has a maximum limit allowed. |
50
|
|
|
* @param array $queryParameters Additional query parameters to pass in the request |
51
|
|
|
* |
52
|
|
|
* @return \SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Wrapper\AkeneoResourceCursorInterface |
53
|
|
|
*/ |
54
|
|
|
abstract public function all($pageSize = 10, array $queryParameters = []): AkeneoResourceCursorInterface; |
55
|
|
|
} |
56
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths