You are here

public function Subscription::setBillingSchedule in Commerce Recurring Framework 8

Sets the billing schedule.

Parameters

\Drupal\commerce_recurring\Entity\BillingScheduleInterface $billing_schedule: The billing schedule.

Return value

$this

Overrides SubscriptionInterface::setBillingSchedule

File

src/Entity/Subscription.php, line 132

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setBillingSchedule(BillingScheduleInterface $billing_schedule) {
  $this
    ->set('billing_schedule', $billing_schedule);
  return $this;
}