Adapter/ShopwareAdapter/ResponseParser/Customer/CustomerResponseParser.php
private function getLanguageIdentifier(array $entry)
    {
        /**
         * @var Repository $shopRepository
         */
        $shopRepository = $this->entityManager->getRepository(ShopModel::class);

        /**
         * @var null|ShopModel $customerShop
         */
        $customerShop = $shopRepository->find($entry['languageId']);

        if (null === $customerShop) {
            return null;
        }

        $languageIdentifier = $this->getIdentifier((string) $customerShop->getLocale()->getId(), Language::TYPE);

        if (null === $languageIdentifier) {
            return null;
        }

        return $languageIdentifier;
    }
private function getLanguageIdentifier(array $entry)
    {
        /**
         * @var Repository $shopRepository
         */
        $shopRepository = $this->entityManager->getRepository(ShopModel::class);

        /**
         * @var null|ShopModel $customerShop
         */
        $customerShop = $shopRepository->find($entry['languageId']);

        if (null === $customerShop) {
            return null;
        }

        $languageIdentifier = $this->getIdentifier((string) $customerShop->getLocale()->getId(), Language::TYPE);

        if (null === $languageIdentifier) {
            return null;
        }

        return $languageIdentifier;
    }
@param array $entry

@return null|string