You are here

public function Generator::__construct in Commerce Invoice 7.2

Constructor.

Parameters

\Drupal\commerce_invoice\Entity\InvoiceNumberPattern $pattern:

File

src/InvoiceNumber/Generator.php, line 28
Invoice Number Generator

Class

Generator
Invoice number generator.

Namespace

Drupal\commerce_invoice\InvoiceNumber

Code

public function __construct(InvoiceNumberPattern $pattern) {
  $this->name = $pattern->name;
  $this->pattern = $pattern->pattern;
}