Completed
Push — master ( a2e898...5282a0 )
by Nathan
02:59 queued 59s
created

GetConnectionCount::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace ZenCash\Rpc\Command\Network;
4
5
use ZenCash\Rpc\Command;
6
7
final class GetConnectionCount implements Command
8
{
9
    private const METHOD = 'getconnectioncount';
10
11
    public function jsonSerialize(): object
12
    {
13
        return (object) [
14
            'jsonrpc' => Command::JSON_RPC_VERSION,
15
            'id'      => Command::ID,
16
            'method'  => self::METHOD
17
        ];
18
    }
19
}
20