You are here

public function FnStream::getContents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/FnStream.php \GuzzleHttp\Psr7\FnStream::getContents()

Returns the remaining contents in a string

Return value

string

Throws

\RuntimeException if unable to read or an error occurs while reading.

Overrides StreamInterface::getContents

File

vendor/guzzlehttp/psr7/src/FnStream.php, line 140

Class

FnStream
Compose stream implementations based on a hash of functions.

Namespace

GuzzleHttp\Psr7

Code

public function getContents() {
  return call_user_func($this->_fn_getContents);
}