You are here

public function Currency::setCurrencyCode in Commerce Core 8.2

Sets the alphabetic currency code.

Parameters

string $currency_code: The alphabetic currency code.

Return value

$this

Overrides CurrencyInterface::setCurrencyCode

File

modules/price/src/Entity/Currency.php, line 110

Class

Currency
Defines the currency entity class.

Namespace

Drupal\commerce_price\Entity

Code

public function setCurrencyCode($currency_code) {
  $this->currencyCode = $currency_code;
  return $this;
}