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\Directory\Model\Country\Postcode;
  7. /**
  8. * Interface \Magento\Directory\Model\Country\Postcode\ValidatorInterface
  9. *
  10. */
  11. interface ValidatorInterface
  12. {
  13. /**
  14. * Validate postcode for selected country by mask
  15. *
  16. * @param string $postcode
  17. * @param string $countryId
  18. * @return bool
  19. * @throws \InvalidArgumentException
  20. */
  21. public function validate($postcode, $countryId);
  22. }