CommandManagerPoolInterface.php 629 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Payment\Gateway\Command;
  7. use Magento\Framework\Exception\NotFoundException;
  8. /**
  9. * Interface CommandManagerPoolInterface
  10. * @package Magento\Payment\Gateway\Command
  11. * @api
  12. * @since 100.1.0
  13. */
  14. interface CommandManagerPoolInterface
  15. {
  16. /**
  17. * Returns Command executor for defined payment provider
  18. *
  19. * @param string $paymentProviderCode
  20. * @return CommandManagerInterface
  21. * @throws NotFoundException
  22. * @since 100.1.0
  23. */
  24. public function get($paymentProviderCode);
  25. }