public function rewind() : void
	{
		if (! \is_resource($this->resource))
		{
			throw new Exception\UnseekableStreamException('Stream is not resourceable');
		}

		if (! $this->isSeekable())
		{
			throw new Exception\UnseekableStreamException('Stream is not seekable');
		}

		$result = \fseek($this->resource, 0, \SEEK_SET);

		if (! (0 === $result))
		{
			throw new Exception\UnseekableStreamException('Unable to move the stream pointer to beginning');
		}
	}
public function rewind() : void
	{
		if (! \is_resource($this->resource))
		{
			throw new Exception\UnseekableStreamException('Stream is not resourceable');
		}

		if (! $this->isSeekable())
		{
			throw new Exception\UnseekableStreamException('Stream is not seekable');
		}

		$result = \fseek($this->resource, 0, \SEEK_SET);

		if (! (0 === $result))
		{
			throw new Exception\UnseekableStreamException('Unable to move the stream pointer to beginning');
		}
	}
public function rewind ( ) : void { if ( ! \ is_resource ( $ this -> resource ) ) { throw new Exception \ UnseekableStreamException ( 'Stream is not resourceable' ) ; } if ( ! $ this -> isSeekable ( ) ) { throw new Exception \ UnseekableStreamException ( 'Stream is not seekable' ) ; } $ result = \ fseek ( $ this -> resource , 0 , \ SEEK_SET ) ; if ( ! ( 0 === $ result ) ) { throw new Exception \ UnseekableStreamException ( 'Unable to move the stream pointer to beginning' ) ; } }
Moves the stream pointer to begining

@return void

@throws Exception\UnseekableStreamException

@link http://php.net/manual/en/function.rewind.php
Moves the stream pointer to begining