Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.1406 |
Changes | 0 |
1 | <?php |
||
53 | 1 | public function moveNext() |
|
54 | { |
||
55 | 1 | if (!$this->hasNext()) { |
|
56 | throw new IteratorException("No more records. Did you used hasNext() before moveNext()?"); |
||
57 | } |
||
58 | |||
59 | 1 | if ($row = $this->sparqlQuery->fetchArray()) { |
|
60 | 1 | $sr = new Row($row); |
|
61 | 1 | $this->current++; |
|
62 | 1 | return $sr; |
|
63 | } else { |
||
64 | throw new IteratorException("No more records. Unexpected behavior."); |
||
65 | } |
||
66 | } |
||
67 | |||
73 |