Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | public function next() |
||
49 | { |
||
50 | if (null === $this->current) { |
||
51 | $this->current = $this->getFactory()->createSecond($this->begin); |
||
52 | } else { |
||
53 | $this->current = $this->current->getNext(); |
||
54 | if (!$this->contains($this->current->getBegin())) { |
||
55 | $this->current = null; |
||
56 | } |
||
57 | } |
||
58 | } |
||
59 | |||
105 |