for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\WebSockets\Derivatives\PublicChannels\Liquidation\Entity;
use Carpenstar\ByBitAPI\Core\Helpers\DateTimeHelper;
use Carpenstar\ByBitAPI\Core\Objects\AbstractResponse;
class LiquidationResponseItem extends AbstractResponse
{
private \DateTime $updatedTime;
private string $symbol;
private float $size;
private float $price;
private string $side;
public function __construct(array $data)
$this->updatedTime = DateTimeHelper::makeFromTimestamp($data['updatedTime']);
$this->symbol = $data['symbol'];
$this->size = $data['size'];
$this->price = $data['price'];
$this->side = $data['side'];
}
public function getUpdatedTime(): \DateTime
return $this->updatedTime;
public function getSymbol(): string
return $this->symbol;
public function getSize(): float
return $this->size;
public function getPrice(): float
return $this->price;
public function getSide(): string
return $this->side;