| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function manualMapping($result) |
|
| 28 | { |
||
| 29 | 1 | $this->count = $result["count"]; |
|
| 30 | 1 | foreach ($result["trades"] as $trade) { |
|
| 31 | 1 | if (!isset($trade["closing"])) { |
|
| 32 | $trade["closing"] = null; |
||
| 33 | } |
||
| 34 | 1 | $this->trades[] = new TradeModel($trade["ordertxid"], $trade["pair"], $trade["time"], $trade["type"], |
|
| 35 | 1 | $trade["ordertype"], $trade["price"], $trade["cost"], $trade["fee"], $trade["vol"], $trade["margin"], |
|
| 36 | 1 | $trade["misc"], $trade["closing"]); |
|
| 37 | 1 | } |
|
| 58 |