| 1 | <?php |
||
| 2 | |||
| 3 | namespace ZenCash\Rpc\Command\Wallet; |
||
| 4 | |||
| 5 | use ZenCash\Rpc\Command; |
||
| 6 | |||
| 7 | final class ZGetOperationStatus implements Command |
||
| 8 | { |
||
| 9 | private const METHOD = 'z_getoperationstatus'; |
||
| 10 | private $ids; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param string[] $ids |
||
| 14 | */ |
||
| 15 | public function __construct(array $ids) |
||
| 16 | { |
||
| 17 | call_user_func_array(function(string ...$ids) {}, $ids); |
||
|
0 ignored issues
–
show
|
|||
| 18 | |||
| 19 | 1 | $this->ids = $ids; |
|
| 20 | 1 | } |
|
| 21 | |||
| 22 | 1 | public function jsonSerialize(): object |
|
| 23 | { |
||
| 24 | return (object) [ |
||
| 25 | 1 | 'jsonrpc' => Command::JSON_RPC_VERSION, |
|
| 26 | 'id' => Command::ID, |
||
| 27 | 1 | 'method' => self::METHOD, |
|
| 28 | 1 | 'params' => [ $this->ids ] |
|
| 29 | ]; |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.