@@ 30-42 (lines=13) @@ | ||
27 | { |
|
28 | $this->count = $result["count"]; |
|
29 | ||
30 | foreach ($result["ledger"] as $ledgerId => $ledger) { |
|
31 | $this->ledgerInfos[] = new LedgerInfoModel( |
|
32 | $ledgerId, |
|
33 | $ledger['refid'], |
|
34 | $ledger['time'], |
|
35 | $ledger['type'], |
|
36 | $ledger['aclass'], |
|
37 | $ledger['asset'], |
|
38 | $ledger['amount'], |
|
39 | $ledger['fee'], |
|
40 | $ledger['balance'] |
|
41 | ); |
|
42 | } |
|
43 | } |
|
44 | ||
45 | /** |
@@ 24-36 (lines=13) @@ | ||
21 | */ |
|
22 | public function manualMapping($result) |
|
23 | { |
|
24 | foreach ($result as $ledgerId => $ledger) { |
|
25 | $this->ledgerInfos[] = new LedgerInfoModel( |
|
26 | $ledgerId, |
|
27 | $ledger['refid'], |
|
28 | $ledger['time'], |
|
29 | $ledger['type'], |
|
30 | $ledger['aclass'], |
|
31 | $ledger['asset'], |
|
32 | $ledger['amount'], |
|
33 | $ledger['fee'], |
|
34 | $ledger['balance'] |
|
35 | ); |
|
36 | } |
|
37 | } |
|
38 | ||
39 | /** |