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\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}