You are here

public function BillingScheduleInterface::generateFirstBillingPeriod in Commerce Recurring Framework 8

Generates the first billing period.

Parameters

\Drupal\Core\Datetime\DrupalDateTime $start_date: The billing start date/time.

Return value

\Drupal\commerce_recurring\BillingPeriod The billing period.

2 methods override BillingScheduleInterface::generateFirstBillingPeriod()
Fixed::generateFirstBillingPeriod in src/Plugin/Commerce/BillingSchedule/Fixed.php
Generates the first billing period.
Rolling::generateFirstBillingPeriod in src/Plugin/Commerce/BillingSchedule/Rolling.php
Generates the first billing period.

File

src/Plugin/Commerce/BillingSchedule/BillingScheduleInterface.php, line 58

Class

BillingScheduleInterface
Provides the interface for billing schedules.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\BillingSchedule

Code

public function generateFirstBillingPeriod(DrupalDateTime $start_date);