EmptyCurrencyCode
extends CurrencyCode
in package
EmptyCurrencyCode
The purpose of this class is to return an empty string as representation of a empty currency code value.
Tags
Table of Contents
- $code : string
- Holds the currency code as a string.
- $currencyValue : float
- Holds the currency value as a decimal type.
- __construct() : mixed
- Override constructor, as no argument are passed, and therefore no validation is needed in this class.
- getCode() : string
- Get Code
- getCurrencyValue() : DecimalType
- Get Currency Value
Properties
$code
Holds the currency code as a string.
protected
string
$code
$currencyValue
Holds the currency value as a decimal type.
protected
float
$currencyValue
Methods
__construct()
Override constructor, as no argument are passed, and therefore no validation is needed in this class.
public
__construct() : mixed
Return values
mixed —getCode()
Get Code
public
getCode() : string
Returns the currency code as a string.
Return values
string —getCurrencyValue()
Get Currency Value
public
getCurrencyValue() : DecimalType
Returns the currency value as a decimal type.