StockSourceLinkValidatorInterface.php 610 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\InventoryApi\Model;
  8. use Magento\Framework\Validation\ValidationResult;
  9. use Magento\InventoryApi\Api\Data\StockSourceLinkInterface;
  10. /**
  11. * Responsible for Stock Source link validation
  12. * Extension point for base validation
  13. *
  14. * @api
  15. */
  16. interface StockSourceLinkValidatorInterface
  17. {
  18. /**
  19. * @param StockSourceLinkInterface $link
  20. * @return ValidationResult
  21. */
  22. public function validate(StockSourceLinkInterface $link): ValidationResult;
  23. }