PHP Class Bitpay\Currency

See also: http://en.wikipedia.org/wiki/ISO_4217
Inheritance: implements bitpay\CurrencyInterface
Afficher le fichier Open project: bitpay/php-client

Protected Properties

Свойство Type Description
$alts array
$availableCurrencies array
$code string
$exchangePercentageFee string
$name string
$payoutEnabled boolean
$payoutFields array
$pluralName string
$precision integer
$symbol string

Méthodes publiques

Méthode Description
__construct ( string $code = null )
getAlts ( )
getCode ( )
getExchangePctFee ( )
getName ( )
getPayoutFields ( )
getPluralName ( )
getPrecision ( )
getSymbol ( )
isPayoutEnabled ( )
setAlts ( array $alts ) : bitpay\CurrencyInterface
setCode ( string $code ) : bitpay\CurrencyInterface This will change the $code to all uppercase
setExchangePctFee ( string $fee ) : bitpay\CurrencyInterface
setName ( string $name ) : bitpay\CurrencyInterface
setPayoutEnabled ( boolean $enabled ) : bitpay\CurrencyInterface
setPayoutFields ( array $payoutFields ) : bitpay\CurrencyInterface
setPluralName ( string $pluralName ) : bitpay\CurrencyInterface
setPrecision ( integer $precision ) : bitpay\CurrencyInterface
setSymbol ( string $symbol ) : bitpay\CurrencyInterface

Method Details

__construct() public méthode

public __construct ( string $code = null )
$code string The Currency Code to use, ie USD

getAlts() public méthode

public getAlts ( )

getCode() public méthode

public getCode ( )

getExchangePctFee() public méthode

public getExchangePctFee ( )

getName() public méthode

public getName ( )

getPayoutFields() public méthode

public getPayoutFields ( )

getPluralName() public méthode

public getPluralName ( )

getPrecision() public méthode

public getPrecision ( )

getSymbol() public méthode

public getSymbol ( )

isPayoutEnabled() public méthode

public isPayoutEnabled ( )

setAlts() public méthode

public setAlts ( array $alts ) : bitpay\CurrencyInterface
$alts array
Résultat bitpay\CurrencyInterface

setCode() public méthode

This will change the $code to all uppercase
public setCode ( string $code ) : bitpay\CurrencyInterface
$code string The Currency Code to use, ie USD
Résultat bitpay\CurrencyInterface

setExchangePctFee() public méthode

public setExchangePctFee ( string $fee ) : bitpay\CurrencyInterface
$fee string
Résultat bitpay\CurrencyInterface

setName() public méthode

public setName ( string $name ) : bitpay\CurrencyInterface
$name string
Résultat bitpay\CurrencyInterface

setPayoutEnabled() public méthode

public setPayoutEnabled ( boolean $enabled ) : bitpay\CurrencyInterface
$enabled boolean
Résultat bitpay\CurrencyInterface

setPayoutFields() public méthode

public setPayoutFields ( array $payoutFields ) : bitpay\CurrencyInterface
$payoutFields array
Résultat bitpay\CurrencyInterface

setPluralName() public méthode

public setPluralName ( string $pluralName ) : bitpay\CurrencyInterface
$pluralName string
Résultat bitpay\CurrencyInterface

setPrecision() public méthode

public setPrecision ( integer $precision ) : bitpay\CurrencyInterface
$precision integer
Résultat bitpay\CurrencyInterface

setSymbol() public méthode

public setSymbol ( string $symbol ) : bitpay\CurrencyInterface
$symbol string
Résultat bitpay\CurrencyInterface

Property Details

$alts protected_oe property

protected array $alts
Résultat array

$availableCurrencies protected_oe static_oe property

See also: https://bitpay.com/currencies
protected static array $availableCurrencies
Résultat array

$code protected_oe property

protected string $code
Résultat string

$exchangePercentageFee protected_oe property

protected string $exchangePercentageFee
Résultat string

$name protected_oe property

protected string $name
Résultat string

$payoutEnabled protected_oe property

protected bool $payoutEnabled
Résultat boolean

$payoutFields protected_oe property

protected array $payoutFields
Résultat array

$pluralName protected_oe property

protected string $pluralName
Résultat string

$precision protected_oe property

protected int $precision
Résultat integer

$symbol protected_oe property

protected string $symbol
Résultat string