You are here

function PaymentLineItemBase::getTotalAmount in Payment 8.2

Return this line item's total amount.

Return value

float

Overrides PaymentLineItemInterface::getTotalAmount

File

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

Class

PaymentLineItemBase
Provides a base line item.

Namespace

Drupal\payment\Plugin\Payment\LineItem

Code

function getTotalAmount() {
  return bcmul($this
    ->getAmount(), $this
    ->getQuantity(), 6);
}