diff options
Diffstat (limited to 'it_pipe.class')
-rw-r--r-- | it_pipe.class | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/it_pipe.class b/it_pipe.class index 94801c3..0c112d9 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -49,26 +49,31 @@ function __toString() # # Internal: Implement iterator # +#[ReturnTypeWillChange] function rewind() { $this->_position = 0; } +#[ReturnTypeWillChange] function next() { $this->_position++; } +#[ReturnTypeWillChange] function valid() { return array_key_exists($this->_position, $this->lines); } +#[ReturnTypeWillChange] function current() { return $this->lines[$this->_position]; } +#[ReturnTypeWillChange] function key() { return $this->_position; |