You are here

public function Invoice::getInvoiceNumber in Commerce Invoice 8.2

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

Gets the invoice number.

Return value

string The invoice number.

Overrides InvoiceInterface::getInvoiceNumber

1 call to Invoice::getInvoiceNumber()
Invoice::preSave in src/Entity/Invoice.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Invoice.php, line 105

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getInvoiceNumber() {
  return $this
    ->get('invoice_number')->value;
}