ValidatorPoolInterface.php 576 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Gateway\Validator;
  7. use Magento\Framework\Exception\NotFoundException;
  8. /**
  9. * Interface ValidatorPoolInterface
  10. * @package Magento\Payment\Gateway\Validator
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface ValidatorPoolInterface
  15. {
  16. /**
  17. * Returns configured validator
  18. *
  19. * @param string $code
  20. * @return \Magento\Payment\Gateway\Validator\ValidatorInterface
  21. * @throws NotFoundException
  22. */
  23. public function get($code);
  24. }