Property | Type | Description | |
---|---|---|---|
$currency | string | The current currency. | |
$currencySymbol | string | The current currency symbol. | |
$formatCurrencyUsing | callable | The custom currency formatter. |
Method | Description | |
---|---|---|
formatAmount ( integer $amount ) : string | Format the given amount into a displayable currency. | |
formatCurrencyUsing ( callable $callback ) : void | Set the custom currency formatter. | |
useCurrency ( string $currency, string | null $symbol = null ) : void | Set the currency to be used when billing users. | |
useCurrencySymbol ( string $symbol ) : void | Set the currency symbol to be used when formatting currency. | |
usesCurrency ( ) : string | Get the currency currently in use. | |
usesCurrencySymbol ( ) : string | Get the currency symbol currently in use. |
Method | Description | |
---|---|---|
guessCurrencySymbol ( string $currency ) : string | Guess the currency symbol for the given currency. |
public static formatAmount ( integer $amount ) : string | ||
$amount | integer | |
return | string |
public static formatCurrencyUsing ( callable $callback ) : void | ||
$callback | callable | |
return | void |
protected static guessCurrencySymbol ( string $currency ) : string | ||
$currency | string | |
return | string |
public static useCurrencySymbol ( string $symbol ) : void | ||
$symbol | string | |
return | void |
public static usesCurrency ( ) : string | ||
return | string |
public static usesCurrencySymbol ( ) : string | ||
return | string |
protected static string $currency | ||
return | string |
protected static string $currencySymbol | ||
return | string |
protected static callable $formatCurrencyUsing | ||
return | callable |