1 | <?php |
||
21 | class Bitcoin |
||
22 | { |
||
23 | /** @var array */ |
||
24 | private $config; |
||
25 | |||
26 | /** @var array */ |
||
27 | private $api; |
||
28 | |||
29 | public function __construct($config = null) |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | * @throws \Exception |
||
39 | */ |
||
40 | public function getConfig() |
||
52 | |||
53 | |||
54 | /** |
||
55 | * @param array $config |
||
56 | * @return $this |
||
57 | */ |
||
58 | public function setConfig(array $config) |
||
63 | |||
64 | /** |
||
65 | * @return Blockchain |
||
66 | */ |
||
67 | public function getBlockchainApi() |
||
74 | |||
75 | /** |
||
76 | * @return Control |
||
77 | */ |
||
78 | public function getControlApi() |
||
85 | |||
86 | /** |
||
87 | * @return Generating |
||
88 | */ |
||
89 | public function getGeneratingApi() |
||
96 | |||
97 | /** |
||
98 | * @return Mining |
||
99 | */ |
||
100 | public function getMiningApi() |
||
107 | |||
108 | /** |
||
109 | * @return Network |
||
110 | */ |
||
111 | public function getNetworkApi() |
||
118 | |||
119 | /** |
||
120 | * @return RawTransaction |
||
121 | */ |
||
122 | public function getRawTransactionApi() |
||
129 | |||
130 | /** |
||
131 | * @return Utility |
||
132 | */ |
||
133 | public function getUtilityApi() |
||
140 | |||
141 | /** |
||
142 | * @return Wallet |
||
143 | */ |
||
144 | public function getWalletApi() |
||
151 | |||
152 | } |