public function Currency::setFractionDigits in Commerce Core 8.2
Sets the number of fraction digits.
Parameters
int $fraction_digits: The number of fraction digits.
Return value
$this
Overrides CurrencyInterface::setFractionDigits
File
- modules/
price/ src/ Entity/ Currency.php, line 170
Class
- Currency
- Defines the currency entity class.
Namespace
Drupal\commerce_price\EntityCode
public function setFractionDigits($fraction_digits) {
$this->fractionDigits = $fraction_digits;
return $this;
}