OrderValidatorInterface.php 677 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;
  7. use Magento\Sales\Api\Data\OrderInterface;
  8. use Magento\Sales\Exception\DocumentValidationException;
  9. use Magento\Sales\Model\ValidatorInterface;
  10. use Magento\Sales\Model\ValidatorResultInterface;
  11. /**
  12. * Interface OrderValidatorInterface
  13. */
  14. interface OrderValidatorInterface
  15. {
  16. /**
  17. * @param OrderInterface $entity
  18. * @param ValidatorInterface[] $validators
  19. * @return ValidatorResultInterface
  20. * @throws DocumentValidationException
  21. */
  22. public function validate(OrderInterface $entity, array $validators);
  23. }