Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class AddOrderResponse implements ResponseInterface |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * order description info |
||
17 | * |
||
18 | * @var array |
||
19 | */ |
||
20 | private $descr; |
||
21 | |||
22 | /** |
||
23 | * Transaction id |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | private $txid; |
||
28 | |||
29 | /** |
||
30 | * @param array $result |
||
31 | */ |
||
32 | 1 | public function manualMapping($result) |
|
33 | { |
||
34 | 1 | $this->descr = $result['descr']['order']; |
|
35 | 1 | $this->txid = $result['txid'][0]; |
|
36 | 1 | } |
|
37 | |||
38 | |||
39 | /** |
||
40 | * @return array |
||
41 | */ |
||
42 | 1 | public function getDescr() |
|
43 | { |
||
44 | 1 | return $this->descr; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | 1 | public function getTxid() |
|
53 | } |
||
54 | } |
||
55 |