Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | final class AddNode implements Command |
||
9 | { |
||
10 | private const METHOD = 'addnode'; |
||
11 | private $node; |
||
12 | private $command; |
||
13 | |||
14 | 1 | public function __construct(string $node, CommandEnum $command) |
|
15 | { |
||
16 | 1 | $this->node = $node; |
|
17 | 1 | $this->command = $command; |
|
18 | 1 | } |
|
19 | |||
20 | 1 | public function jsonSerialize(): object |
|
27 | ]; |
||
28 | } |
||
30 |