Conditions | 4 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
26 | 1 | public function manualMapping($result) |
|
27 | { |
||
28 | 1 | $this->last = $result["last"]; |
|
29 | 1 | foreach ($result as $assetName => $trades) { |
|
30 | 1 | if ($assetName == "last") { |
|
31 | 1 | continue; |
|
32 | } |
||
33 | 1 | foreach ($trades as $trade) { |
|
34 | 1 | $this->tradeModel[$assetName][] = new RecentTradeModel($trade[0], $trade[1], $trade[2], $trade[3], |
|
35 | 1 | $trade[4], $trade[5]); |
|
36 | 1 | } |
|
62 |