You are here

public function Promotion::setCreatedTime in Commerce Core 8.2

Sets the promotion creation timestamp.

Parameters

int $timestamp: The promotion creation timestamp.

Return value

$this

Overrides PromotionInterface::setCreatedTime

File

modules/promotion/src/Entity/Promotion.php, line 175

Class

Promotion
Defines the promotion entity class.

Namespace

Drupal\commerce_promotion\Entity

Code

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