/** * @param \Ess\M2ePro\Model\Listing\Product\Action\Configurator $configurator * @return $this */ public function mergeData(\Ess\M2ePro\Model\Listing\Product\Action\Configurator $configurator) { if ($this->isAllAllowed()) { return $this; } if ($configurator->isAllAllowed()) { $this->setFullMode(); return $this; } if (!$this->isPartialMode()) { $this->setPartialMode(); } $this->allowedDataTypes = array_unique(array_merge($this->getAllowedDataTypes(), $configurator->getAllowedDataTypes())); return $this; }