| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0176 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 16 | 1236 | public function __construct(array $outputs = []) |
|
| 17 | { |
||
| 18 | 1236 | $this->set = new \SplFixedArray(count($outputs)); |
|
| 19 | 1236 | foreach ($outputs as $idx => $output) { |
|
| 20 | 399 | if (!$output instanceof TransactionOutputInterface) { |
|
| 21 | throw new \InvalidArgumentException('Must provide TransactionOutputInterface[] to TransactionOutputCollection'); |
||
| 22 | } |
||
| 23 | 399 | $this->set->offsetSet($idx, $output); |
|
| 24 | 1236 | } |
|
| 25 | 1236 | } |
|
| 26 | |||
| 58 |