for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BitWasp\Bitcoin\Network;
class NetworkFactory
{
/**
* @return NetworkInterface
* @throws \Exception
*/
public static function bitcoin(): NetworkInterface
return new Networks\Bitcoin();
}
public static function bitcoinTestnet(): NetworkInterface
return new Networks\BitcoinTestnet();
public static function bitcoinRegtest(): NetworkInterface
return new Networks\BitcoinRegtest();