Passed
Push — master ( a802ac...f2ebae )
by Nathan
02:01
created

Stop   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 10
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 Stop implements Command
8
{
9
    private const METHOD = 'stop';
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