You are here

public function Subscription::getQuantity in Commerce Recurring Framework 8

Gets the subscription quantity.

Return value

string The subscription quantity

Overrides SubscriptionInterface::getQuantity

File

src/Entity/Subscription.php, line 244

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getQuantity() {
  return (string) $this
    ->get('quantity')->value;
}