<?php declare(strict_types = 1);
class OrderFill {
public function __construct(
public float $timestampms,
public string $size,
public string $price,
public ?string $amount = NULL,
public string $fee_usd,
public string $exchangeOrderId,
public string $tradeId,
) {
var_dump($amount);
}
}
new OrderFill(
timestampms: 1.0,
size: "1",
price: "1",
fee_usd: "1",
exchangeOrderId: "1",
tradeId: "1",
);