Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | protected function ensureBatchPresent() |
||
45 | { |
||
46 | if(!is_null(key($this->chunk))) { |
||
47 | // chunk not completely fetched; |
||
48 | return; |
||
49 | } |
||
50 | $inner = $this->getInnerIterator(); |
||
51 | for($i = 0; $i < $this->chunkSize && $inner->valid(); $i++) { |
||
52 | $this->chunk[] = $inner->current(); |
||
53 | $inner->next(); |
||
54 | } |
||
55 | } |
||
56 | |||
81 |