| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 10 | trait Chunk |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param int $size |
||
| 14 | * @param array $options options, including: |
||
| 15 | * bool `preserveKeys` to prevent reindexing, default to false |
||
| 16 | * bool `decorate` to generate chains instead of arrays, default tu true |
||
| 17 | * |
||
| 18 | * @return self |
||
| 19 | */ |
||
| 20 | public function chunk(int $size, array $options = []): self |
||
| 37 |