You are here

public function SupportedCurrency::__construct in Payment 8.2

Constructs a new instance.

Parameters

string $currency_code: The currency code.

int|float|null $minimum_amount: The minimum amount or NULL if there is no minimum amount.

int|float|null @$maximum_amount: The maximum amount or NULL if there is no maximum amount.

File

src/Plugin/Payment/Method/SupportedCurrency.php, line 41

Class

SupportedCurrency
Provides a currency that is supported by a payment method.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function __construct($currency_code, $minimum_amount = NULL, $maximum_amount = NULL) {
  $this->currencyCode = $currency_code;
  $this->minimumAmount = $minimum_amount;
  $this->maximumAmount = $maximum_amount;
}