You are here

public function Coupon::setCreatedTime in Commerce Core 8.2

Sets the coupon creation timestamp.

Parameters

int $timestamp: The coupon creation timestamp.

Return value

$this

Overrides CouponInterface::setCreatedTime

File

modules/promotion/src/Entity/Coupon.php, line 114

Class

Coupon
Defines the Coupon entity.

Namespace

Drupal\commerce_promotion\Entity

Code

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