public function PriceModified::__toString in Price 3.0.x
Same name and namespace in other branches
- 8 src/PriceModified.php \Drupal\price\PriceModified::__toString()
- 3.x src/PriceModified.php \Drupal\price\PriceModified::__toString()
Gets the string representation of the price.
Return value
string The string representation of the price.
File
- src/
PriceModified.php, line 88
Class
- PriceModified
- Provides a value object for monetary values.
Namespace
Drupal\priceCode
public function __toString() {
return $this->modifier . ' ' . Calculator::trim($this->number) . ' ' . $this->currencyCode;
}