| Conditions | 3 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 5 | public function jsonSerialize(): object |
|
| 21 | { |
||
| 22 | 5 | return (object) array_merge( |
|
| 23 | 5 | [ 'txid' => $this->txid, 'vout' => $this->vout ], |
|
| 24 | 5 | !is_null($this->scriptPubKey) ? [ 'scriptPubKey' => $this->scriptPubKey ] : [ ], |
|
| 25 | 5 | !is_null($this->redeemScript) ? [ 'redeemScript' => $this->redeemScript ] : [ ] |
|
| 26 | ); |
||
| 29 |