프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$currency | string | The current currency. | |
$currencySymbol | string | The current currency symbol. | |
$formatCurrencyUsing | callable | The custom currency formatter. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
guessCurrencySymbol ( string $currency ) : string | Guess the currency symbol for the given currency. |
public static formatAmount ( integer $amount ) : string | ||
$amount | integer | |
리턴 | string |
public static formatCurrencyUsing ( callable $callback ) : void | ||
$callback | callable | |
리턴 | void |
protected static guessCurrencySymbol ( string $currency ) : string | ||
$currency | string | |
리턴 | string |
public static useCurrencySymbol ( string $symbol ) : void | ||
$symbol | string | |
리턴 | void |
public static usesCurrency ( ) : string | ||
리턴 | string |
public static usesCurrencySymbol ( ) : string | ||
리턴 | string |
protected static string $currencySymbol | ||
리턴 | string |
protected static callable $formatCurrencyUsing | ||
리턴 | callable |