| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class ReferenceEntityRecordApiAdapter implements ReferenceEntityRecordApiAdapterInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface |
||
| 17 | */ |
||
| 18 | protected $akeneoPimClient; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \Akeneo\Pim\ApiClient\AkeneoPimClientInterface $akeneoPimClient |
||
| 22 | */ |
||
| 23 | public function __construct(AkeneoPimEnterpriseClientInterface $akeneoPimClient) |
||
| 24 | { |
||
| 25 | $this->akeneoPimClient = $akeneoPimClient; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $referenceEntityCode |
||
| 30 | * @param string $recordCode |
||
| 31 | * |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function get(string $referenceEntityCode, string $recordCode): array |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $referenceEntityCode |
||
| 43 | * @param array $queryParameters |
||
| 44 | * |
||
| 45 | * @return \Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface |
||
| 46 | */ |
||
| 47 | public function all(string $referenceEntityCode, array $queryParameters = []): ResourceCursorInterface |
||
| 54 |