Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-sales
Model
Order
Invoice
Notifier.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Sales\Model\Order\Invoice
;
7
14
class
Notifier
implements
\Magento\Sales\Model\Order\Invoice\NotifierInterface
15
{
19
private
$senders;
20
24
public
function
__construct
(array $senders = [])
25
{
26
$this->senders = $senders;
27
}
28
33
public
function
notify
(
34
\
Magento
\Sales\Api\
Data
\
OrderInterface
$order
,
35
\
Magento
\Sales\Api\
Data
\
InvoiceInterface
$invoice
,
36
\
Magento
\Sales\Api\
Data
\
InvoiceCommentCreationInterface
$comment =
null
,
37
$forceSyncMode =
false
38
) {
39
foreach
($this->senders as $sender) {
40
$sender->send(
$order
,
$invoice
, $comment, $forceSyncMode);
41
}
42
}
43
}
Magento\Sales\Api\Data\InvoiceInterface
Definition:
InvoiceInterface.php:15
$order
$order
Definition:
order.php:55
Magento\Sales\Model\Order\Invoice\Notifier\__construct
__construct(array $senders=[])
Definition:
Notifier.php:24
Magento\Sales\Api\Data\OrderInterface
Definition:
OrderInterface.php:17
$invoice
$invoice
Definition:
partial_invoice.php:22
Magento\Payment\Helper\Data
Definition:
Data.php:25
Magento\Sales\Model\Order\Invoice
Magento
Magento\Sales\Model\Order\Invoice\Notifier
Definition:
Notifier.php:14
Magento\Sales\Api\Data\InvoiceCommentCreationInterface
Definition:
InvoiceCommentCreationInterface.php:17
Magento\Sales\Model\Order\Invoice\Notifier\notify
notify(\Magento\Sales\Api\Data\OrderInterface $order, \Magento\Sales\Api\Data\InvoiceInterface $invoice, \Magento\Sales\Api\Data\InvoiceCommentCreationInterface $comment=null, $forceSyncMode=false)
Definition:
Notifier.php:33