You are here

public function Invoice::setOrders in Commerce Invoice 8.2

Sets the invoice orders.

Parameters

\Drupal\commerce_order\Entity\OrderInterface[] $orders: The invoice orders.

Return value

$this

Overrides InvoiceInterface::setOrders

File

src/Entity/Invoice.php, line 222

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setOrders(array $orders) {
  $this
    ->set('orders', $orders);
  return $this;
}