public function Invoice::getInvoiceNumber in Commerce Invoice 7.2
Same name and namespace in other branches
- 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
Namespace
Drupal\commerce_invoice\EntityCode
public function getInvoiceNumber() {
if (!isset($this->number_sequence)) {
return NULL;
}
return new InvoiceNumber($this->number_sequence, $this->number_key, $this->number_pattern);
}