You are here

public function OrderItem::setCreatedTime in Commerce Core 8.2

Sets the order item creation timestamp.

Parameters

int $timestamp: The order item creation timestamp.

Return value

$this

Overrides OrderItemInterface::setCreatedTime

File

modules/order/src/Entity/OrderItem.php, line 342

Class

OrderItem
Defines the order item entity class.

Namespace

Drupal\commerce_order\Entity

Code

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