You are here

public function Invoice::setInvoiceNumber in Commerce Invoice 7.2

Same name and namespace in other branches
  1. 8.2 src/Entity/Invoice.php \Drupal\commerce_invoice\Entity\Invoice::setInvoiceNumber()

Sets the invoice number.

Parameters

InvoiceNumber $number:

File

src/Entity/Invoice.php, line 58
Invoice entity.

Class

Invoice

Namespace

Drupal\commerce_invoice\Entity

Code

public function setInvoiceNumber(InvoiceNumber $number) {
  $this->number_key = $number
    ->getKey();
  $this->number_sequence = $number
    ->getSequence();
  $this->number_pattern = $number
    ->getPatternName();
}