| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Pong extends NetworkSerializable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var BufferInterface |
||
| 16 | */ |
||
| 17 | private $nonce; |
||
| 18 | |||
| 19 | 9 | /** |
|
| 20 | * @param BufferInterface $nonce |
||
| 21 | 9 | */ |
|
| 22 | 9 | public function __construct(BufferInterface $nonce) |
|
| 28 | } |
||
| 29 | 9 | ||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | * @see https://en.bitcoin.it/wiki/Protocol_documentation#pong |
||
| 33 | */ |
||
| 34 | public function getNetworkCommand(): string |
||
| 35 | 9 | { |
|
| 36 | return Message::PONG; |
||
| 37 | 9 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @return BufferInterface |
||
| 41 | */ |
||
| 42 | public function getNonce(): BufferInterface |
||
| 45 | 9 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @return BufferInterface |
||
| 49 | */ |
||
| 50 | public function getBuffer(): BufferInterface |
||
| 55 |