Total Complexity | 8 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class ListSinceBlock implements Command |
||
8 | { |
||
9 | private const METHOD = 'listsinceblock'; |
||
10 | private $hash; |
||
11 | private $confirms; |
||
12 | private $watchOnly; |
||
13 | |||
14 | 4 | public function __construct(?string $blockHash, ?int $targetConfirmations, ?bool $includeWatchOnly) |
|
15 | { |
||
16 | 4 | $this->hash = $blockHash; |
|
17 | 4 | $this->confirms = $targetConfirmations; |
|
18 | 4 | $this->watchOnly = $includeWatchOnly; |
|
19 | 4 | } |
|
20 | |||
21 | 4 | public function jsonSerialize(): object |
|
33 | ) |
||
34 | ]; |
||
37 |