PHP 클래스 Laravel\Cashier\Cashier

파일 보기 프로젝트 열기: laravel/cashier-braintree 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

formatAmount() 공개 정적인 메소드

Format the given amount into a displayable currency.
public static formatAmount ( integer $amount ) : string
$amount integer
리턴 string

formatCurrencyUsing() 공개 정적인 메소드

Set the custom currency formatter.
public static formatCurrencyUsing ( callable $callback ) : void
$callback callable
리턴 void

guessCurrencySymbol() 보호된 정적인 메소드

Guess the currency symbol for the given currency.
protected static guessCurrencySymbol ( string $currency ) : string
$currency string
리턴 string

useCurrency() 공개 정적인 메소드

Set the currency to be used when billing users.
public static useCurrency ( string $currency, string | null $symbol = null ) : void
$currency string
$symbol string | null
리턴 void

useCurrencySymbol() 공개 정적인 메소드

Set the currency symbol to be used when formatting currency.
public static useCurrencySymbol ( string $symbol ) : void
$symbol string
리턴 void

usesCurrency() 공개 정적인 메소드

Get the currency currently in use.
public static usesCurrency ( ) : string
리턴 string

usesCurrencySymbol() 공개 정적인 메소드

Get the currency symbol currently in use.
public static usesCurrencySymbol ( ) : string
리턴 string

프로퍼티 상세

$currency 보호되어 있는 정적으로 프로퍼티

The current currency.
protected static string $currency
리턴 string

$currencySymbol 보호되어 있는 정적으로 프로퍼티

The current currency symbol.
protected static string $currencySymbol
리턴 string

$formatCurrencyUsing 보호되어 있는 정적으로 프로퍼티

The custom currency formatter.
protected static callable $formatCurrencyUsing
리턴 callable