Total Complexity | 10 |
Total Lines | 134 |
Duplicated Lines | 0 % |
Coverage | 93.1% |
Changes | 0 |
1 | <?php |
||
14 | class LedgerInfoModel |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $ledgerId; |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $refid; |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $time; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $type; |
||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $aclass; |
||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $asset; |
||
40 | /** |
||
41 | * @var float |
||
42 | */ |
||
43 | private $amount; |
||
44 | /** |
||
45 | * @var float |
||
46 | */ |
||
47 | private $fee; |
||
48 | /** |
||
49 | * @var float |
||
50 | */ |
||
51 | private $balance; |
||
52 | |||
53 | /** |
||
54 | * LedgerInfoModel constructor. |
||
55 | * @param string $ledgerId |
||
56 | * @param string $refid |
||
57 | * @param string $time |
||
58 | * @param string $type |
||
59 | * @param string $aclass |
||
60 | * @param string $asset |
||
61 | * @param float $amount |
||
62 | * @param float $fee |
||
63 | * @param float $balance |
||
64 | */ |
||
65 | 1 | public function __construct($ledgerId, $refid, $time, $type, $aclass, $asset, $amount, $fee, $balance) |
|
66 | { |
||
67 | 1 | $this->ledgerId = $ledgerId; |
|
68 | 1 | $this->refid = $refid; |
|
69 | 1 | $this->time = $time; |
|
70 | 1 | $this->type = $type; |
|
71 | 1 | $this->aclass = $aclass; |
|
72 | 1 | $this->asset = $asset; |
|
73 | 1 | $this->amount = $amount; |
|
74 | 1 | $this->fee = $fee; |
|
75 | 1 | $this->balance = $balance; |
|
76 | 1 | } |
|
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | 1 | public function getLedgerId() |
|
82 | { |
||
83 | 1 | return $this->ledgerId; |
|
84 | } |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | 1 | public function getRefid() |
|
90 | { |
||
91 | 1 | return $this->refid; |
|
92 | } |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | 1 | public function getTime() |
|
100 | } |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | 1 | public function getType() |
|
106 | { |
||
107 | 1 | return $this->type; |
|
108 | } |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getAclass() |
||
114 | { |
||
115 | return $this->aclass; |
||
116 | } |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | 1 | public function getAsset() |
|
122 | { |
||
123 | 1 | return $this->asset; |
|
124 | } |
||
125 | |||
126 | /** |
||
127 | * @return float |
||
128 | */ |
||
129 | 1 | public function getAmount() |
|
130 | { |
||
131 | 1 | return $this->amount; |
|
132 | } |
||
133 | |||
134 | /** |
||
135 | * @return float |
||
136 | */ |
||
137 | 1 | public function getFee() |
|
140 | } |
||
141 | |||
142 | /** |
||
143 | * @return float |
||
144 | */ |
||
145 | 1 | public function getBalance() |
|
148 | } |
||
149 | |||
150 | |||
151 | } |