CommandInterface.php 646 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Payment\State;
  7. use Magento\Sales\Api\Data\OrderInterface;
  8. use Magento\Sales\Api\Data\OrderPaymentInterface;
  9. /**
  10. * Interface CommandInterface using for payment related changes of order state
  11. */
  12. interface CommandInterface
  13. {
  14. /**
  15. * Run command
  16. *
  17. * @param OrderPaymentInterface $payment
  18. * @param string|float|int $amount
  19. * @param OrderInterface $order
  20. * @return string
  21. */
  22. public function execute(OrderPaymentInterface $payment, $amount, OrderInterface $order);
  23. }