Control   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 32
rs 10
c 2
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getInfo() 0 4 1
A help() 0 4 1
A stop() 0 4 1
1
<?php
2
/**
3
 * User: delboy1978uk
4
 * Date: 18/08/15
5
 * Time: 19:49
6
 */
7
8
namespace Del\Bitcoin\Api;
9
10
11
class Control extends AbstractApi
12
{
13
    /**
14
     * The getinfo RPC prints various information about the node and the network.
15
     * @return mixed
16
     */
17
    public function getInfo()
18
    {
19
        return $this->send('getinfo');
20
    }
21
22
    /**
23
     * The help RPC lists all available public RPC commands,
24
     * or gets help for the specified RPC. Commands which are
25
     * unavailable will not be listed, such as wallet RPCs if
26
     * wallet support is disabled.
27
     * @return mixed
28
     */
29
    public function help()
30
    {
31
        return $this->send('help');
32
    }
33
34
    /**
35
     * The stop RPC safely shuts down the Bitcoin Core server.
36
     * @return mixed
37
     */
38
    public function stop()
39
    {
40
        return $this->send('stop');
41
    }
42
}