| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Manager implements IteratorAggregate |
||
| 9 | { |
||
| 10 | /** @var array */ |
||
| 11 | protected $rows = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param Closure $callback |
||
| 15 | * |
||
| 16 | * @return static |
||
| 17 | */ |
||
| 18 | public function row(Closure $callback) |
||
| 19 | { |
||
| 20 | $callback($row = new Row()); |
||
| 21 | |||
| 22 | $this->rows[] = $row; |
||
| 23 | |||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return \ArrayIterator|\Traversable |
||
| 29 | */ |
||
| 30 | public function getIterator(): \ArrayIterator |
||
| 33 | } |
||
| 34 | } |
||
| 35 |