| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function get($index) |
||
| 32 | { |
||
| 33 | while ($this->valid && !isset($this->values[$index])) { |
||
| 34 | $this->readNext(); |
||
| 35 | } |
||
| 36 | if ((!isset($this->values[$index]))) { |
||
| 37 | throw new \InvalidArgumentException(sprintf('No value with index %s', $index)); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $this->values[$index]; |
||
| 41 | } |
||
| 42 | |||
| 48 |