Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
29 | 1 | public function manualMapping($data) |
|
30 | { |
||
31 | 1 | $this->last = $data["last"]; |
|
32 | |||
33 | 1 | foreach ($data as $assetPair => $assetDataArr) { |
|
34 | 1 | if ($assetPair == "last") { |
|
35 | 1 | continue; |
|
36 | } |
||
37 | |||
38 | 1 | foreach ($assetDataArr as $assetData) { |
|
39 | 1 | $this->ohlcDataModels[] = new OHLCDataModel($assetData[0], $assetData[1], $assetData[2], $assetData[3], |
|
40 | 1 | $assetData[4], $assetData[5], $assetData[6], $assetData[7]); |
|
41 | 1 | } |
|
61 |