You are here

public function InvoiceInterface::addItem in Commerce Invoice 8.2

Adds an invoice item.

Parameters

\Drupal\commerce_invoice\Entity\InvoiceItemInterface $invoice_item: The invoice item.

Return value

$this

1 method overrides InvoiceInterface::addItem()
Invoice::addItem in src/Entity/Invoice.php
Adds an invoice item.

File

src/Entity/InvoiceInterface.php, line 163

Class

InvoiceInterface
Defines the interface for invoices.

Namespace

Drupal\commerce_invoice\Entity

Code

public function addItem(InvoiceItemInterface $invoice_item);