for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace BitWasp\Bitcoin\Networking;
use BitWasp\Bitcoin\Bitcoin;
use BitWasp\Bitcoin\Network\NetworkInterface;
use BitWasp\Bitcoin\Serializable;
abstract class NetworkSerializable extends Serializable implements NetworkSerializableInterface
{
/**
* @param NetworkInterface $network
* @return NetworkMessage
*/
public function getNetworkMessage(NetworkInterface $network = null): NetworkMessage
return new NetworkMessage(
$network ?: Bitcoin::getNetwork(),
$this
);
}