Total Complexity | 4 |
Total Lines | 89 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | class OrderStatus extends AbstractResponse |
||
23 | { |
||
24 | public const STATUS_OPEN = 'Open'; |
||
25 | public const STATUS_PARTIALLY_FILLED = 'Partially filled'; |
||
26 | |||
27 | public const TYPE_SELL = 'sell'; |
||
28 | public const TYPE_BUY = 'buy'; |
||
29 | |||
30 | use DateTrait; |
||
31 | |||
32 | /** |
||
33 | * Example: "Open" or "Partially filled" |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | public $status; |
||
38 | |||
39 | /** |
||
40 | * Example: "0.02300000" |
||
41 | * |
||
42 | * @var float |
||
43 | */ |
||
44 | public $rate; |
||
45 | |||
46 | /** |
||
47 | * Example: "0.04975764" |
||
48 | * |
||
49 | * @var float |
||
50 | */ |
||
51 | public $amount; |
||
52 | |||
53 | /** |
||
54 | * Example: "BTC_ETH" |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | public $currencyPair; |
||
59 | |||
60 | /** |
||
61 | * Example: "0.00114442" |
||
62 | * |
||
63 | * @var float |
||
64 | */ |
||
65 | public $total; |
||
66 | |||
67 | /** |
||
68 | * Example: "sell" |
||
69 | * |
||
70 | * @var string |
||
71 | */ |
||
72 | public $type; |
||
73 | |||
74 | /** |
||
75 | * Example: "0.04975764" |
||
76 | * |
||
77 | * @var float |
||
78 | */ |
||
79 | public $startingAmount; |
||
80 | |||
81 | /** |
||
82 | * @param float $amount |
||
83 | */ |
||
84 | public function setAmount(float $amount): void |
||
85 | { |
||
86 | $this->amount = $amount; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * @param float $rate |
||
91 | */ |
||
92 | public function setRate(float $rate): void |
||
93 | { |
||
94 | $this->rate = $rate; |
||
95 | } |
||
96 | |||
97 | /** |
||
98 | * @param float $total |
||
99 | */ |
||
100 | public function setTotal(float $total): void |
||
101 | { |
||
102 | $this->total = $total; |
||
103 | } |
||
104 | |||
105 | /** |
||
106 | * @param float $startingAmount |
||
107 | */ |
||
108 | public function setStartingAmount(float $startingAmount): void |
||
111 | } |
||
112 | } |