You are here

public function Currency::getNumericCode in Commerce Core 8.2

Gets the numeric currency code.

The numeric code has three digits, and the first one can be a zero, hence the need to pass it around as a string.

Return value

string The numeric currency code.

Overrides CurrencyInterface::getNumericCode

File

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

Class

Currency
Defines the currency entity class.

Namespace

Drupal\commerce_price\Entity

Code

public function getNumericCode() {
  return $this->numericCode;
}