@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | use Appino\Blockchain\Objects\Cache; |
| 6 | 6 | |
| 7 | -class AccountResponse{ |
|
| 7 | +class AccountResponse { |
|
| 8 | 8 | /** |
| 9 | 9 | * @var string |
| 10 | 10 | */ |
@@ -55,17 +55,17 @@ discard block |
||
| 55 | 55 | * @param $json array|object |
| 56 | 56 | */ |
| 57 | 57 | |
| 58 | - public function __construct($json){ |
|
| 59 | - $this->balance = data_get($json,'balance'); |
|
| 60 | - $this->label = data_get($json,'address'); |
|
| 61 | - $this->index = data_get($json,'label'); |
|
| 62 | - $this->archived = data_get($json,'archived'); |
|
| 63 | - $this->extendedPublicKey = data_get($json,'extendedPublicKey'); |
|
| 64 | - $this->extendedPrivateKey = data_get($json,'extendedPrivateKey'); |
|
| 65 | - $this->receiveIndex = data_get($json,'receiveIndex'); |
|
| 66 | - $this->lastUsedReceiveIndex = data_get($json,'lastUsedReceiveIndex'); |
|
| 67 | - $this->receiveAddress = data_get($json,'receiveAddress'); |
|
| 68 | - $this->cahce = new Cache(data_get($json,'cache')); |
|
| 58 | + public function __construct($json) { |
|
| 59 | + $this->balance = data_get($json, 'balance'); |
|
| 60 | + $this->label = data_get($json, 'address'); |
|
| 61 | + $this->index = data_get($json, 'label'); |
|
| 62 | + $this->archived = data_get($json, 'archived'); |
|
| 63 | + $this->extendedPublicKey = data_get($json, 'extendedPublicKey'); |
|
| 64 | + $this->extendedPrivateKey = data_get($json, 'extendedPrivateKey'); |
|
| 65 | + $this->receiveIndex = data_get($json, 'receiveIndex'); |
|
| 66 | + $this->lastUsedReceiveIndex = data_get($json, 'lastUsedReceiveIndex'); |
|
| 67 | + $this->receiveAddress = data_get($json, 'receiveAddress'); |
|
| 68 | + $this->cahce = new Cache(data_get($json, 'cache')); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | } |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | namespace Appino\Blockchain\Objects; |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -class PaymentResponse{ |
|
| 7 | +class PaymentResponse { |
|
| 8 | 8 | /** |
| 9 | 9 | * @var array of string |
| 10 | 10 | */ |
@@ -35,13 +35,13 @@ discard block |
||
| 35 | 35 | * @param $json array |
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | - public function __construct($json){ |
|
| 39 | - $this->to = data_get($json,'to'); |
|
| 40 | - $this->from = data_get($json,'from'); |
|
| 41 | - $this->amount = data_get($json,'amount'); |
|
| 42 | - $this->fee = data_get($json,'fee'); |
|
| 43 | - $this->txid = data_get($json,'txid'); |
|
| 44 | - $this->success = data_get($json,'success'); |
|
| 38 | + public function __construct($json) { |
|
| 39 | + $this->to = data_get($json, 'to'); |
|
| 40 | + $this->from = data_get($json, 'from'); |
|
| 41 | + $this->amount = data_get($json, 'amount'); |
|
| 42 | + $this->fee = data_get($json, 'fee'); |
|
| 43 | + $this->txid = data_get($json, 'txid'); |
|
| 44 | + $this->success = data_get($json, 'success'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | } |