Total Complexity | 7 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Market{ |
||
11 | |||
12 | private $blockchain; |
||
13 | |||
14 | public function __construct(Blockchain $blockchain){ |
||
15 | $this->blockchain = $blockchain; |
||
16 | } |
||
17 | |||
18 | const URL = 'https://blockchain.info/'; |
||
19 | |||
20 | private function Uri($uri){ |
||
21 | return self::URL.'/'.$uri; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param string $method |
||
26 | * @param string $uri |
||
27 | * @param array $params |
||
28 | * @return array|string |
||
29 | * @throws \Appino\Blockchain\Exception\HttpError |
||
30 | */ |
||
31 | private function call($method, $uri, $params = array()){ |
||
32 | return $this->blockchain->Request($method, $this->Uri($uri), $params); |
||
33 | } |
||
34 | |||
35 | public function Rates(){ |
||
42 | } |
||
43 | |||
44 | public function ToBTC($currency, $amount){ |
||
51 | } |
||
52 | |||
53 | public function ToSatoshi($currency, $amount){ |
||
62 |