| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public function getIterator(): Traversable |
||
| 47 | { |
||
| 48 | $indexes = $this->predictableRandomArray( |
||
| 49 | range(0, iterator_count($this->iteratorAggregate->getIterator()) - 1), |
||
| 50 | $this->seed |
||
| 51 | ); |
||
| 52 | |||
| 53 | $i = 0; |
||
| 54 | |||
| 55 | foreach ($indexes as $index) { |
||
| 56 | foreach ($this->iteratorAggregate as $k => $v) { |
||
| 57 | if ($indexes[$index] === $i++) { |
||
| 58 | yield $k => $v; |
||
| 59 | $i = 0; |
||
| 60 | |||
| 61 | continue 2; |
||
| 62 | } |
||
| 81 |