/**
  * Update stock.
  *
  * @param PurchasableInterface $purchasable     Purchasable
  * @param int                  $stockToDecrease Stock to decrease
  *
  * @return false|int Real decreased stock or false if error
  */
 public function updateSimplePurchasableStock(PurchasableInterface $purchasable, $stockToDecrease)
 {
     $stock = $purchasable->getStock();
     if ($stock === ElcodiProductStock::INFINITE_STOCK || $stockToDecrease <= 0 || $stock <= 0) {
         return false;
     }
     $realStockToDecrease = min($stock, $stockToDecrease);
     $resultingStock = $stock - $realStockToDecrease;
     $purchasable->setStock($resultingStock);
     return $realStockToDecrease;
 }