| Conditions | 3 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function mergeWithIterator(iterable $changes) : self |
||
| 57 | { |
||
| 58 | $instance = new self(); |
||
| 59 | |||
| 60 | $instance->changes = []; |
||
| 61 | $instance->generator = (function () use ($changes) : Generator { |
||
| 62 | foreach ($this as $change) { |
||
| 63 | yield $change; |
||
| 64 | } |
||
| 65 | |||
| 66 | foreach ($changes as $change) { |
||
| 67 | yield $change; |
||
| 68 | } |
||
| 69 | })(); |
||
| 70 | |||
| 71 | return $instance; |
||
| 72 | } |
||
| 116 |