| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class NetworkFactory |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @return NetworkInterface |
||
| 11 | * @throws \Exception |
||
| 12 | */ |
||
| 13 | 85 | public static function bitcoin(): NetworkInterface |
|
| 14 | { |
||
| 15 | 85 | return new Networks\Bitcoin(); |
|
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return NetworkInterface |
||
| 20 | * @throws \Exception |
||
| 21 | */ |
||
| 22 | 11 | public static function bitcoinTestnet(): NetworkInterface |
|
| 23 | { |
||
| 24 | 11 | return new Networks\BitcoinTestnet(); |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return NetworkInterface |
||
| 29 | * @throws \Exception |
||
| 30 | */ |
||
| 31 | 2 | public static function bitcoinRegtest(): NetworkInterface |
|
| 34 | } |
||
| 35 | } |
||
| 36 |