You are here

public function Coupon::getCreatedTime in Commerce Core 8.2

Gets the coupon creation timestamp.

Return value

int Creation timestamp of the coupon.

Overrides CouponInterface::getCreatedTime

File

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

Class

Coupon
Defines the Coupon entity.

Namespace

Drupal\commerce_promotion\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}