You are here

public function Subscription::setOrders in Commerce Recurring Framework 8

Sets the recurring orders.

Parameters

\Drupal\commerce_order\Entity\OrderInterface[] $orders: The recurring orders.

Return value

$this

Overrides SubscriptionInterface::setOrders

File

src/Entity/Subscription.php, line 355

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setOrders(array $orders) {
  $this
    ->set('orders', $orders);
  return $this;
}