You are here

public function Order::setCreatedTime in Ubercart 8.4

Sets the order creation timestamp.

Parameters

int $timestamp: The order creation timestamp.

Return value

$this

Overrides OrderInterface::setCreatedTime

File

uc_order/src/Entity/Order.php, line 211

Class

Order
Defines the order entity class.

Namespace

Drupal\uc_order\Entity

Code

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