ValidatorInterface.php 494 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Customer\Model\Address;
  7. /**
  8. * Interface for address validator.
  9. *
  10. * @api
  11. * @since 102.0.0
  12. */
  13. interface ValidatorInterface
  14. {
  15. /**
  16. * Validate address instance.
  17. * Return array of errors if not valid.
  18. *
  19. * @param AbstractAddress $address
  20. * @return array
  21. * @since 102.0.0
  22. */
  23. public function validate(AbstractAddress $address);
  24. }