mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
add function to retreive Currency
This commit is contained in:
parent
cd0456e1be
commit
833886f970
|
|
@ -96,4 +96,15 @@ final class Money extends FloatInt
|
|||
{
|
||||
return ($this->position === 0 && !empty($this->symbol) ? $this->symbol . ' ' : '') . $this->getAmount($decimals) . ($this->position === 1 ? ' ' . $this->symbol : '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get currency symbol
|
||||
*
|
||||
* @return string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCurrencySymbol() : string
|
||||
{
|
||||
return $this->symbol;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user