QtyCounterInterface.php 516 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogInventory\Model\ResourceModel;
  7. /**
  8. * Correct particular stock products qty
  9. */
  10. interface QtyCounterInterface
  11. {
  12. /**
  13. * Correct particular stock products qty based on operator
  14. *
  15. * @param int[] $items
  16. * @param int $websiteId
  17. * @param string $operator +/-
  18. * @return void
  19. */
  20. public function correctItemsQty(array $items, $websiteId, $operator);
  21. }