| @@ 129-138 (lines=10) @@ | ||
| 126 | /** |
|
| 127 | * {@inheritdoc} |
|
| 128 | */ |
|
| 129 | public function first() |
|
| 130 | { |
|
| 131 | $first = parent::first(); |
|
| 132 | if ($first === null) { |
|
| 133 | $first = reset($this->rawObjects); |
|
| 134 | return $this->convertFromValue($first); |
|
| 135 | } |
|
| 136 | ||
| 137 | return $first; |
|
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * {@inheritdoc} |
|
| @@ 143-153 (lines=11) @@ | ||
| 140 | /** |
|
| 141 | * {@inheritdoc} |
|
| 142 | */ |
|
| 143 | public function last() |
|
| 144 | { |
|
| 145 | $last = parent::last(); |
|
| 146 | ||
| 147 | if ($last === null) { |
|
| 148 | $last = end($this->rawObjects); |
|
| 149 | return $this->convertFromValue($last); |
|
| 150 | } |
|
| 151 | ||
| 152 | return $last; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * {@inheritdoc} |
|
| @@ 158-168 (lines=11) @@ | ||
| 155 | /** |
|
| 156 | * {@inheritdoc} |
|
| 157 | */ |
|
| 158 | public function next() |
|
| 159 | { |
|
| 160 | $next = parent::next(); |
|
| 161 | ||
| 162 | if ($next === null) { |
|
| 163 | $next = next($this->rawObjects); |
|
| 164 | return $this->convertFromValue($next); |
|
| 165 | } |
|
| 166 | ||
| 167 | return $next; |
|
| 168 | } |
|
| 169 | ||
| 170 | /** |
|
| 171 | * {@inheritdoc} |
|
| @@ 173-183 (lines=11) @@ | ||
| 170 | /** |
|
| 171 | * {@inheritdoc} |
|
| 172 | */ |
|
| 173 | public function current() |
|
| 174 | { |
|
| 175 | $current = parent::current(); |
|
| 176 | ||
| 177 | if ($current === null) { |
|
| 178 | $current = current($this->rawObjects); |
|
| 179 | return $this->convertFromValue($current); |
|
| 180 | } |
|
| 181 | ||
| 182 | return $current; |
|
| 183 | } |
|
| 184 | ||
| 185 | /** |
|
| 186 | * {@inheritdoc} |
|