Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
17 | final class SatoshiCurrencies implements Currencies |
||
18 | { |
||
19 | public const SAT = 'SAT'; |
||
20 | public const MSAT = 'MSAT'; |
||
21 | |||
22 | public const SYMBOL = ''; |
||
23 | |||
24 | public function contains(Currency $currency): bool |
||
27 | } |
||
28 | |||
29 | public function subunitFor(Currency $currency): int |
||
30 | { |
||
31 | if (!$this->contains($currency)) { |
||
32 | throw new UnknownCurrencyException( |
||
33 | $currency.' is not Satoshi and is not supported by this currency repository.' |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | return 0; |
||
38 | } |
||
39 | |||
40 | public function getIterator(): Traversable |
||
45 | ]); |
||
46 | } |
||
48 |