Adapter/PlentymarketsAdapter/ResponseParser/Category/CategoryResponseParser.php
private function getSecondCategoryDescriptionAsAttribute($categoryDetails)
    {
        $translations = [];

        foreach ($categoryDetails as $categoryDetail) {
            $languageIdentifier = $this->identityService->findOneBy([
                'adapterIdentifier' => $categoryDetail['lang'],
                'adapterName' => PlentymarketsAdapter::NAME,
                'objectType' => Language::TYPE,
            ]);

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

            $translations[] = Translation::fromArray([
                'languageIdentifier' => $languageIdentifier->getObjectIdentifier(),
                'property' => 'value',
                'value' => $categoryDetail['description2'],
            ]);
        }

        $attribute = new Attribute();
        $attribute->setKey('secondCategoryDescription');
        $attribute->setValue((string) $categoryDetails[0]['description2']);
        $attribute->setTranslations($translations);

        return $attribute;
    }
private function getSecondCategoryDescriptionAsAttribute($categoryDetails)
    {
        $translations = [];

        foreach ($categoryDetails as $categoryDetail) {
            $languageIdentifier = $this->identityService->findOneBy([
                'adapterIdentifier' => $categoryDetail['lang'],
                'adapterName' => PlentymarketsAdapter::NAME,
                'objectType' => Language::TYPE,
            ]);

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

            $translations[] = Translation::fromArray([
                'languageIdentifier' => $languageIdentifier->getObjectIdentifier(),
                'property' => 'value',
                'value' => $categoryDetail['description2'],
            ]);
        }

        $attribute = new Attribute();
        $attribute->setKey('secondCategoryDescription');
        $attribute->setValue((string) $categoryDetails[0]['description2']);
        $attribute->setTranslations($translations);

        return $attribute;
    }
@param array $categoryDetails

@return Attribute