| Conditions | 5 |
| Paths | 6 |
| Total Lines | 28 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 24 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 1 | public function manualMapping($result) |
|
| 35 | { |
||
| 36 | 1 | $this->currency = $result["currency"]; |
|
| 37 | 1 | $this->volume = $result["volume"]; |
|
| 38 | |||
| 39 | |||
| 40 | 1 | if (isset($result["fees"])) { |
|
| 41 | 1 | foreach ($result["fees"] as $fee) { |
|
| 42 | 1 | $this->fees[] = new FeeModel( |
|
| 43 | 1 | $fee["fee"], |
|
| 44 | 1 | $fee["minfee"], |
|
| 45 | 1 | $fee["maxfee"], |
|
| 46 | 1 | $fee["nextfee"], |
|
| 47 | 1 | $fee["nextvolume"], |
|
| 48 | 1 | $fee["tiervolume"] |
|
| 49 | 1 | ); |
|
| 50 | 1 | } |
|
| 51 | 1 | } |
|
| 52 | |||
| 53 | 1 | if (isset($result["fees_maker"])) { |
|
| 54 | 1 | foreach ($result["fees_maker"] as $fee) { |
|
| 55 | 1 | $this->feesMaker[] = new FeeModel( |
|
| 56 | 1 | $fee["fee"], |
|
| 57 | 1 | $fee["minfee"], |
|
| 58 | 1 | $fee["maxfee"], |
|
| 59 | 1 | $fee["nextfee"], |
|
| 60 | 1 | $fee["nextvolume"], |
|
| 61 | 1 | $fee["tiervolume"] |
|
| 62 | 1 | ); |
|
| 101 |