Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class FeeFilter extends NetworkSerializable |
||
13 | { |
||
14 | /** |
||
15 | * Fee rate per 1000 bytes |
||
16 | * @var int |
||
17 | */ |
||
18 | protected $feeRate; |
||
19 | |||
20 | 3 | /** |
|
21 | * FeeFilter constructor. |
||
22 | 3 | * @param int $feeRate |
|
23 | 3 | */ |
|
24 | public function __construct(int $feeRate) |
||
25 | { |
||
26 | $this->feeRate = $feeRate; |
||
27 | } |
||
28 | 3 | ||
29 | /** |
||
30 | 3 | * @return int |
|
31 | */ |
||
32 | public function getFeeRate(): int |
||
35 | } |
||
36 | 3 | ||
37 | /** |
||
38 | 3 | * @return string |
|
39 | * @see https://en.bitcoin.it/wiki/Protocol_documentation#filterload.2C_filteradd.2C_filterclear.2C_merkleblock |
||
40 | */ |
||
41 | public function getNetworkCommand(): string |
||
44 | 3 | } |
|
45 | |||
46 | 3 | /** |
|
47 | * @return \BitWasp\Buffertools\BufferInterface |
||
48 | */ |
||
49 | public function getBuffer(): BufferInterface |
||
54 |