You are here

public function Subscription::setTrialStartTime in Commerce Recurring Framework 8

Sets the trial start timestamp.

Parameters

int $timestamp: The trial start timestamp.

Return value

$this

Overrides SubscriptionInterface::setTrialStartTime

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

File

src/Entity/Subscription.php, line 491

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

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