Zend\Diactoros\Stream::rewind PHP Method

rewind() public method

public rewind ( )
    public function rewind()
    {
        return $this->seek(0);
    }

Usage Example

Example #1
0
 /**
  * Get body for response
  *
  * {@inheritdoc}
  */
 public function getBody()
 {
     $body = new Stream('php://temp', 'wb+');
     $body->write($this->resource->asJson());
     $body->rewind();
     return $body;
 }
All Usage Examples Of Zend\Diactoros\Stream::rewind