You are here

public function Subscription::setStartTime in Commerce Recurring Framework 8

Sets the start timestamp.

Parameters

int $timestamp: The start timestamp.

Return value

$this

Overrides SubscriptionInterface::setStartTime

1 call to Subscription::setStartTime()
Subscription::preSave in src/Entity/Subscription.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Subscription.php, line 537

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

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