You are here

public function PaymentLineItemBase::setQuantity in Payment 8.2

Sets the quantity.

Parameters

int|float $quantity:

Return value

static

Overrides PaymentLineItemInterface::setQuantity

1 call to PaymentLineItemBase::setQuantity()
Basic::submitConfigurationForm in src/Plugin/Payment/LineItem/Basic.php
Form submission handler.

File

src/Plugin/Payment/LineItem/PaymentLineItemBase.php, line 93

Class

PaymentLineItemBase
Provides a base line item.

Namespace

Drupal\payment\Plugin\Payment\LineItem

Code

public function setQuantity($quantity) {
  $this->configuration['quantity'] = $quantity;
  return $this;
}