You are here

public function Invoice::getInvoiceNumber in Commerce Invoice 7.2

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

Returns the invoice number.

Return value

InvoiceNumber|NULL

File

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

Class

Invoice

Namespace

Drupal\commerce_invoice\Entity

Code

public function getInvoiceNumber() {
  if (!isset($this->number_sequence)) {
    return NULL;
  }
  return new InvoiceNumber($this->number_sequence, $this->number_key, $this->number_pattern);
}