public function current()
    {
        $element = $this->data[$this->index];

        unset($this->data[$this->index]);

        return $element;
    }
public function current()
    {
        $element = $this->data[$this->index];

        unset($this->data[$this->index]);

        return $element;
    }
{@inheritdoc}