Total Complexity | 6 |
Total Lines | 108 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class Currency extends AbstractResponse |
||
22 | { |
||
23 | public const DEPOSIT_ADDRESS_POLONIEX_WALLET = 'poloniexwallet'; |
||
24 | public const DEPOSIT_ADDRESS_POLONIEX = 'poloniex'; |
||
25 | |||
26 | /** |
||
27 | * Example: 293 |
||
28 | * |
||
29 | * @var int |
||
30 | */ |
||
31 | public $id; |
||
32 | |||
33 | /** |
||
34 | * Example: "Peercoin" |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | public $name; |
||
39 | |||
40 | /** |
||
41 | * Example: "0.00500000" |
||
42 | * |
||
43 | * @var float |
||
44 | */ |
||
45 | public $txFee; |
||
46 | |||
47 | /** |
||
48 | * Example: 35 |
||
49 | * |
||
50 | * @var int |
||
51 | */ |
||
52 | public $minConf; |
||
53 | |||
54 | /** |
||
55 | * Example: 1VQpANF1pcKHPRAsZpeyG4jLDd1kbPn32YMeXkr9n8jNFvf8aaJdecB3FyAvo7X1DWJDQt3nii9eUTP5kJSfRpL5AwT72FM |
||
56 | * Can also contain "poloniex" or "poloniexwallet" |
||
57 | * |
||
58 | * @var string|null |
||
59 | */ |
||
60 | public $depositAddress; |
||
61 | |||
62 | /** |
||
63 | * @var bool |
||
64 | */ |
||
65 | public $disabled; |
||
66 | |||
67 | /** |
||
68 | * @var bool |
||
69 | */ |
||
70 | public $delisted; |
||
71 | |||
72 | /** |
||
73 | * @var bool |
||
74 | */ |
||
75 | public $frozen; |
||
76 | |||
77 | /** |
||
78 | * @internal |
||
79 | * @param int $id |
||
80 | */ |
||
81 | public function setId(int $id): void |
||
82 | { |
||
83 | $this->id = $id; |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * @internal |
||
88 | * @param float $txFee |
||
89 | */ |
||
90 | public function setTxFee(float $txFee): void |
||
91 | { |
||
92 | $this->txFee = $txFee; |
||
93 | } |
||
94 | |||
95 | /** |
||
96 | * @internal |
||
97 | * @param int $minConf |
||
98 | */ |
||
99 | public function setMinConf(int $minConf): void |
||
100 | { |
||
101 | $this->minConf = $minConf; |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * @internal |
||
106 | * @param bool $disabled |
||
107 | */ |
||
108 | public function setDisabled(bool $disabled): void |
||
109 | { |
||
110 | $this->disabled = $disabled; |
||
111 | } |
||
112 | |||
113 | /** |
||
114 | * @internal |
||
115 | * @param bool $delisted |
||
116 | */ |
||
117 | public function setDelisted(bool $delisted): void |
||
118 | { |
||
119 | $this->delisted = $delisted; |
||
120 | } |
||
121 | |||
122 | /** |
||
123 | * @internal |
||
124 | * @param bool $frozen |
||
125 | */ |
||
126 | public function setFrozen(bool $frozen): void |
||
129 | } |
||
130 | } |