for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Carpenstar\ByBitAPI\Core\Objects;
use Carpenstar\ByBitAPI\Core\Helpers\BoolHelper;
use Carpenstar\ByBitAPI\Core\Helpers\StringHelper;
use Carpenstar\ByBitAPI\Core\Interfaces\IResponseDataInterface;
use Carpenstar\ByBitAPI\Core\Objects\Collection\EntityCollection;
class ExceptionResponse implements IResponseDataInterface
{
private bool $isSuccess;
private string $retMsg;
private string $connectionId;
private \DateTime $time;
private string $reqId;
private string $operation;
public function __construct(array $data)
$this->isSuccess = BoolHelper::assign($data['success']);
$this->retMsg = StringHelper::assign($data['ret_msg']);
$this->connectionId = StringHelper::assign($data['conn_id']);
$this->reqId = StringHelper::assign($data['req_id']);
$this->operation = StringHelper::assign($data['op']);
$this->time = (new \DateTime());
$this->result = new EntityCollection();
result
}
public function isSuccess(): bool
return $this->isSuccess;
public function getReturnMessage(): string
return $this->retMsg;
public function getTime()
return $this->time;