You are here

public function Subscription::setQuantity in Commerce Recurring Framework 8

Sets the subscription quantity.

Parameters

string $quantity: The subscription quantity.

Return value

$this

Overrides SubscriptionInterface::setQuantity

File

src/Entity/Subscription.php, line 251

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function setQuantity($quantity) {
  $this
    ->set('quantity', (string) $quantity);
  return $this;
}