You are here

public function InvoiceItem::setCreatedTime in Commerce Invoice 8.2

Sets the invoice item creation timestamp.

Parameters

int $timestamp: The invoice item creation timestamp.

Return value

$this

Overrides InvoiceItemInterface::setCreatedTime

File

src/Entity/InvoiceItem.php, line 294

Class

InvoiceItem
Defines the invoice item entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}