CommandPoolInterface.php 582 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. use Magento\Payment\Gateway\CommandInterface;
  9. /**
  10. * Interface CommandPoolInterface
  11. * @package Magento\Payment\Gateway\Command
  12. * @api
  13. * @since 100.0.2
  14. */
  15. interface CommandPoolInterface
  16. {
  17. /**
  18. * Retrieves operation
  19. *
  20. * @param string $commandCode
  21. * @return CommandInterface
  22. * @throws NotFoundException
  23. */
  24. public function get($commandCode);
  25. }