public function Invoice::setData in Commerce Invoice 8.2
Sets an invoice data value with the given key.
Parameters
string $key: The key.
mixed $value: The value.
Return value
$this
Overrides InvoiceInterface::setData
File
- src/
Entity/ Invoice.php, line 489
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function setData($key, $value) {
$this
->get('data')
->__set($key, $value);
return $this;
}