ShipmentValidatorInterface.php 705 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Shipment;
  7. use Magento\Sales\Api\Data\ShipmentInterface;
  8. use Magento\Sales\Exception\DocumentValidationException;
  9. use Magento\Sales\Model\ValidatorInterface;
  10. use Magento\Sales\Model\ValidatorResultInterface;
  11. /**
  12. * Interface ShipmentValidatorInterface
  13. */
  14. interface ShipmentValidatorInterface
  15. {
  16. /**
  17. * @param ShipmentInterface $shipment
  18. * @param ValidatorInterface[] $validators
  19. * @return ValidatorResultInterface
  20. * @throws DocumentValidationException
  21. */
  22. public function validate(ShipmentInterface $shipment, array $validators);
  23. }