You are here

public function Currency::setCurrencyCode in Price 3.x

Same name and namespace in other branches
  1. 8 src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()
  2. 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()
  3. 2.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()
  4. 3.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()

Sets the alphabetic currency code.

Parameters

string $currency_code: The alphabetic currency code.

Return value

$this

Overrides CurrencyInterface::setCurrencyCode

File

src/Entity/Currency.php, line 107

Class

Currency
Defines the currency entity class.

Namespace

Drupal\price\Entity

Code

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