Skip to content

Commit

Permalink
✨ Add getStream()
Browse files Browse the repository at this point in the history
Generally useful to be able to get the Stream back out again
  • Loading branch information
giggsey committed Aug 8, 2018
1 parent 7b30a9e commit 9e6d81c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/PSR7StreamResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ public function setStream(StreamInterface $stream, $mimeType)
return $this;
}

/**
* @return StreamInterface
*/
public function getStream()
{
return $this->stream;
}

/**
* Sets the Content-Disposition header with the given filename.
*
Expand Down

0 comments on commit 9e6d81c

Please sign in to comment.