You are here

public function Subscription::getStartTime in Commerce Recurring Framework 8

Gets the start timestamp.

Return value

int The start timestamp.

Overrides SubscriptionInterface::getStartTime

2 calls to Subscription::getStartTime()
Subscription::getStartDate in src/Entity/Subscription.php
Gets the start 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 530

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getStartTime() {
  return $this
    ->get('starts')->value;
}