You are here

public function InvoiceItem::setAdjustments in Commerce Invoice 8.2

Sets the adjustments.

Parameters

\Drupal\commerce_order\Adjustment[] $adjustments: The adjustments.

Return value

$this

Overrides EntityAdjustableInterface::setAdjustments

File

src/Entity/InvoiceItem.php, line 177

Class

InvoiceItem
Defines the invoice item entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

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