abstract class Openclerk\Currencies \ Cryptocurrency

All implemented interfaces:
Currency, AddressableCurrency, BalanceableCurrency, CurrencyInformation
All known direct subclasses:
Bitcoin,Blackcoin,Darkcoin,Digitalcoin,Dogecoin,Feathercoin,Hobonickels,Ixcoin,Litecoin,Megacoin,Namecoin,Netcoin,Novacoin,NuBits,NuShares,Nxt,Peercoin,Primecoin,Reddcoin,Ripple,Storjcoin,Terracoin,Vericoin,Vertcoin,Viacoin,Worldcoin

Represents a cryptocurrency.

This is the base interface; other interfaces will provide additional functionality as necessary. (from Currency)


Method Summary

Name Description
getAbbr() Get the currency code visible to users, which can be of any length and does not need to be unique (but should be). Often just the uppercase of #getCode.
getCurrency() Get the Currency for this CurrencyInformation.
isCommodity()
isCryptocurrency()
isFiat()

public function getAbbr()

Get the currency code visible to users, which can be of any length and does not need to be unique (but should be). Often just the uppercase of #getCode.


public function getCurrency()

Get the Currency for this CurrencyInformation. (from getCurrency)


public function isCommodity()

Returns:
true if this can be considered a "commodity", e.g. "ghs"

public function isCryptocurrency()

Returns:
true if this can be considered a "cryptocurrency", e.g. "btc"

public function isFiat()

Returns:
true if this can be considered a "fiat currency", e.g. "usd"