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(); }