You are here

public function Subscription::setEndTime in Commerce Recurring Framework 8

Sets the end timestamp.

Parameters

int $timestamp: The end timestamp.

Return value

$this

Overrides SubscriptionInterface::setEndTime

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

File

src/Entity/Subscription.php, line 552

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

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