You are here

public function Currency::setFractionDigits in Price 2.0.x

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

Sets the number of fraction digits.

Parameters

int $fraction_digits: The number of fraction digits.

Return value

$this

Overrides CurrencyInterface::setFractionDigits

File

src/Entity/Currency.php, line 170

Class

Currency
Defines the currency entity class.

Namespace

Drupal\price\Entity

Code

public function setFractionDigits($fraction_digits) {
  $this->fractionDigits = $fraction_digits;
  return $this;
}