Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
RefundAdapter.php
Go to the documentation of this file.
1 <?php
7 
11 
16 {
20  private $refundOperation;
21 
25  public function __construct(
26  RefundOperation $refundOperation
27  ) {
28  $this->refundOperation = $refundOperation;
29  }
30 
34  public function refund(
37  $isOnline = false
38  ) {
39  return $this->refundOperation->execute($creditmemo, $order, $isOnline);
40  }
41 }
refund(CreditmemoInterface $creditmemo, OrderInterface $order, $isOnline=false)
$order
Definition: order.php:55
__construct(RefundOperation $refundOperation)