Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
17 | final class BitcoinCurrencies implements Currencies |
||
18 | { |
||
19 | public const BTC = 'BTC'; |
||
20 | public const XBT = 'XBT'; |
||
21 | |||
22 | public const SYMBOL = "\u{20BF}"; |
||
23 | |||
24 | public function contains(Currency $currency): bool |
||
25 | { |
||
26 | return in_array($currency->getCode(), [self::BTC, self::XBT]); |
||
27 | } |
||
28 | |||
29 | public function subunitFor(Currency $currency): int |
||
38 | } |
||
39 | |||
40 | public function getIterator(): Traversable |
||
48 |