GetInfo   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 6 1
1
<?php
2
3
namespace ZenCash\Rpc\Command\Control;
4
5
use ZenCash\Rpc\Command;
6
7
final class GetInfo implements Command
8
{
9
    private const METHOD = 'getinfo';
10
11 1
    public function jsonSerialize(): object
12
    {
13
        return (object) [
14 1
            'jsonrpc' => Command::JSON_RPC_VERSION,
15
            'id'      => Command::ID,
16 1
            'method'  => self::METHOD
17
        ];
18
    }
19
}
20