You are here

public function Subscription::getEndTime in Commerce Recurring Framework 8

Gets the end timestamp.

Return value

int The end timestamp.

Overrides SubscriptionInterface::getEndTime

2 calls to Subscription::getEndTime()
Subscription::getEndDate in src/Entity/Subscription.php
Gets the end timestamp as a DrupalDateTime object.
Subscription::preSave in src/Entity/Subscription.php
Acts on an entity before the presave hook is invoked.

File

src/Entity/Subscription.php, line 545

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getEndTime() {
  return $this
    ->get('ends')->value;
}