for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Appino\Blockchain\Objects;
class NotificationResponse{
public $id;
public $address;
public $height;
public $callback;
public $confs;
public $op;
public $onNotification;
public function __construct($params){
if(is_null($params))
return;
foreach ($params as $key => $value){
$this->{$key} = $value;
}
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) ."";