| Conditions | 5 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | protected function doFetch() |
||
| 34 | { |
||
| 35 | while ($element = $this->iterator->fetch()) { |
||
| 36 | if ($this->endPosition !== null && $this->position >= $this->endPosition) { |
||
| 37 | return null; |
||
| 38 | } elseif ($this->position >= $this->startPosition) { |
||
| 39 | $this->position++; |
||
| 40 | |||
| 41 | return $element; |
||
| 42 | } else { |
||
| 43 | $this->position++; |
||
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 |