| Conditions | 2 |
| Paths | 2 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 1 | public function manualMapping($result) |
|
| 27 | { |
||
| 28 | 1 | $this->count = $result["count"]; |
|
| 29 | 1 | foreach ($result["trades"] as $trade) { |
|
| 30 | 1 | $this->trades[] = new Trade($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], $trade["misc"], $trade["closing"]); |
|
| 31 | 1 | } |
|
| 52 |