for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Appino\Blockchain\Objects;
class LogResponse{
/**
* @var string
*/
public $callback;
public $called_at;
public $raw_response;
* @var int
public $response_code;
public function __construct($params){
if(is_null($params))
return;
$this->callback = data_get($params,'callback');
$this->called_at = data_get($params,'called_at');
$this->raw_response = data_get($params,'raw_response');
$this->response_code = data_get($params,'response_code');
}
public function __toString(){
$class_vars = get_class_vars(get_class($this));
$response = [];
foreach ($class_vars as $key => $value){
$response[$key] = $this->{$key};
return json_encode($response, JSON_THROW_ON_ERROR) ."";