protected function getLockIdentifier() { $identifier = parent::getLockIdentifier(); if (!empty($this->params['remove'])) { $identifier .= '_and_remove'; } return $identifier; }
protected function getLockIdentifier() { if (!empty($this->params['switch_to'])) { $switchTo = $this->params['switch_to']; if ($switchTo === \Ess\M2ePro\Model\Amazon\Listing\Product\Action\Request\Qty::FULFILLMENT_MODE_AFN) { return 'switch_to_afn'; } if ($switchTo === \Ess\M2ePro\Model\Amazon\Listing\Product\Action\Request\Qty::FULFILLMENT_MODE_MFN) { return 'switch_to_mfn'; } } return parent::getLockIdentifier(); }