for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace SprykerEco\Service\AkeneoPim\Dependencies\External\Api\Adapter\ReferenceEntity;
use Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface;
use Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface;
class ReferenceEntityAttributeApiAdapter implements ReferenceEntityAttributeApiAdapterInterface
{
* @var \Akeneo\PimEnterprise\ApiClient\AkeneoPimEnterpriseClientInterface
protected $akeneoPimClient;
* @param \Akeneo\Pim\ApiClient\AkeneoPimClientInterface $akeneoPimClient
public function __construct(AkeneoPimEnterpriseClientInterface $akeneoPimClient)
$this->akeneoPimClient = $akeneoPimClient;
}
* @param string $referenceEntityCode
* @param string $attributeCode
*
* @return array
public function get(string $referenceEntityCode, string $attributeCode): array
return $this->akeneoPimClient
->getReferenceEntityAttributeApi()
->get($referenceEntityCode, $attributeCode);
* @param array $queryParameters
* @return \Akeneo\Pim\ApiClient\Pagination\ResourceCursorInterface
public function all(string $referenceEntityCode, array $queryParameters = []): ResourceCursorInterface
return $this->akeneoPimC...Code, $queryParameters)
array
Akeneo\Pim\ApiClient\Pag...ResourceCursorInterface
->all($referenceEntityCode, $queryParameters);