BulkSourceUnassignValidatorInterface.php 599 B

123456789101112131415161718192021222324252627
  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\Model;
  8. use Magento\Framework\Validation\ValidationResult;
  9. /**
  10. * Responsible for Product Source un-assignment validation
  11. *
  12. * @api
  13. */
  14. interface BulkSourceUnassignValidatorInterface
  15. {
  16. /**
  17. * Validates a mass un-assignment request
  18. *
  19. * @param array $skus
  20. * @param array $sourceCodes
  21. * @return ValidationResult
  22. */
  23. public function validate(array $skus, array $sourceCodes): ValidationResult;
  24. }