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