Conditions | 2 |
Paths | 2 |
Total Lines | 29 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Tests | 28 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
23 | 1 | public function manualMapping($result) |
|
24 | { |
||
25 | 1 | foreach ($result["closed"] as $txid => $orderData) { |
|
26 | 1 | $this->orders[] = new OrderModel( |
|
27 | 1 | $txid, |
|
28 | 1 | $orderData["closetm"], |
|
29 | 1 | $orderData["cost"], |
|
30 | 1 | new OrderTypeModel( |
|
31 | 1 | $orderData["descr"]["leverage"], |
|
32 | 1 | $orderData["descr"]["order"], |
|
33 | 1 | $orderData["descr"]["ordertype"], |
|
34 | 1 | $orderData["descr"]["pair"], |
|
35 | 1 | $orderData["descr"]["price"], |
|
36 | 1 | $orderData["descr"]["price2"], |
|
37 | 1 | $orderData["descr"]["type"] |
|
38 | 1 | ), |
|
39 | 1 | $orderData["expiretm"], |
|
40 | 1 | $orderData["fee"], |
|
41 | 1 | $orderData["misc"], |
|
42 | 1 | $orderData["oflags"], |
|
43 | 1 | $orderData["opentm"], |
|
44 | 1 | $orderData["price"], |
|
45 | 1 | $orderData["reason"], |
|
46 | 1 | $orderData["refid"], |
|
47 | 1 | $orderData["starttm"], |
|
48 | 1 | $orderData["status"], |
|
49 | 1 | $orderData["userref"], |
|
50 | 1 | $orderData["vol"], |
|
51 | 1 | $orderData["vol_exec"] |
|
52 | 1 | ); |
|
64 |