You are here

public function Currency::setName in Commerce Core 8.2

Sets the currency name.

Parameters

string $name: The currency name.

Return value

$this

Overrides CurrencyInterface::setName

File

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

Class

Currency
Defines the currency entity class.

Namespace

Drupal\commerce_price\Entity

Code

public function setName($name) {
  $this->name = $name;
  return $this;
}