You are here

public function Invoice::setInvoiceNumber in Commerce Invoice 8.2

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

Sets the invoice number.

Parameters

string $invoice_number: The invoice number.

Return value

$this

Overrides InvoiceInterface::setInvoiceNumber

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

File

src/Entity/Invoice.php, line 112

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setInvoiceNumber($invoice_number) {
  $this
    ->set('invoice_number', $invoice_number);
  return $this;
}