SenderInterface.php 855 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Creditmemo;
  7. /**
  8. * Interface for notification sender for CreditMemo.
  9. */
  10. interface SenderInterface
  11. {
  12. /**
  13. * Sends notification to a customer.
  14. *
  15. * @param \Magento\Sales\Api\Data\OrderInterface $order
  16. * @param \Magento\Sales\Api\Data\CreditmemoInterface $creditmemo
  17. * @param \Magento\Sales\Api\Data\CreditmemoCommentCreationInterface|null $comment
  18. * @param bool $forceSyncMode
  19. *
  20. * @return bool
  21. */
  22. public function send(
  23. \Magento\Sales\Api\Data\OrderInterface $order,
  24. \Magento\Sales\Api\Data\CreditmemoInterface $creditmemo,
  25. \Magento\Sales\Api\Data\CreditmemoCommentCreationInterface $comment = null,
  26. $forceSyncMode = false
  27. );
  28. }