CommandInterface.php 564 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;
  7. use Magento\Payment\Gateway\Command\CommandException;
  8. /**
  9. * Interface CommandInterface
  10. * @package Magento\Payment\Gateway
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface CommandInterface
  15. {
  16. /**
  17. * Executes command basing on business object
  18. *
  19. * @param array $commandSubject
  20. * @return null|Command\ResultInterface
  21. * @throws CommandException
  22. */
  23. public function execute(array $commandSubject);
  24. }