[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
plugins
/
paymethod
/
paypal
/
vendor
/
moneyphp
/
money
/
src
/
Currencies
/
[
Home
]
File: BitcoinCurrencies.php
<?php namespace Money\Currencies; use Money\Currencies; use Money\Currency; use Money\Exception\UnknownCurrencyException; /** * @author Frederik Bosch <f.bosch@genkgo.nl> */ final class BitcoinCurrencies implements Currencies { const CODE = 'XBT'; const SYMBOL = "\xC9\x83"; /** * {@inheritdoc} */ public function contains(Currency $currency) { return self::CODE === $currency->getCode(); } /** * {@inheritdoc} */ public function subunitFor(Currency $currency) { if ($currency->getCode() !== self::CODE) { throw new UnknownCurrencyException( $currency->getCode().' is not bitcoin and is not supported by this currency repository' ); } return 8; } /** * {@inheritdoc} */ public function getIterator() { return new \ArrayIterator([new Currency(self::CODE)]); } }