You are here

public function Order::setCreatedTime in Commerce Core 8.2

Sets the order creation timestamp.

Parameters

int $timestamp: The order creation timestamp.

Return value

$this

Overrides OrderInterface::setCreatedTime

File

modules/order/src/Entity/Order.php, line 607

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

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