| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | final class ZSendMany implements Command |
||
| 9 | { |
||
| 10 | private const METHOD = 'z_sendmany'; |
||
| 11 | private $fromAddress; |
||
| 12 | private $amounts; |
||
| 13 | private $minConf; |
||
| 14 | private $fee; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param string $fromAddress |
||
| 18 | * @param Amount[] $amounts |
||
| 19 | * @param int $minConfig |
||
| 20 | * @param float $fee |
||
| 21 | */ |
||
| 22 | public function __construct(string $fromAddress, array $amounts, int $minConf = 1, float $fee = 0.0001) |
||
| 23 | { |
||
| 24 | call_user_func_array(function(Amount ...$amounts) {}, $amounts); |
||
|
|
|||
| 25 | |||
| 26 | 2 | $this->fromAddress = $fromAddress; |
|
| 27 | 2 | $this->amounts = $amounts; |
|
| 28 | 2 | $this->minConf = $minConf; |
|
| 29 | 2 | $this->fee = $fee; |
|
| 30 | 2 | } |
|
| 31 | |||
| 32 | 2 | public function jsonSerialize(): object |
|
| 43 | ] |
||
| 44 | ]; |
||
| 47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.