rewind to the first item

@return    void
559988
public function rewind()
    {
        // reset item position
        $this->_itemPosition = 0;

        // reset internal pointer
        reset($this->_items);

        if ($this->countItems() > 0) {
            $this->_itemValid = true;
        } else {
            $this->_itemValid = false;
        }
    }
1273995
public function rewind()
    {
        $this->_itemValid = true;

        if (!end($this->_items)) {
            $this->_itemValid = false;
        } else {
            if (($countItems = $this->countItems()) > 0) {
                $this->_itemPosition = $countItems - 1;
            } else {
                $this->_itemPosition = 0;
            }
        }
    }
184498
public function rewind()
    {
        if (!($this->inputStream instanceof Seekable)) {
            return;
        }

        $this->inputStream->seek(0, Seekable::SET);
        $this->lineNumber  = 0;
        $this->currentLine = null;
        $this->next();
    }
1231631
public function rewind()
    {
        $this->xmlReader = new \XMLReader();
        $this->xmlReader->open($this->inputFile);
        $this->currentElement   = null;
        $this->currentElementId = null;
    }
3245
public function rewind()
    {
        rewind($this->file_handle);
        $this->line_number = 0;
        $this->current_line = null;
        $this->header = null;
    }
681270
public function rewind() {
    $this->nodeIterator->rewind();
    $this->currentAttributes = $this->nodeIterator->current()->getValueNames(false);
    $this->currentAttribute = current($this->currentAttributes);
    $this->end = (sizeof($this->currentAttributes) == 0);
  }
689296
public function rewind()
    {
        $keys = array_keys($this->items);

        $this->currentKey = !empty($keys) ? reset($keys) : null;
    }
1329815
public function rewind()
    {
        $meta = stream_get_meta_data($this->fp);
        if ($meta['seekable']) {
            rewind($this->fp);
            $this->curLine = 0;
        }
        if ($this->hasHeader) {
            $this->setOption('header', $this->readLine());
        }
        $this->readLine();
    }
275250
public function rewind()
    {
        parent::rewind();
        $this->_values->rewind();
        $this->_validValues = $this->_values->valid();
    }
469802
public function rewind()
    {
        rewind($this->handle);
        $this->index = 0;
        $this->offset = 0;
        $this->length = 0;
    }
136087
public function rewind()
    {
        $this->current = null;
        foreach ($this->children as $item) {
            $item->rewind();
        }
        reset($this->children);
    }
1163831
public function shift()
    {
        $first = $this->first();

        if (null === $first) {
            return;
        }

        array_shift($this->_data);
        $this->rewind();

        return $first;
    }
869931
public function rewind() {
    $this->end = false;
    $this->nodeList = [];
    $this->processedOidList = [];
    $this->currentNode = $this->startNode;
  }
395888
public function rewind() : void
    {
        $r = false;
        $err = ($this->stream === null || $this->seekable === false);

        if ($err === false) {
            $r = rewind($this->stream);
        }

        if ($err === true || $r === false) {
            // @codeCoverageIgnoreStart
            throw new \RuntimeException("Could not rewind stream.");
            // @codeCoverageIgnoreEnd
        }
    }
642569
public function rewind()
        {
            rewind($this->_getFilePointer());

            $this->_currentRow = $this->_readLine();
            $this->_rowCounter = 0;
        }
1045467
public function rewind() {
        if ($this->iteratorKeys === null) {
            $this->iteratorKeys = \array_keys($this->mapping['properties']);
        }
        $this->iteratorPosition = 0;
    }
1011593
public function rewind()
    {
        $this->getIteratorObject()->last();

        if ($this->getIteratorObject()->valid()) {
            if (($countItems = $this->countItems()) > 0) {
                $this->_itemPosition = $countItems - 1;
            } else {
                $this->_itemPosition = 0;
            }
        }
    }