/** * @param \Ess\M2ePro\Model\Listing\Product $childListingProduct * @return bool */ public function tryToRemoveChildListingProduct(\Ess\M2ePro\Model\Listing\Product $childListingProduct) { if ($childListingProduct->isLocked()) { return false; } if ($childListingProduct->isStoppable()) { $this->modelFactory->getObject('StopQueue')->add($childListingProduct); } $this->getTypeModel()->removeChildListingProduct($childListingProduct->getId()); return true; }