| Total Complexity | 3 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class ResultingTrade extends AbstractResponse |
||
| 22 | { |
||
| 23 | use DateTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Example: "338.8732" |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $amount; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Example: "0.00000173" |
||
| 34 | * |
||
| 35 | * @var float |
||
| 36 | */ |
||
| 37 | public $rate; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Example: 0.00058625 |
||
| 41 | * |
||
| 42 | * @var float |
||
| 43 | */ |
||
| 44 | public $total; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Example: 16164 |
||
| 48 | * |
||
| 49 | * @var int |
||
| 50 | */ |
||
| 51 | public $tradeId; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Example: "buy" or "sell" |
||
| 55 | * |
||
| 56 | * @var string |
||
| 57 | */ |
||
| 58 | public $type; |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @internal |
||
| 62 | * @param float $amount |
||
| 63 | */ |
||
| 64 | public function setAmount(float $amount): void |
||
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @internal |
||
| 71 | * @param float $rate |
||
| 72 | */ |
||
| 73 | public function setRate(float $rate): void |
||
| 74 | { |
||
| 75 | $this->rate = $rate; |
||
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @internal |
||
| 80 | * @param float $total |
||
| 81 | */ |
||
| 82 | public function setTotal(float $total): void |
||
| 85 | } |
||
| 86 | } |