public function BillingPeriod::__construct in Commerce Recurring Framework 8
Constructs a new BillingPeriod object.
Parameters
\Drupal\Core\Datetime\DrupalDateTime $start_date: The start date/time.
\Drupal\Core\Datetime\DrupalDateTime $end_date: The end date/time.
File
- src/
BillingPeriod.php, line 44
Class
- BillingPeriod
- Represents a single billing period.
Namespace
Drupal\commerce_recurringCode
public function __construct(DrupalDateTime $start_date, DrupalDateTime $end_date) {
$this->startDate = $start_date;
$this->endDate = $end_date;
}