| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class CreateRawTransaction implements Command |
||
| 8 | { |
||
| 9 | private const METHOD = 'createrawtransaction'; |
||
| 10 | private $transactions; |
||
| 11 | private $recipients; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param RawTransaction[] $transactions |
||
| 15 | * @param Recipient[] $recipients |
||
| 16 | */ |
||
| 17 | public function __construct(array $transactions, array $recipients) |
||
| 18 | { |
||
| 19 | call_user_func_array(function(RawTransaction ...$t) {}, $transactions); |
||
|
|
|||
| 20 | call_user_func_array(function(Recipient ...$r) {}, $recipients); |
||
| 21 | |||
| 22 | 2 | $this->transactions = $transactions; |
|
| 23 | 2 | $this->recipients = $recipients; |
|
| 24 | 2 | } |
|
| 25 | |||
| 26 | 2 | public function jsonSerialize(): object |
|
| 39 | ]; |
||
| 40 | } |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.