BulkSourceUnassignInterface.php 561 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryCatalogApi\Api;
  8. /**
  9. * Perform bulk product source un-assignment
  10. *
  11. * @api
  12. */
  13. interface BulkSourceUnassignInterface
  14. {
  15. /**
  16. * Run mass product to source un-assignment
  17. * @param string[] $skus
  18. * @param string[] $sourceCodes
  19. * @return int
  20. * @throws \Magento\Framework\Validation\ValidationException
  21. */
  22. public function execute(array $skus, array $sourceCodes): int;
  23. }