You are here

public function Subscription::setTrialEndTime in Commerce Recurring Framework 8

Sets the trial end timestamp.

Parameters

int $timestamp: The trial end timestamp.

Return value

$this

Overrides SubscriptionInterface::setTrialEndTime

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

File

src/Entity/Subscription.php, line 506

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

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