senders = $senders; } /** * {@inheritdoc} * @since 100.1.2 */ public function notify( \Magento\Sales\Api\Data\OrderInterface $order, \Magento\Sales\Api\Data\InvoiceInterface $invoice, \Magento\Sales\Api\Data\InvoiceCommentCreationInterface $comment = null, $forceSyncMode = false ) { foreach ($this->senders as $sender) { $sender->send($order, $invoice, $comment, $forceSyncMode); } } }