You are here

protected function IntervalBase::getInterval in Commerce Recurring Framework 8

Gets the current interval.

Return value

\Drupal\commerce\Interval The interval.

2 calls to IntervalBase::getInterval()
Fixed::adjustStartDate in src/Plugin/Commerce/BillingSchedule/Fixed.php
Adjusts the start date to the beginning of the configured interval.
Fixed::generateFirstBillingPeriod in src/Plugin/Commerce/BillingSchedule/Fixed.php
Generates the first billing period.

File

src/Plugin/Commerce/BillingSchedule/IntervalBase.php, line 162

Class

IntervalBase
Base class for interval-based billing schedules.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\BillingSchedule

Code

protected function getInterval() {
  return new Interval($this->configuration['interval']['number'], $this->configuration['interval']['unit']);
}