Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function __construct(array $inputs = []) |
||
16 | { |
||
17 | $this->set = new \SplFixedArray(count($inputs)); |
||
18 | |||
19 | foreach ($inputs as $idx => $input) { |
||
20 | if (!$input instanceof TransactionInputWitnessInterface) { |
||
21 | throw new \InvalidArgumentException('Must provide TransactionInputWitnessInterface[] to TransactionWitnessCollection'); |
||
22 | } |
||
23 | |||
24 | $this->set->offsetSet($idx, $input); |
||
25 | } |
||
26 | } |
||
27 | |||
59 |