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