Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Notifier Class Reference
Inheritance diagram for Notifier:
NotifierInterface

Public Member Functions

 __construct (array $senders=[])
 
 notify (\Magento\Sales\Api\Data\OrderInterface $order, \Magento\Sales\Api\Data\InvoiceInterface $invoice, \Magento\Sales\Api\Data\InvoiceCommentCreationInterface $comment=null, $forceSyncMode=false)
 

Detailed Description

Invoice notifier.

@api

Since
100.1.2

Definition at line 14 of file Notifier.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $senders = [])
Parameters

Definition at line 24 of file Notifier.php.

25  {
26  $this->senders = $senders;
27  }

Member Function Documentation

◆ notify()

{Notifies customer.

Parameters
\Magento\Sales\Api\Data\OrderInterface$order
\Magento\Sales\Api\Data\InvoiceInterface$invoice
\Magento\Sales\Api\Data\InvoiceCommentCreationInterface | null$comment
bool$forceSyncMode
Returns
void
Since
100.1.2
}

Since
100.1.2

Implements NotifierInterface.

Definition at line 33 of file Notifier.php.

38  {
39  foreach ($this->senders as $sender) {
40  $sender->send($order, $invoice, $comment, $forceSyncMode);
41  }
42  }
$order
Definition: order.php:55
$invoice

The documentation for this class was generated from the following file: