You are here

public function Subscription::setCreatedTime in Commerce Recurring Framework 8

Sets the created timestamp.

Parameters

int $timestamp: The created timestamp.

Return value

$this

Overrides SubscriptionInterface::setCreatedTime

File

src/Entity/Subscription.php, line 416

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

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