Conditions | 4 |
Paths | 8 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function setConfig(array $config) |
||
34 | { |
||
35 | $protocol = isset($config['protocol']) ? $config['protocol'] : 'http'; |
||
36 | $host = isset($config['host']) ? $config['host'] : '127.0.0.1'; |
||
37 | $port = isset($config['port']) ? $config['port'] : '8332'; |
||
38 | $this->config = $config; |
||
39 | $this->host = $protocol . '://' . $host . ':' . $port; |
||
40 | $this->client = new Client(['base_uri' => $this->host]); |
||
41 | return $this; |
||
42 | } |
||
43 | |||
78 | } |