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 \DateTime $time;
public function __construct(array $data)
$this->isSuccess = BoolHelper::assign($data['success']);
$this->retMsg = StringHelper::assign($data['ret_msg']);
$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(): \DateTime
return $this->time;