You are here

public function Subscription::setInitialOrder in Commerce Recurring Framework 8

Sets the initial order.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $initial_order: The initial order.

Return value

$this

Overrides SubscriptionInterface::setInitialOrder

File

src/Entity/Subscription.php, line 298

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setInitialOrder(OrderInterface $initial_order) {
  $this
    ->set('initial_order', $initial_order);
  return $this;
}