ValidatorInterface.php 530 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model;
  7. use Magento\Framework\Exception\NoSuchEntityException;
  8. use Magento\Sales\Exception\DocumentValidationException;
  9. /**
  10. * Interface ValidatorInterface
  11. */
  12. interface ValidatorInterface
  13. {
  14. /**
  15. * @param object $entity
  16. * @return \Magento\Framework\Phrase[]
  17. * @throws DocumentValidationException
  18. * @throws NoSuchEntityException
  19. */
  20. public function validate($entity);
  21. }