Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
37 | private function createEventGenerator(): Generator |
||
38 | { |
||
39 | yield new Event\BeforeArrayEvent($this); |
||
40 | |||
41 | foreach ($this->values as $index => $value) { |
||
42 | yield new Event\ElementEvent($index, new Path); |
||
43 | yield from $value->createEventIterator(); |
||
44 | } |
||
45 | yield new Event\AfterArrayEvent($this); |
||
46 | } |
||
48 |