You are here

public function InvoiceItem::setData in Commerce Invoice 8.2

Sets an invoice item data value with the given key.

Parameters

string $key: The key.

mixed $value: The value.

Return value

$this

Overrides InvoiceItemInterface::setData

File

src/Entity/InvoiceItem.php, line 267

Class

InvoiceItem
Defines the invoice item entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setData($key, $value) {
  $this
    ->get('data')
    ->__set($key, $value);
  return $this;
}