/**
  * Set attribute code mapping in parameters AND in database.
  *
  * @param string $attributeCodeMapping JSON
  *
  * @return AttributeReader
  */
 public function setAttributeCodeMapping($attributeCodeMapping)
 {
     $decodedAttributeCodeMapping = json_decode($attributeCodeMapping, true);
     if (!is_array($decodedAttributeCodeMapping)) {
         $decodedAttributeCodeMapping = [$decodedAttributeCodeMapping];
     }
     $this->attributeCodeMappingMerger->setMapping($decodedAttributeCodeMapping);
     return $this;
 }
 /**
  * Set attribute code mapping in parameters AND in database.
  *
  * @param string $attributeCodeMapping JSON
  *
  * @return AttributeProcessor
  */
 public function setAttributeCodeMapping($attributeCodeMapping)
 {
     $decodedAttributeCodeMapping = json_decode($attributeCodeMapping, true);
     if (!is_array($decodedAttributeCodeMapping)) {
         $decodedAttributeCodeMapping = [$decodedAttributeCodeMapping];
     }
     $this->attributeMappingMerger->setParameters($this->getClientParameters(), $this->getDefaultStoreView());
     $this->attributeMappingMerger->setMapping($decodedAttributeCodeMapping);
     $this->attributeCodeMapping = $this->getAttributeCodeMapping();
     return $this;
 }