public function Currency::setCurrencyCode in Price 2.x
Same name and namespace in other branches
- 8 src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()
- 3.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()
- 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setCurrencyCode()
- 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 110
Class
- Currency
- Defines the currency entity class.
Namespace
Drupal\price\EntityCode
public function setCurrencyCode($currency_code) {
$this->currencyCode = $currency_code;
return $this;
}