You are here

public function InvoiceFilenameEvent::__construct in Commerce Invoice 8.2

Constructs a new InvoiceFilenameEvent.

Parameters

string $filename: The invoice filename.

\Drupal\commerce_invoice\Entity\InvoiceInterface $invoice: The invoice.

File

src/Event/InvoiceFilenameEvent.php, line 37

Class

InvoiceFilenameEvent
Defines the invoice filename event.

Namespace

Drupal\commerce_invoice\Event

Code

public function __construct($filename, InvoiceInterface $invoice) {
  $this->filename = $filename;
  $this->invoice = $invoice;
}