Control::stop()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
}