You are here

public function InvoiceNumber::__construct in Commerce Invoice 7.2

Constructor.

Parameters

int $sequence:

string $key:

string $patternName:

File

src/InvoiceNumber/InvoiceNumber.php, line 24
Invoice Number

Class

InvoiceNumber

Namespace

Drupal\commerce_invoice\InvoiceNumber

Code

public function __construct($sequence, $key, $patternName) {
  $this->sequence = $sequence;
  $this->key = $key;
  $this->patternName = $patternName;
  $this->pattern = commerce_invoice_number_pattern_load($patternName);
}