public
__construct( $amount, $currency )
get_amount( )
get_currency( )
add( $money )
subtract( $money )
convert( $new_currency, $conversion_ratio )
Convert to a new currency.
The ratio expresses the amount of the new currency equal to one unit of the existing currency. For example to convert GBP to USD (assuming 1 GBP = 1.33 USD), pass 1.33
equals( $money )
compare( $money )
private
assert_same_currency( $money )
is_in_currency( $currency )
is_same_currency( $money )
minimum( )
maximum( )
is_integer( $val )
Amount, expressed in the smallest units of $currency (eg cents)