You are here

public function Order::setPlacedTime in Commerce Core 8.2

Sets the order placed timestamp.

Parameters

int $timestamp: The order placed timestamp.

Return value

$this

Overrides OrderInterface::setPlacedTime

File

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

Class

Order
Defines the order entity class.

Namespace

Drupal\commerce_order\Entity

Code

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