You are here

public function Payment::setCurrencyCode in Payment 8.2

Sets the line items' ISO 4217 currency code.

Parameters

string $currency_code:

Return value

static

Overrides LineItemCollectionInterface::setCurrencyCode

File

src/Entity/Payment.php, line 124

Class

Payment
Defines a payment entity.

Namespace

Drupal\payment\Entity

Code

public function setCurrencyCode($currency_code) {
  $this
    ->set('currency', $currency_code);
  return $this;
}