| Conditions | 4 |
| Paths | 4 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 60 | public function next() |
||
| 61 | { |
||
| 62 | if (!$this->valid()) { |
||
| 63 | return; |
||
| 64 | } |
||
| 65 | |||
| 66 | ++$this->position; |
||
| 67 | |||
| 68 | if ($this->valid()) { |
||
| 69 | return; |
||
| 70 | } |
||
| 71 | |||
| 72 | $response = end($this->responses); |
||
| 73 | |||
| 74 | if (!$response->hasNextPageToken()) { |
||
| 75 | return; |
||
| 76 | } |
||
| 77 | |||
| 78 | $request = new PageTokenPlaceSearchRequest($response); |
||
| 79 | $this->responses[] = $this->service->process($request)->current(); |
||
| 80 | } |
||
| 81 | |||
| 106 |