You are here

public function PaymentInterface::setAmount in Commerce Core 8.2

Sets the payment amount.

Parameters

\Drupal\commerce_price\Price $amount: The payment amount.

Return value

$this

1 method overrides PaymentInterface::setAmount()
Payment::setAmount in modules/payment/src/Entity/Payment.php
Sets the payment amount.

File

modules/payment/src/Entity/PaymentInterface.php, line 162

Class

PaymentInterface
Defines the interface for payments.

Namespace

Drupal\commerce_payment\Entity

Code

public function setAmount(Price $amount);