| Conditions | 4 |
| Paths | 5 |
| Total Lines | 29 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 28 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | public function manualMapping(array $arr) |
|
| 24 | { |
||
| 25 | 1 | foreach ($arr as $assetPair => $data) { |
|
| 26 | 1 | $fees = []; |
|
| 27 | 1 | foreach ($data["fees"] as $feeData) { |
|
| 28 | 1 | $fees[] = new FeeModel($feeData[0], $feeData[1]); |
|
| 29 | 1 | } |
|
| 30 | 1 | $feesMaker = []; |
|
| 31 | 1 | foreach ($data["fees_maker"] as $feeData) { |
|
| 32 | 1 | $feesMaker[] = new FeeModel($feeData[0], $feeData[1]); |
|
| 33 | 1 | } |
|
| 34 | 1 | $this->tradableAssets[] = new AssetPairModel( |
|
| 35 | 1 | $assetPair, |
|
| 36 | 1 | $data["altname"], |
|
| 37 | 1 | $data["aclass_base"], |
|
| 38 | 1 | $data["base"], |
|
| 39 | 1 | $data["aclass_quote"], |
|
| 40 | 1 | $data["quote"], |
|
| 41 | 1 | $data["lot"], |
|
| 42 | 1 | $data["pair_decimals"], |
|
| 43 | 1 | $data["lot_decimals"], |
|
| 44 | 1 | $data["lot_multiplier"], |
|
| 45 | 1 | $data["leverage_buy"], |
|
| 46 | 1 | $data["leverage_sell"], |
|
| 47 | 1 | $fees, |
|
| 48 | 1 | $feesMaker, |
|
| 49 | 1 | $data["fee_volume_currency"], |
|
| 50 | 1 | $data["margin_call"], |
|
| 51 | 1 | $data["margin_stop"] |
|
| 52 | 1 | ); |
|
| 64 |