You are here

public function Currency::setSymbol in Price 3.0.x

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

Sets the currency symbol.

Parameters

string $symbol: The currency symbol.

Return value

$this

Overrides CurrencyInterface::setSymbol

File

src/Entity/Currency.php, line 152

Class

Currency
Defines the currency entity class.

Namespace

Drupal\price\Entity

Code

public function setSymbol($symbol) {
  $this->symbol = $symbol;
  return $this;
}